FruxonDocs
ApiAgentdraft

Subscribe to live draft changes (Server-Sent Events).

A long-lived `text/event-stream`. Emits a `draft` event whenever this draft is mutated by another client — a second studio tab, or the CLI — carrying the new `version`; the client refetches the draft to converge. The caller's own writes are filtered out by `clientId`. Cloud Run caps request duration, so the stream will be cut periodically — the client reconnects and the initial event re-syncs the version.

GET
/v1/tenants/{tenant}/agents/{agent}/revisions/{revision}/draft: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.

revision*string

The base revision the draft forks from.

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/revisions/string/draft:subscribe"
{
  "version": 0,
  "changeKind": "string",
  "originClientId": "string"
}
Empty
Empty
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "property1": null,
  "property2": null
}