# Mermail Get Thread Emails

> Mermail Get Thread Emails is a paid API for AI agents from console.mermail.app, paid per call via x402, price unknown, status unknown (last checked 2026-10-11).

Retrieves all emails within a specific thread in an AI agent's Mermail mailbox

## Facts

- Endpoint: GET https://console.mermail.app/api/agent/v1/mailboxes/%7BmailboxId%7D/threads/%7BthreadId%7D?utm_source=zero.xyz
- Price: price unknown
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mermail-get-thread-emails-acb4ed2f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2vx8ePYgcucBmEN2rKNJf

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 mermail-get-thread-emails-acb4ed2f
```

Example prompt: Pull up all the emails in thread thread_abc123 from my Mermail mailbox mailbox_xyz456 so I can review the full conversation.

## When to prefer this

Use this endpoint when you need to read all messages within a specific, already-known email thread in a Mermail AI agent mailbox, as opposed to listing all threads or sending new messages. It is ideal for retrieving context before replying to a customer, reviewing a sales lead conversation, or verifying an order-related thread.

## Known failure modes

- Invalid mailboxId or threadId returns a 404 not found error
- Unauthorized access returns a 401 or 403 if credentials are missing or incorrect
- Empty thread returns emails array with zero items and totalCount of 0
- Malformed query parameters may result in a 400 bad request
- Network timeout or service unavailability returns a 503 or 5xx error

## How this service works

An inbox and wallet for your AI agent. Find and nurture sales leads, resolve customer support, and handle online purchases with controlled payments.

## Output

Returns a JSON object containing an array of email objects within the specified thread, each including id, subject, sender, recipient, date, body, read status, snippet, thread_id, scan_status, and content_omitted flag, along with a totalCount integer indicating the total number of emails in the thread.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "emails",
      "totalCount"
     ],
     "properties": {
      "emails": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "id",
         "subject",
         "sender",
         "recipient",
         "date"
        ],
        "properties": {
         "id": {
          "type": "string"
         },
         "body": {
          "type": "string"
         },
         "date": {
          "type": "string",
          "format": "date-time"
         },
         "read": {
          "type": "boolean"
         },
         "sender": {
          "type": "string"
         },
         "snippet": {
          "type": "string"
         },
         "subject": {
          "type": "string"
         },
         "recipient": {
          "type": "string"
         },
         "thread_id": {
          "type": [
           "string",
           "null"
          ]
         },
         "scan_status": {
          "enum": [
           "clean",
           "flagged",
           "skipped",
           null
          ],
          "type": [
           "string",
           "null"
          ]
         },
         "content_omitted": {
          "type": "boolean"
         }
        },
        "additionalProperties": true
       }
      },
      "totalCount": {
       "type": "integer",
       "minimum": 0
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "emails": [
   {
    "id": "email_1",
    "date": "2026-09-20T00:00:00.000Z",
    "sender": "noreply@example.com",
    "subject": "Verification code",
    "recipient": "agent@mermail.app",
    "scan_status": "clean"
   }
  ],
  "totalCount": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mermail-get-thread-emails-acb4ed2f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from console.mermail.app](https://www.zero.xyz/host/console.mermail.app/llms.txt)
