# AgentMail Get Thread

> AgentMail Get Thread is a free API for AI agents from AgentMail at mpp.api.agentmail.to, Free, status unknown (last checked 2026-10-11).

Retrieves a full email thread by inbox ID and thread ID, including all messages, metadata, labels, senders, and recipients

## Facts

- Endpoint: GET https://mpp.api.agentmail.to/v0/inboxes/:inbox_id/threads/:thread_id?utm_source=zero.xyz
- Price: Free
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Provider: AgentMail
- Docs: https://docs.agentmail.to
- Website: https://agentmail.to
- Tags: email, inboxes, domains, drafts, threads, webhooks, messaging, ai, social
- Canonical page: https://www.zero.xyz/c/agentmail-thread-id-188c3307
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4hTQ5k9vO5vFZSU9vvrD-

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentmail-thread-id-188c3307
```

Example prompt: Pull up the full email thread with ID 'thd_abc123' from inbox 'inbox_xyz456' on AgentMail — I want to see all the messages, who sent them, and any labels on the thread.

## When to prefer this

Use this endpoint when you need the complete details of a specific email thread — including all messages, metadata, and labels — and you already know both the inbox_id and thread_id. Prefer this over listing endpoints when you have a specific thread to inspect rather than browsing all threads.

## Known failure modes

- Invalid inbox_id or thread_id returns 404 not found
- Missing or invalid Authorization Bearer token returns 401 unauthorized
- Malformed path parameters return 400 bad request
- Thread belongs to a different inbox than specified returns 404
- Rate limiting may return 429 too many requests

## How this service works

Get Thread

## Output

Returns a Thread object containing: inbox_id, thread_id, subject, labels array, senders list, recipients list, message count, total size in bytes, preview text of the last message, timestamps (created_at, updated_at), and a full messages array where each message includes from/to/cc/bcc addresses, text and HTML body, attachments, labels, and message-level timestamps.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "inbox_id",
  "thread_id"
 ],
 "properties": {
  "inbox_id": {
   "type": "string",
   "title": "InboxId",
   "description": "The ID of the inbox."
  },
  "thread_id": {
   "type": "string",
   "title": "ThreadId",
   "description": "ID of thread."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "title": "Thread",
 "required": [
  "inbox_id",
  "thread_id",
  "labels",
  "timestamp",
  "senders",
  "recipients",
  "last_message_id",
  "message_count",
  "size",
  "updated_at",
  "created_at",
  "messages"
 ],
 "properties": {
  "size": {
   "type": "integer",
   "title": "ThreadSize",
   "description": "Size of thread in bytes."
  },
  "labels": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "title": "ThreadLabels",
   "description": "Labels of thread."
  },
  "preview": {
   "type": "string",
   "title": "ThreadPreview",
   "description": "Text preview of last message in thread."
  },
  "senders": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "title": "ThreadSenders",
   "description": "Senders in thread. In format `username@domain.com` or `Display Name <username@domain.com>`."
  },
  "subject": {
   "type": "string",
   "title": "ThreadSubject",
   "description": "Subject of thread."
  },
  "inbox_id": {
   "type": "string",
   "title": "InboxId",
   "description": "The ID of the inbox."
  },
  "messages": {
   "type": "array",
   "items": {
    "type": "object",
    "title": "Message",
    "required": [
     "inbox_id",
     "thread_id",
     "message_id",
     "labels",
     "timestamp",
     "from",
     "to",
     "size",
     "updated_at",
     "created_at"
    ],
    "properties": {
     "cc": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "title": "MessageCc",
      "description": "Addresses of CC recipients. In format `username@domain.com` or `Display Name <username@domain.com>`."
     },
     "to": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "title": "MessageTo",
      "description": "Addresses of recipients. In format `username@domain.com` or `Display Name <username@domain.com>`."
     },
     "bcc": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "title": "MessageBcc",
      "description": "Addresses of BCC recipients. In format `username@domain.com` or `Display Name <username@domain.com>`."
     },
     "from": {
      "type": "string",
      "title": "MessageFrom",
      "description": "Address of sender. In format `username@domain.com` or `Display Name <username@domain.com>`."
     },
     "html": {
      "type": "string",
      "title": "MessageHtml",
      "description": "HTML body of message."
     },
     "size": {
      "type": "integer",
      "title": "MessageSiz
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentmail-thread-id-188c3307/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mpp.api.agentmail.to](https://www.zero.xyz/host/mpp.api.agentmail.to/llms.txt)
