AI Chat

Load one bounded history page for a private conversation by its owner-facing id. Project/application context is revalidated, but never used as the ownership key.

Changed on
get/ai/conversations/{public_id}

Request

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

Path parameters

public_idstring required

Query parameters

beforestring

Opaque next_before cursor returned by the previous page

limitinteger

Messages per page (default 50, maximum 100)

Response

active_turn_idstring nullable
ai_modelstring required
ai_permission_modestring required
ai_providerstring required
ai_thinking_levelstring nullable
application_idinteger 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 (a conversation with an AI harness) or terminal (an interactive shell in the workspace sandbox). Fixed at creation.

last_activity_atstring required
project_idinteger nullable
public_idstring required
statusstring required
titlestring nullable
turn_started_atstring nullable
turn_statusstring required

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

Changes

    • info

      added the optional property allOf[#/components/schemas/ConversationResponse]/focus_project_id to the response with the status

    • info

      added the optional property allOf[subschema #2]/messages/items/next_steps to the response with the status

    • warning

      removed the optional property allOf[#/components/schemas/ConversationResponse]/focus_project_id from the response with the status

    1 more change in this revision