v4

latestSwagger 2.02026-08-0343714211.7 MB
chat_sessions
Chat Sessions

Show Chat Session

Show Chat Session

get/chat_sessions/{id}

Path parameters

idstring required

Chat Session ID.

Response

The ChatSessions object.

idstring

Chat Session ID.

titlestring

Short AI-generated chat title.

user_idinteger

User ID.

ai_task_idinteger

AI Task ID. Present when the conversation was started by an AI Task.

workspace_idinteger

Workspace ID. 0 means the default workspace.

last_active_atstring date-time

Most recent chat activity date/time.

created_atstring date-time

Chat session creation date/time.

Example response

{
  "id": "example",
  "title": "example",
  "user_id": 1,
  "ai_task_id": 1,
  "workspace_id": 1,
  "last_active_at": "2000-01-01T01:00:00Z",
  "created_at": "2000-01-01T01:00:00Z",
  "messages": [
    {
      "id": 1,
      "role": "example",
      "content": "example",
      "created_at": "2000-01-01T01:00:00Z"
    }
  ]
}