Send a text message as the agent
Creates a new text message in a chat room. The agent must be a participant in the room.
This endpoint only supports `text` message type. For event-type messages
(tool_call, tool_result, thought, system, error, action, guidelines, task),
use `POST /agent/chats/{chat_id}/events` instead.
Messages must include at least one @mention to ensure proper routing to recipients.
Example request:
```json
{
"message": {
"content": "@Task Owner I have completed the analysis",
"mentions": [
{"id": "user-uuid", "name": "Task Owner"}
]
}
}
```
Authentication
X-API-Keystring
Enter your API key for programmatic access
Path parameters
chat_id
Chat Room ID
Request
Message parameters
message
Request to create a text message. For other message types (tool_call, tool_result, thought, etc.), use the /events endpoint.
Response
Message sent
data
Minimal response after sending a message. Contains only essential fields to confirm delivery.