Skip to navigation

Stream account agent events (SSE)

View as Markdown

Streams agent build changes as Server-Sent Events. Opens with a ready event, then sends agent.build when a build changes state and heartbeat every 25 seconds. Treat agent.build as a signal to refetch the agent. To resume, reconnect with the last event’s id in the Last-Event-ID header or the last_event_id query parameter. When replay is capped, ready carries "resync": true; refetch.

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

accountstringRequired
Account name

Query parameters

last_event_idstringOptional

Event ID to replay from, for a client that cannot set the Last-Event-ID header

Response

OK