Message
Submit a message with attachments
Send a multipart message with optional file uploads and enqueue generation.
post/messages/submit
Query parameters
cookie_namestring nullable
Response
Successful Response
Example response
{
"state": "NEW",
"state_reason": "Processing failed: timeout",
"state_changed_at": "2026-01-16T08:00:00Z",
"id": 1,
"created_at": "2026-06-23T12:00:00Z",
"updated_at": "2026-06-23T12:00:00Z",
"creator_user_id": 1,
"chat_id": 1,
"role": "user",
"content": "Hello, how can I help you?",
"sent_user_msg": "Summarize the attached document.",
"parent_id": 1,
"completed": true,
"error": "Model timed out",
"hint": "You can ask a follow-up question.",
"llm_catalog_id": 1,
"llm_settings_id": 1,
"usage": {
"completion_tokens": 120,
"prompt_tokens": 50
},
"celery_task_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}