Storyden
Robots

Start a Robot session turn

Start a turn in a Robot session. The session is created when it does not already exist. New sessions use Denbot unless `robotId` selects a custom Robot, which then remains the root Robot for the session. The turn runs asynchronously. The response identifies the turn stream that clients can read immediately and resume later.

POST/robots/sessions

Start a turn in a Robot session. The session is created when it does not already exist. New sessions use Denbot unless robotId selects a custom Robot, which then remains the root Robot for the session.

The turn runs asynchronously. The response identifies the turn stream that clients can read immediately and resume later.

storyden-session<token>

In: cookie

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/robots/sessions" \  -H "Content-Type: application/json" \  -d '{    "id": "string",    "messages": [      {}    ]  }'
{
  "streamUrl": "string",
  "sessionId": "cc5lnd2s1s4652adtu50",
  "turnId": "cc5lnd2s1s4652adtu50"
}
Empty
Empty
Empty
Empty
Empty
{
  "type": "string",
  "title": "string",
  "detail": "string",
  "trace_id": "string",
  "metadata": {}
}