Skip to main content
POST
Send a chat turn to an agent

Authorizations

Authorization
string
header
required

OAuth 2.0 client-credentials tokens bounded by the source API key scope ceiling.

Path Parameters

agentId
string
required

The target agent identifier.

Minimum string length: 1

Body

application/json
message
string
required

End-user prompt sent to the agent.

Required string length: 1 - 4000
requestId
string<uuid>

Optional idempotency key for safe retries of the same chat input.

conversationId
string | null

Continue an existing API-channel conversation when present.

Response

Completed non-streaming chat response

conversationId
string
required
messageId
string
required
userMessageId
string
required
answer
string
required
citations
object[]
required
mode
enum<string>
required
Available options:
ai,
human
ticketNumber
integer | null
actionName
string

Present when a workspace action produced the final answer.

followUps
string[]

Optional suggested next questions returned with the answer.

Maximum array length: 3