Stream a trigger's events
GET
/events/stream/{id}
const url = 'https://localhost:3000/api/v1/events/stream/example';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
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://localhost:3000/api/v1/events/stream/example \ --header 'Authorization: <Authorization>'Opens an SSE connection to receive the events of a specific trigger
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Trigger ID (UUID)
Query Parameters
Section titled “Query Parameters”token
string
JWT token (fallback for EventSource)
mode
string
‘events’ streams every event individually (id, trigger, time, metadata) instead of aggregated batch_event frames; capped per connection by sse.event_stream_max_rate. Default: aggregated
Responses
Section titled “Responses”SSE stream
Media typetext/event-stream
string
Invalid ID or mode
Media typetext/event-stream
object
error
required
string
Example
invalid_requestmessage
string
Example
Invalid request bodyUnauthorized
Media typetext/event-stream
object
error
required
string
Example
invalid_requestmessage
string
Example
Invalid request bodyAccess denied
Media typetext/event-stream
object
error
required
string
Example
invalid_requestmessage
string
Example
Invalid request bodyTrigger not found
Media typetext/event-stream
object
error
required
string
Example
invalid_requestmessage
string
Example
Invalid request bodyToo many connections
Media typetext/event-stream
object
error
required
string
Example
invalid_requestmessage
string
Example
Invalid request body