AI Chat

List the current user's active conversations across all projects, most-recently-active first, annotated with project name/slug.

Changed on
get/ai/conversations

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    HTTP bearer

Query parameters

status'active' | 'archived'

Conversation lifecycle state (defaults to active).

scope'all' | 'global'

Limit results to the global workspace, or return every readable context.

pageinteger

Page number (1-indexed).

page_sizeinteger

Number of conversations per page (clamped to 1..=100).

searchstring

Keep only chats whose title, or whose project's name or slug, contains this text (case-insensitive, matched literally). At most 200 characters; blank means no filter.

Response

ai_modelstring required
ai_permission_modestring required
ai_providerstring required
ai_thinking_levelstring nullable
context_idstring required
context_typestring required
created_atstring required
focus_project_idinteger nullable

The project an assistant chat was started about, if any.

kindstring required

"ai" for an agent conversation, "terminal" for a shell thread.

last_activity_atstring required
project_idinteger nullable
project_namestring nullable
project_slugstring nullable
public_idstring required
statusstring required
titlestring nullable
turn_statusstring required

Server-authoritative lifecycle for the current/most recent turn.

Changes

    • info

      added the new optional query request parameter search

    • info

      added the optional property items/focus_project_id to the response with the status

    • info

      added the optional property items/sandbox to the response with the status

    1 more change in this revision