Skip to content

Channels

Channels route events within an app. All endpoints require authentication and x-tenant-id header.

Create a channel.

Body:

{
"name": "events",
"appId": 1
}

Get a channel by ID.

Delete a channel and all its events.

Subscribe to all events on a channel via SSE (Server-Sent Events).

Query parameters:

ParamDescription
agent_idFilter by agent
event_typeFilter by event type
trace_idFilter by trace

Response: text/event-stream with events as JSON:

data: {"id":1,"identifier":"task.started","payload":{"task":"search"},...}
data: {"id":2,"identifier":"task.completed","payload":{"result":"done"},...}

GET /channel/:channelId/:eventIdentifier/subscribe

Section titled “GET /channel/:channelId/:eventIdentifier/subscribe”

Subscribe to events with a specific identifier via SSE.