# Mermail Mailbox Attachment Retrieval

> Mermail Mailbox Attachment Retrieval 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 metadata and details for a specific email attachment within an AI agent's Mermail mailbox

## Facts

- Endpoint: GET https://console.mermail.app/api/agent/v1/mailboxes/%7BmailboxId%7D/attachments/%7BattachmentId%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-mailbox-attachment-retrieval-ae801baa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BiAbeEimMh-tnsp0IqtS5

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-mailbox-attachment-retrieval-ae801baa
```

Example prompt: Fetch the attachment details for attachment att_1 from mailbox mbx_42 in my Mermail agent inbox — I need the filename, MIME type, and size.

## When to prefer this

Use this endpoint when your AI agent needs to inspect or retrieve metadata about a specific email attachment within a Mermail-managed mailbox, particularly when processing inbound emails for sales lead nurturing, customer support workflows, or purchase-related document handling. Prefer this over generic file storage APIs when the attachment is already associated with a Mermail mailbox message.

## Known failure modes

- Invalid or non-existent mailboxId returns a 404 error
- Invalid or non-existent attachmentId returns a 404 error
- Unauthorized access to a mailbox returns a 401 or 403 error
- Content may be omitted from the response if the attachment is too large or restricted, indicated by content_omitted flag
- Network timeout or service unavailability returns a 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

A JSON object containing the attachment's ID, filename, MIME type, file size in bytes, and flags indicating whether content was omitted and the reason for omission if applicable.

## 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",
     "properties": {
      "id": {
       "type": "string"
      },
      "size": {
       "type": "integer"
      },
      "filename": {
       "type": "string"
      },
      "mimetype": {
       "type": "string"
      },
      "content_omitted": {
       "type": "boolean"
      },
      "content_omission_reason": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "att_1",
  "size": 1024,
  "filename": "invoice.pdf",
  "mimetype": "application/pdf"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mermail-mailbox-attachment-retrieval-ae801baa/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)
