chat-ai
chat_messages
Send Message
Changed onSend a message to a conversation and stream the agent's response via SSE.
This endpoint:
- Validates ownership (user must own the conversation)
- Persists the user message
- Updates conversation metadata (title, preview, message_count)
- Creates langgraph_thread_id if missing
- Streams agent response via SSE with events: token, tool_start, tool_end, done, error
- Persists the assistant message after completion
SSE Events:
- token: {"delta": "...", "conversation_id": "...", "client_message_id": "..."}
- tool_start: {"tool_name": "...", "tool_call_id": "..."}
- tool_end: {"tool_call_id": "...", "success": true/false}
- done: {"conversation_id": "...", "message_id": "..."}
- error: {"message": "..."}
- heartbeat: {}
post/api/v1/chat-ai/conversations/{conversation_id}/message
Request
- Base URL: https://api.getanana.com (the document declares no server; this is the origin it was published from)
- URL: https://api.getanana.com/api/v1/chat-ai/conversations/{conversation_id}/message
- Auth: none declared
Path parameters
conversation_idstring uuid required
Request body
Response
Successful Response
unknown required
Changes
- info
added the new optional request property
- info
- info
added the new optional request property
- info