Skip to main content
POST
Create message

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body schema.

parts
any[]
required

Message parts.

chatUuid
string<uuid>

Chat identifier. When omitted, a new draft chat is created automatically and the message is added to it.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
agentUuid
string<uuid>

Agent identifier for the chat. Only used when chatUuid is omitted and a chat is created automatically.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
releaseUuid
string<uuid>

Release identifier for the chat. Only used when chatUuid is omitted and a chat is created automatically.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
actions
Actions · object[]

Actions available for the message.

resources
Resources · object[]

Resources available for the message.

capabilities
Capabilities · object[]

Capabilities available for the message.

mcpClients
MCP clients · object[]

MCP clients to use for the message.

systemPrompt
string

System prompt for the message.

withReasoning
boolean

Whether to include reasoning.

temperature
number

Sampling temperature.

maxSteps
number

Maximum number of steps.

integrationSlug
string

Integration identifier.

connectorUuid
string<uuid>

Connector identifier.

Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$
languageModelSlug
string

Language model identifier.

output
Output · object

Output format for the assistant message. Defaults to text when omitted.

Response

Successful response

userMessage
User message · object
required

The created user message.

assistantMessage
Assistant message · object
required

The created assistant message (initially pending while processing).