---
title: "One bounded conversation-history page (excluding internal context rows)."
method: GET
path: "/projects/{project_id}/ai/conversations/{public_id}"
tags: ["AI Chat"]
---

# One bounded conversation-history page (excluding internal context rows).

`GET /projects/{project_id}/ai/conversations/{public_id}`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/projects/{project_id}/ai/conversations/{public_id}`
- Auth: HTTP bearer

## Path parameters

- `project_id` integer, required
- `public_id` string, required

## Query parameters

- `before` string
- `limit` integer

## Response `200`

- ConversationDetailResponse
  - `active_turn_id` string, nullable
  - `ai_model` string, required
  - `ai_permission_mode` string, required
  - `ai_provider` string, required
  - `ai_thinking_level` string, nullable
  - `application_id` integer, nullable
  - `context_id` string, required
  - `context_type` string, required
  - `context_usage` ContextWindowUsageResponse, nullable
    - `estimated` boolean, required
    - `limit_tokens` integer, nullable
    - `model` string, nullable
    - `source` string, required
    - `updated_at` string, required
    - `used_tokens` integer, required
  - `created_at` string, required
  - `failure` ChatFailureResponse, nullable
    - `code` string, required
    - `detail` string, required
    - `retryable` boolean, required
    - `title` string, required
  - `focus_project_id` integer, nullable: The project an assistant chat was started about, if any.
  - `kind` string, required: `ai` (a conversation with an AI harness) or `terminal` (an interactive shell in the workspace sandbox). Fixed at creation.
  - `last_activity_at` string, required
  - `project_id` integer, nullable
  - `public_id` string, required
  - `status` string, required
  - `title` string, nullable
  - `turn_started_at` string, nullable
  - `turn_status` string, required: Server-authoritative lifecycle for the current/most recent turn.
  - `messages` MessageResponse[], required: Turns oldest-first. The `system` seed message is omitted (internal).
    - `attachments` ChatAttachmentResponse[], nullable: Files copied into the persistent workspace for this user turn.
      - `id` string, required
      - `is_image` boolean, required
      - `mime_type` string, required
      - `name` string, required
      - `sandbox_path` string, required
      - `size_bytes` integer, required
    - `content` string, required
    - `created_at` string, required
    - `cursor` string, required: Stable opaque cursor for this stored message. Clients must treat this as an uninterpreted token and send it back through the `before` query.
    - `next_steps` string[], nullable: Next steps already suggested after this answer, shown again on reload without asking the model a second time.
    - `parts` MessagePart[], nullable: Ordered render segments (text / tool, in the order they occurred) so a reloaded chat shows the same interleaving as the live stream. Absent for older messages persisted before parts were tracked; the client then falls back to `tools` (rendered first) + `content`.
      - union: One ordered segment of an assistant turn: a chunk of prose, or a tool invocation. Mirrors the `metadata.parts` persisted by the chat service.
        - object
          - `text` string, required
          - `type` 'text', required
        - object
          - `tool` ToolInfo, required: One persisted tool invocation + its result, attached to an assistant message.
            - `arguments` string, required
            - `id` string, required
            - `name` string, required
            - `result` string, nullable
          - `type` 'tool', required
    - `role` string, required
    - `tools` ToolInfo[], nullable: Tools the assistant ran on this turn (persisted in message metadata), so the chat replays its tool work after a reload. Absent for plain turns.
      - `arguments` string, required
      - `id` string, required
      - `name` string, required
      - `result` string, nullable
  - `page` ConversationMessagePageResponse, required
    - `has_more` boolean, required
    - `next_before` string, nullable
  - `pending_permission` PermissionRequest, nullable: A permission request emitted by `run_interactive` when the Claude CLI blocks on a `control_request` frame. Passed to the UI via an SSE event so the user can respond before the subprocess continues.
    - `id` string, required: The CLI's own `request_id` (UUID); used as the key in the pending-permission registry and as `{permission_id}` in the resolve endpoint.
    - `input` unknown, required
    - `kind` 'tool_approval' | 'question' | 'plan_approval', required: What kind of interaction is required.
    - `tool_name` string, required: The tool name from `request.tool_name` (e.g. `"Bash"`, `"AskUserQuestion"`).

## Other responses

- `400`
- `401`
- `403`
- `404`

## Changes

- **2026-10-23** `7d41b820a372`: 2 info
  - added the optional property `allOf[#/components/schemas/ConversationResponse]/focus_project_id` to the response with the `200` status
  - added the optional property `allOf[subschema #2]/messages/items/next_steps` to the response with the `200` status
- **2026-10-23** `24af93ff5379`: 2 warning
  - removed the optional property `allOf[#/components/schemas/ConversationResponse]/focus_project_id` from the response with the `200` status
  - removed the optional property `allOf[subschema #2]/messages/items/next_steps` from the response with the `200` status
- **2026-10-22** `842d42ed4659`: 2 info
  - added the optional property `allOf[#/components/schemas/ConversationResponse]/focus_project_id` to the response with the `200` status
  - added the optional property `allOf[subschema #2]/messages/items/next_steps` to the response with the `200` status
- **2026-10-22** `1a12a50b75ee`: 2 warning
  - removed the optional property `allOf[#/components/schemas/ConversationResponse]/focus_project_id` from the response with the `200` status
  - removed the optional property `allOf[subschema #2]/messages/items/next_steps` from the response with the `200` status
- …earlier changes not shown

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/projects/:project_id/ai/conversations/:public_id/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
