Stream a run's events

GET
/v1/threads/{thread_id}/runs/{run_id}/events
AuthorizationBearer <token>

Checked by host({authenticate}), which maps the request to a Principal or rejects it.

In: header

Path Parameters

thread_id*string

Lowercase UUID string. Writers MUST generate UUIDv7; readers accept any lowercase UUID, so the version is not an admission rule.

Match^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
run_id*string

From RunAccepted: the run's user_input event_id.

Match^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Query Parameters

after_seq?integer

Resume after this seq (also accepted as the SSE Last-Event-ID). Default 0.

Range0 <= value <= 9007199254740991

Response Body

text/event-stream

application/json

curl -X GET "https://example.com/v1/threads/string/runs/string/events"
"string"
Edit on GitHub