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

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Path Parameters

id
string
required

Agent identifier (Devotel agent_xxx id). Path also accepts the alias :agentId for back-compat.

Body

application/json
message
string
required

User message to send to the agent.

Minimum string length: 1
history
object[]

Optional conversation history to seed the agent (additive on top of any persisted state).

conversationId
string

Existing conversation id to append onto. When omitted, a new conversation is created.

Response

Agent reply

Agent reply

data
object
meta
object