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.

Authorization

cookiestoryden-session<token>

Request Body

application/json
  1. body
id*string

Unique identifier for this chat request

threadId?string

Optional thread ID if this chat is part of a thread context

sessionId?string

Session ID to continue an existing conversation

robotId?string

Optional Robot ID to use as the root when creating a new session. Omit this field to use Denbot. It cannot switch the root Robot of an existing session.

messages*array<>

Array of chat messages in the conversation

data?

Additional data for the chat request

context?

Context about the page/item the user is viewing

workspace?

Workspace mount request. Provide either workspace_id or workspace_instance_id, not both.

client_tools?

Browser instance and its currently registered WebMCP tools.

Response Body

Robot session message accepted for asynchronous processing.

application/json
  1. response
streamUrl*string

Relative URL of the Robot session stream.

sessionId*Identifier

A unique identifier for this resource.

Formatxid
messageId*Identifier

A unique identifier for this resource.

Formatxid
Example Request
curl -X POST 'https://example.com/api/robots/sessions' \  -H 'Content-Type: application/json' \  -d '{  "id": "string",  "messages": [    {}  ]}'
Example Response
{  "streamUrl": "string",  "sessionId": "string",  "messageId": "string"}