Message
Create a message
Send a JSON message to a chat (or start a new one) and enqueue generation.
post/messages/
Query parameters
cookie_namestring nullable
Request body
Example request
{
"content": "Summarize the attached report.",
"chat_id": 42,
"updated_at": "2026-01-15T10:30:00Z",
"project_id": 7,
"model": "gpt-4o",
"temperature": 0.7,
"similarity_top_k": 5,
"system_prompt": "You are a concise analyst.",
"assistant_id": 3,
"form_data": {
"topic": "Q3 results"
}
}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"
}