Skip to main content
POST
/
api
/
chat
/
messages
Send chat message
curl --request POST \
  --url https://sontairo.com/api/chat/messages \
  --header 'Content-Type: application/json' \
  --data '
{
  "workspaceId": "<string>",
  "content": "<string>",
  "projectId": "<string>",
  "conversationId": "<string>",
  "agentId": "<string>",
  "providerKeyId": "<string>"
}
'
"<string>"

Body

application/json
workspaceId
string
required
content
string
required

Message content

Required string length: 1 - 20000
projectId
string
conversationId
string

Existing conversation ID. Omit to start new.

agentId
string

Agent to chat with

providerKeyId
string

Response

SSE stream with conversation events

Server-Sent Events stream. Events: conversation, status, tool_call, tool_result, done, error