---
title: "Get Thread"
method: GET
path: "/v0/pods/{pod_id}/threads/{thread_id}"
tags: ["PodsThreads"]
---

# Get Thread

`GET /v0/pods/{pod_id}/threads/{thread_id}`

## Request

- Base URL: `https://api.agentmail.to`
- URL: `https://api.agentmail.to/v0/pods/{pod_id}/threads/{thread_id}`
- Auth: HTTP bearer

**CLI:**
```bash
agentmail pods:threads get --pod-id <pod_id> --thread-id <thread_id>
```

## Path parameters

- `pod_id` string, required: ID of pod.
- `thread_id` string, required: ID of thread.

## Response `200`

- Thread
  - `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.
  - `messages` Message[], required: Messages in thread. Ordered by `timestamp` ascending.
    - `inbox_id` string, required: The ID of the inbox.
    - `thread_id` string, required: ID of thread.
    - `message_id` string, required: ID of message.
    - `labels` string[], required: Labels of message.
    - `timestamp` string, date-time, required: Time at which message was sent or drafted.
    - `from` string, required: Address of sender. In format `username@domain.com` or `Display Name <username@domain.com>`.
    - `reply_to` string[], nullable: Reply-to addresses. In format `username@domain.com` or `Display Name <username@domain.com>`.
    - `to` string[], required: Addresses of recipients. In format `username@domain.com` or `Display Name <username@domain.com>`.
    - `cc` string[]: Addresses of CC recipients. In format `username@domain.com` or `Display Name <username@domain.com>`.
    - `bcc` string[]: Addresses of BCC recipients. In format `username@domain.com` or `Display Name <username@domain.com>`.
    - `subject` string: Subject of message.
    - `preview` string: Text preview of message.
    - `text` string: Plain text body of message.
    - `html` string: HTML body of message.
    - `extracted_text` string, nullable: Extracted new text content.
    - `extracted_html` string, nullable: Extracted new HTML content.
    - `attachments` Attachment[]: Attachments in message.
      - `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.
    - `in_reply_to` string: ID of message being replied to.
    - `references` string[]: IDs of previous messages in thread.
    - `headers` MessageHeaders: Headers in message.
    - `size` integer, required: Size of message in bytes.
    - `updated_at` string, date-time, required: Time at which message was last updated.
    - `created_at` string, date-time, required: Time at which message was created.

## Other responses

- `404`

---

[API](https://skmtc.dev/agentmail-to/apis/agentmail-cli-speakeasy-api.md) - [All operations](https://skmtc.dev/agentmail-to/apis/agentmail-cli-speakeasy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/agentmail-to/apis/agentmail-cli-speakeasy-api/revisions/869b7f1c360c?raw)
