Send a message to an agent
Send a message to a Thinklio agent through a channel. If session_id is omitted, a new session is created automatically. Set stream to true for a Server-Sent Events response.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| channel_id | string | path | Yes | The unique identifier of the channel to send the message through. |
Request Body
{
"session_id": "ses_01hxyz... (optional)",
"message": "string (required)",
"stream": "boolean (optional, default false)",
"metadata": "object (optional)"
}Response
{
"id": "msg_01hxyz...",
"session_id": "ses_01hxyz...",
"role": "assistant",
"content": "string",
"created_at": "2026-03-19T12:00:00Z",
"tokens": 142,
"model": "string"
}