Assistant
Create an assistant
Create an assistant from a JSON payload.
post/assistants/
Query parameters
cookie_namestring nullable
Request body
Example request
{
"name": "Support Bot",
"model": "gpt-4o",
"avatar": "avatars/support.png",
"description": "Answers product support questions.",
"predefined_prompts": [
"How do I reset my password?"
],
"instructions": "You are a helpful support agent.",
"temperature": 0.5,
"similarity_top_k": 5
}Response
Successful Response
Example response
{
"state": "NEW",
"state_reason": "Processing failed: timeout",
"state_changed_at": "2026-01-16T08:00:00Z",
"id": 1,
"tenant_id": 1,
"created_at": "2026-06-23T12:00:00Z",
"updated_at": "2026-06-23T12:00:00Z",
"creator_user_id": 1,
"name": "Research Assistant",
"avatar": "https://cdn.example.com/avatar.png",
"description": "Helps research and summarize documents",
"predefined_prompts": [
"Summarize this",
"List key points"
],
"instructions": "You are a concise research assistant.",
"llm_catalog_id": 1,
"temperature": 0.7,
"similarity_top_k": 5,
"input_type": "PROMPT",
"form_fields": [
{
"key": "topic",
"label": "Topic",
"type": "text"
}
]
}