Send a message to an agent
POST /api/v1/agents/{role}/chat
Queue a user-initiated chat message as a task for the agent.
Authorizations
Parameters
Path Parameters
The agent role to send a message to
The agent role to send a message to
Request Body required
Request body for POST /agents/{role}/chat.
Attributes: message: The user message to send to the agent. attachments: Optional list of file attachments (images/PDFs). thread_id: Existing conversation thread to append this turn to. persist_thread: Whether this route owns thread persistence.
object
A single file attachment in a chat request.
Attributes:
data: Base64-encoded file content.
mime_type: MIME type of the file (e.g. image/png).
filename: Optional original filename for PII/security checks.
Set False by internal callers that already persist the turn themselves; leave True for direct UI clients.
Responses
202
Successful Response
Wrapper response for POST /agents/{role}/chat.
Attributes: data: The chat result payload.
object
Payload returned by POST /agents/{role}/chat.
Attributes:
task_id: The ID of the created task.
agent_role: The agent role handling the message.
status: Initial task status (always "pending").
acknowledgment: Human-readable confirmation message.
object
422
Validation Error