# 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 complete email thread by thread ID, including all messages, metadata, labels, senders, recipients, and message content.

## Facts

- Endpoint: GET https://mpp.api.agentmail.to/v0/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-63e09753
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_k8G96I_MdB474YT12jNmW

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-63e09753
```

Example prompt: Can you pull up the full email thread with ID thread_abc123 from AgentMail so I can see all the messages, who sent them, and what was said?

## When to prefer this

Use this endpoint when you need to retrieve a complete email thread including all messages and their full content (HTML, text, attachments metadata) by a known thread ID. Prefer this over listing endpoints when you already have the thread_id and need full details rather than a summary list.

## Known failure modes

- Thread not found — returns 404 if thread_id does not exist or belongs to a different inbox
- Unauthorized — returns 401/403 if the Authorization Bearer token is missing or invalid
- Invalid thread_id format — returns 400 if the thread_id parameter is malformed
- Thread deleted/trashed — thread may exist but be in trash state with trash labels

## How this service works

Get Thread

## Output

Returns a Thread object containing: inbox_id, thread_id, subject, labels array, senders list, recipients list, preview text, message count, size in bytes, created/updated timestamps, and a full array of Message objects each with from/to/cc/bcc addresses, HTML and plain text body, labels, timestamps, and size.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "thread_id"
 ],
 "properties": {
  "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-63e09753/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)
