Stream turn events
GET
/api/v1/ai/turns/{id}/events
const url = 'https://example.com/api/v1/ai/turns/example/events';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/ai/turns/example/events \ --header 'Authorization: Bearer <token>'Stream events for one of the caller’s turns as server-sent events. Send Last-Event-ID to resume after an event. The stream ends when the turn reaches a final state. Route: /api/v1/ai/turns/{id}/events. Inputs: id, Last-Event-ID. Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Header Parameters
Section titled “Header Parameters”Last-Event-ID
string
Responses
Section titled “Responses”Durable Agent events
Media typetext/event-stream
Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}