Flow

Stream what the agent does

GET
/builds/{build}/events

Opens an SSE connection on the build's current prompt (or answer):

  • chunk — an AI SDK UI message chunk of the agent's message, whose id is <job>/<seq>. Fed to the AI SDK's readUIMessageStream, the chunks build the message that the build then keeps.
  • done — the build once the prompt has ended. Always the last event.

A prompt that already ended replays its chunks, then done. Reconnecting clients pass the standard Last-Event-ID header to resume after that event. Comment lines keep an idle connection open.

BearerAuth
headerAuthorizationBearer <JWT>

Admin token, API token issued via /api-tokens, or an OIDC JWT access token issued by the configured OIDC provider.

build*string

Build identifier (UUID).

Formatuuid

SSE stream of the agent's chunks.

response?stringtext/event-stream
Example Request
curl -X GET 'https://example.com/api/hub/builds/497f6eca-6276-4993-bfeb-53cbbbba6f08/events'
Example Response
"string"