FruxonDocs
ApiAgentdraft

Subscribe to live test-chat changes (Server-Sent Events).

A long-lived `text/event-stream` scoped to the calling FruxonUser on this agent. Emits a `testChat` event whenever any of the user's test chats on this agent changes — a new test run on another surface (studio Tab B, the CLI), or a discard. The event carries the `conversation` + `changeKind` so the client can route the update (refresh the sidebar list on a new conversation, refresh the active thread on a message-append, remove the row on a delete). Cloud Run caps request duration, so the stream will be cut periodically — the client reconnects and a fresh server poll re-syncs the sidebar.

GET
/v1/tenants/{tenant}/agents/{agent}/testChats:subscribe
AuthorizationBearer <token>

JWT Authorization header using the Bearer scheme. Enter 'Bearer' [space] and then your token.

In: header

Path Parameters

agent*string

The unique identifier of the agent.

tenant*string

The tenant identifier

Query Parameters

clientId?string

The caller's stable client id, for self-echo suppression.

Response Body

curl -X GET "https://api.fruxon.com/v1/tenants/string/agents/string/testChats:subscribe"
{
  "conversationId": "string",
  "changeKind": "string",
  "originClientId": "string"
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}