Read a Robot session event stream
Read persisted events after an offset and optionally remain attached to the live session tail. The stream remains open while the session is idle so turns started by other members or background work are observable.
/robots/sessions/{session_id}/streamRead persisted events after an offset and optionally remain attached to the live session tail. The stream remains open while the session is idle so turns started by other members or background work are observable.
In: cookie
Path Parameters
Robot session ID
Query Parameters
Read events after this stream offset. Use -1 to start at beginning.
Attach to the live stream tail after catching up.
Response Body
application/json
curl -X GET "https://example.com/robots/sessions/cc5lnd2s1s4652adtu50/stream"[
{
"sequence": 0,
"turn_id": "cc5lnd2s1s4652adtu50",
"event_kind": "message",
"message": {
"id": "string",
"role": "system",
"parts": [
{
"type": "text",
"text": "string",
"state": "streaming"
}
],
"metadata": {},
"created_at": "2019-08-24T14:15:22Z",
"robot": {
"id": "cc5lnd2s1s4652adtu50",
"name": "string"
},
"author": {
"id": "cc5lnd2s1s4652adtu50",
"joined": "2019-08-24T14:15:22Z",
"suspended": "2019-08-24T14:15:22Z",
"handle": "Southclaws",
"name": "Barnaby Keene",
"signature": "<body><p>Sent with love from London!</p></body>",
"roles": [
{
"badge": true,
"default": true,
"id": "cc5lnd2s1s4652adtu50",
"name": "string",
"colour": "string",
"meta": {}
}
]
},
"branch": "string",
"isolation_scope": "string"
},
"parts": [
{
"type": "start",
"messageId": "string"
}
]
}
]{
"type": "string",
"title": "string",
"detail": "string",
"trace_id": "string",
"metadata": {}
}List robot sessions GET
Get a paginated list of Robot sessions. These are chat sessions with the Robot system. Denbot may delegate work to specialised Robots inside the same session. Delegated events retain their ADK branch and isolation scope so the execution tree remains inspectable. You may include an account ID to filter sessions by account. Only those with "USE_ROBOTS" permission can use Robots, however sessions, messages and usage is not considered hidden to other accounts with the usage permission. Robots are intended as administrative or moderation tools to be shared among the team rather than private assistants.
Inspect a Robot session event stream HEAD
Inspect the session event stream without reading any events. The supplied offset represents the last event already observed by the caller. The response reports the offset to use for the next read and whether that position is caught up with the stream's current tail. This request returns immediately and does not wait for future events.