---
title: "List Threads"
method: GET
path: "/v0/threads"
tags: ["Threads"]
---

# List Threads

`GET /v0/threads`

Lists threads, most recent first. Pass `senders`, `recipients`, or
`subject` to filter by substring. Filtered requests are served by
search, which caps `limit` at 100. For relevance-ranked full-text
search across senders, recipients, subject, and message body, use
`Search Threads`.

**CLI:**
```bash
agentmail threads list
```

## Query parameters

- `limit` integer — Limit of number of items returned.
- `page_token` string — Page token for pagination.
- `labels` string[] — Labels to filter by.
- `before` string, date-time — Timestamp before which to filter by.
- `after` string, date-time — Timestamp after which to filter by.
- `ascending` boolean — Sort in ascending temporal order.
- `include_spam` boolean — Include spam in results.
- `include_blocked` boolean — Include blocked in results.
- `include_unauthenticated` boolean — Include unauthenticated in results.
- `include_trash` boolean — Include trash in results.
- `senders` string[], nullable
- `recipients` string[], nullable
- `subject` string[], nullable

## Response `200`

- ListThreadsResponse
  - `count` integer, required — Number of items returned.
  - `limit` integer — Limit of number of items returned.
  - `next_page_token` string — Page token for pagination.
  - `threads` ThreadItem[], required — Ordered by `timestamp` descending.
    - `inbox_id` string, required — The ID of the inbox.
    - `thread_id` string, required — ID of thread.
    - `labels` string[], required — Labels of thread.
    - `timestamp` string, date-time, required — Timestamp of last sent or received message.
    - `received_timestamp` string, date-time — Timestamp of last received message.
    - `sent_timestamp` string, date-time — Timestamp of last sent message.
    - `senders` string[], required — Senders in thread. In format `username@domain.com` or `Display Name <username@domain.com>`.
    - `recipients` string[], required — Recipients in thread. In format `username@domain.com` or `Display Name <username@domain.com>`.
    - `subject` string — Subject of thread.
    - `preview` string — Text preview of last message in thread.
    - `attachments` Attachment[] — Attachments in thread.
      - `attachment_id` string, required — ID of attachment.
      - `filename` string — Filename of attachment.
      - `size` integer, required — Size of attachment in bytes.
      - `content_type` string — Content type of attachment.
      - `content_disposition` 'inline' | 'attachment' — Content disposition of attachment.
      - `content_id` string — Content ID of attachment.
    - `last_message_id` string, required — ID of last message in thread.
    - `message_count` integer, required — Number of messages in thread.
    - `size` integer, required — Size of thread in bytes.
    - `updated_at` string, date-time, required — Time at which thread was last updated.
    - `created_at` string, date-time, required — Time at which thread was created.

## Other responses

- `404`

## Changes

- **2026-07-15** `394ddcdd9c29` — 6 info
  - added the new optional `query` request parameter `recipients`
  - added the new optional `query` request parameter `senders`
  - added the new optional `query` request parameter `subject`
  - added the optional property `code` to the response with the `404` status
  - …2 more
- **2026-05-01** `ce126eb1243c` — 1 info
  - added the new optional `query` request parameter `include_unauthenticated`
- **2026-03-31** `27965096e618` — 2 info
  - added the new optional `query` request parameter `include_blocked`
  - added the new optional `query` request parameter `include_trash`
- **2026-03-28** `8a5b5e92ae2d` — 2 warning
  - deleted the `query` request parameter `include_blocked`
  - deleted the `query` request parameter `include_trash`
- **2026-03-06** `baa72f4bdda4` — 1 info
  - added the new optional `query` request parameter `include_trash`

[Full history](https://skmtc.dev/agentmail-to/apis/api/changes/v0/threads/get.md)

---

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