---
title: "List threads"
method: GET
path: "/api/v1/threads"
tags: ["threads"]
---

# List threads

`GET /api/v1/threads`

## Query parameters

- `projectId` string, required
- `status` 'active' | 'waiting' | 'pending_user' | 'error' | 'ready_for_review' | 'idle'
- `limit` integer
- `cursor` string

## Response `200`

ThreadPage

- ThreadPageEncoded
  - `items` ThreadEncoded[], required
    - `id` string, required
    - `projectId` string, nullable, required
    - `authorId` string, nullable, required
    - `title` string, nullable, required
    - `titleCustom` boolean, required
    - `status` 'active' | 'waiting' | 'pending_user' | 'error' | 'ready_for_review' | 'idle' | 'archived', required
    - `archived` boolean, required
    - `lastModelId` string, nullable, required
    - `usage` UsageTotalsEncoded, required
      - `llmCredits` union, required
        - number
        - 'Infinity' | '-Infinity' | 'NaN'
      - `imageCredits` union, required
        - number
        - 'Infinity' | '-Infinity' | 'NaN'
      - `vmCredits` union, required
        - number
        - 'Infinity' | '-Infinity' | 'NaN'
      - `totalCredits` union, required
        - number
        - 'Infinity' | '-Infinity' | 'NaN'
    - `createdAt` string, required
    - `updatedAt` string, required
    - `lastActivityAt` string, nullable, required
  - `cursor` string, nullable, required

## Other responses

- `401` — capy/Unauthorized
- `404` — capy/ProjectNotFound

---

[API](https://skmtc.dev/capy/apis/capy-api.md) · [All operations](https://skmtc.dev/capy/apis/capy-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/capy/capy-api/revisions/e9babb6783f3/schema)
