v1

latestOpenAPI 3.1.0raw.githubusercontent.com2026-06-25173140700.7 KB
Assistant

Create an assistant with attachments

Create an assistant via multipart form, with optional knowledge-file uploads.

post/assistants/submit

Query parameters

cookie_namestring nullable

Response

Successful Response

statestring nullable

Current lifecycle state of the record.

state_reasonstring nullable

Optional explanation for the current state.

state_changed_atstring date-time nullable

UTC timestamp when the state last changed.

idinteger nullable

Primary key for the assistant.

tenant_idinteger required

ID of the tenant that owns the assistant.

created_atstring date-time

Timestamp when the assistant was created.

updated_atstring date-time nullable

Timestamp when the assistant was last updated.

creator_user_idinteger required

ID of the user who created the assistant.

namestring required

Name of the assistant.

avatarstring nullable

Avatar image (URL or encoded data) for the assistant.

descriptionstring nullable

Optional description of the assistant.

description_show_in_chatboolean

Whether the assistant description is shown in the chat UI.

instructionsstring nullable

System instructions guiding the assistant's behavior.

llm_catalog_idinteger nullable

ID of the LLM catalog entry used by the assistant.

temperaturenumber nullable

Sampling temperature used by the assistant.

similarity_top_kinteger nullable

Number of top similar documents to retrieve for the assistant.

input_typestring

Input type for the assistant (e.g. prompt or form).

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"
    }
  ]
}