# Palmyr Email Attachment Retrieval

> Palmyr Email Attachment Retrieval is a paid API for AI agents from palmyr.ai, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-07).

Fetches or processes a specific email attachment by its attachment ID, paid via x402 USDC microtransaction

## Facts

- Endpoint: POST https://palmyr.ai/email/attachments/%7BattachmentId%7D?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-07
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/palmyr-email-attachment-retrieval-21d442bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gNcyeQet2k9eP6naaSFsl

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 palmyr-email-attachment-retrieval-21d442bf -d '<json body>'
```

Example prompt: Can you grab the attachment with ID abc123 from that email and give me its contents so I can read through it?

## When to prefer this

Use this endpoint when an AI agent needs to programmatically retrieve a specific email attachment by its ID from the Palmyr email infrastructure, particularly in agentic workflows where attachments must be fetched and processed autonomously using USDC micropayments via x402.

## Known failure modes

- Attachment not found — invalid or expired attachmentId returns 404
- Payment failure — insufficient USDC balance or x402 payment rejected
- Unauthorized access — attachment belongs to a different account
- Attachment too large — timeout or payload size limit exceeded
- Network error — upstream email provider unavailable

## How this service works

Autonomous infrastructure for AI agents — pay with USDC on Solana or Base via x402.

## Output

Returns the binary or text content of the specified email attachment, potentially including file metadata such as filename, MIME type, and size, accessed via a paid x402 microtransaction on Solana or Base.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "properties": {
    "queryParams": {
     "type": "object",
     "additionalProperties": true
    }
   }
  },
  "output": {
   "properties": {
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/palmyr-email-attachment-retrieval-21d442bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from palmyr.ai](https://www.zero.xyz/host/palmyr.ai/llms.txt)
