Storyden
Robots

Submit a Robot session message

Queue a message 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. Submission is asynchronous. The response identifies the accepted message and the session stream. Compatible queued messages may later be consumed together by one Robot turn.

POST/robots/sessions

Queue a message 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.

Submission is asynchronous. The response identifies the accepted message and the session stream. Compatible queued messages may later be consumed together by one Robot turn.

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",
  "messageId": "cc5lnd2s1s4652adtu50"
}
Empty
Empty
Empty
Empty
Empty
{
  "type": "string",
  "title": "string",
  "detail": "string",
  "trace_id": "string",
  "metadata": {}
}