---
title: "List thread messages"
method: GET
path: "/api/v1/threads/{threadId}/messages"
tags: ["messages"]
---

# List thread messages

`GET /api/v1/threads/{threadId}/messages`

## Path parameters

- `threadId` string, required

## Query parameters

- `after` string
- `limit` integer

## Response `200`

MessagePage

- MessagePageEncoded
  - `items` MessageEncoded[], required
    - `id` string, required
    - `source` 'user' | 'assistant' | 'tool', required
    - `tool` string
    - `text` string, required
    - `authorName` string
    - `model` string
    - `attachments` object[]
      - `file` object, required
        - `fileId` string, required
        - `name` string, required
        - `mediaType` string, required
        - `sizeBytes` union, required
          - number
          - 'Infinity' | '-Infinity' | 'NaN'
        - `preview` boolean
        - `width` union
          - number
          - 'Infinity' | '-Infinity' | 'NaN'
        - `height` union
          - number
          - 'Infinity' | '-Infinity' | 'NaN'
        - `pageCount` integer
      - `title` string
    - `createdAt` string, required
  - `cursor` string, nullable, required

## Other responses

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

## Changes

- **2026-08-27** `6cd1e287d2c5` — 4 info
  - added the optional property `items/items/attachments/items/file/pageCount` to the response with the `200` status
  - response property `items/items/attachments/items/file/height/anyOf[subschema #1]/` list-of-types was narrowed by removing types `string` from media type `application/json` of response `200`
  - response property `items/items/attachments/items/file/sizeBytes/anyOf[subschema #1]/` list-of-types was narrowed by removing types `string` from media type `application/json` of response `200`
  - response property `items/items/attachments/items/file/width/anyOf[subschema #1]/` list-of-types was narrowed by removing types `string` from media type `application/json` of response `200`
- **2026-08-11** `792c11dd1007` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/capy/apis/capy-api/changes/api/v1/threads/:threadId/messages/get.md)

---

[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/6cd1e287d2c5/schema)
