Storyden
Robots

Read a Robot session turn stream

Read persisted turn events after an offset, optionally attaching to the live tail using Server-Sent Events.

GET/robots/sessions/{session_id}/turns/{turn_id}

Read persisted turn events after an offset, optionally attaching to the live tail using Server-Sent Events.

storyden-session<token>

In: cookie

Path Parameters

session_id*string

Robot session ID

turn_id*string

Robot turn ID

Query Parameters

offset?string

Read events after this stream offset. Use -1 to start at beginning.

live?string

Attach to the live stream tail after catching up.

Response Body

application/json

curl -X GET "https://example.com/robots/sessions/cc5lnd2s1s4652adtu50/turns/cc5lnd2s1s4652adtu50"
[
  {
    "type": "start",
    "messageId": "string"
  }
]
Empty
Empty
Empty
Empty
{
  "type": "string",
  "title": "string",
  "detail": "string",
  "trace_id": "string",
  "metadata": {}
}