Stream what the agent does
GET
Opens an SSE connection on the build's current prompt (or answer):
chunk— an AI SDK UI message chunk of the agent's message, whoseidis<job>/<seq>. Fed to the AI SDK'sreadUIMessageStream, 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.
BearerAuthheader
AuthorizationBearer <JWT>Admin token, API token issued via /api-tokens, or an OIDC JWT access token issued by the configured OIDC provider.
build*stringBuild identifier (UUID).
Format
uuidSSE stream of the agent's chunks.
response?stringtext/event-streamcurl -X GET 'https://example.com/api/hub/builds/497f6eca-6276-4993-bfeb-53cbbbba6f08/events'Example Response
"string"