Agents
Run an agent (send a message)
Sends a message to an agent and returns its reply — the same way the in-app Overview/Playground tests an agent and its flow (runs over the OVERVIEW channel, against the active OR draft flow). Omit message on a new conversation to just open it and run the Start flow; pass conversation_id + message to continue. Requires a USER API key.
post/public/v1/agents/{agentId}/messages
Path parameters
agentIdstring required
Example:uuid-xxxx-xxxx
Request body
Example request
{
"message": "Hi, I need help with my order",
"conversation_id": 42,
"contact_id": "example"
}Response
The agent's reply messages and the conversation id
Example response
{
"conversation_id": 42,
"messages": [
{
"id": 1,
"role": "ASSISTANT",
"type": "MESSAGE",
"text": "Hi! How can I help?",
"created_at": "example"
}
]
}