Skip to main content
POST

Authorizations

Authorization
string
header
required

API token with sk-de- prefix. Created in the Decimal dashboard under Settings → API Tokens.

Scopes

chat:write

Headers

Idempotency-Key
string

Unique key for this request, such as a UUID. Retries with the same key within 24 hours return the original response.

Maximum string length: 255

Body

application/json
message
string
required

The user's message.

Required string length: 1 - 16000
conversation_id
string

Omit to start a new conversation. Provide to continue an existing conversation.

user
object

Who is sending the message. It is saved on the conversation, so later messages can omit it, or send it again to replace it.

stream
boolean

Set to true to receive the answer as server-sent events instead of polling.

Response

Server-sent events, when stream is true.

The response is of type string.