Send a message
POST/api/v2/projects/:slug/chats/
Send a message and get an AI response. Returns 201 for new chats, 200 for existing ones. To append to the latest output-capped assistant response, omit message and send chat_uuid and continue_message_id. Continuation returns the same user_message_id and assistant messageId with the combined text. Existing conversations require X-Chat-Restore-Token in addition to project access.
Required permission: chats_create
Request
Responses
- 200
- 201
- 400
- 403
- 404
- 409
Message sent successfully
New chat created successfully
Bad request. Invalid or missing data.
Forbidden. Missing permissions.
Resource not found.
This conversation already has a generation in progress. Wait before retrying.