Skip to main content
POST
Regenerate response

Authorizations

X-API-KEY
string
header
required

Headers

X-End-User-ID
string | null

Path Parameters

session_id
string<uuid>
required
message_id
string<uuid>
required

Body

application/json
stream
boolean
default:true

Whether to stream the response.

tool_choice
string | null

Force a specific tool to be used by providing its UUID during regeneration.

Response

Successful Response

id
string<uuid>
required

Unique identifier for the message.

role
string
required

Role of the message sender (user, assistant, system).

content
string
required

Content of the message.

created_at
string<date-time>
required

Creation timestamp.

parent_id
string<uuid> | null

ID of the parent message.

sibling_ids
string<uuid>[]

IDs of other messages that share the same parent (branches).

task_id
string | null

The ID of the task processing this message (if applicable).

stream_url
string | null

URL to stream events for this task.