Send Message
Chat
Send Message
POST
Send Message
Description
Send a message to an agent and receive a response.Authentication
Required (API key or JWT token)Path Parameters
The ID of the agent to chat with
Request Body
The message to send to the agent
Optional thread ID for conversation continuity
Whether to stream the response (default: false)
Optional file attachments
Response
The agent’s response message
The AI model used
Token usage statistics (prompt, completion, total)
Number of knowledge base chunks used
Example Request
Example Response
Streaming Response
Whenstream: true, the response is sent as Server-Sent Events (SSE):
Error Responses
Bad Request - Missing message or invalid parameters
Unauthorized - Invalid or missing authentication
Forbidden - No access to this agent
Not Found - Agent not found