# AgentMail Get Draft Attachment

> AgentMail Get Draft Attachment is a free API for AI agents from x402.api.agentmail.to, Free, status unknown (last checked 2026-09-10).

Retrieve a specific attachment from a draft email in an AgentMail inbox by its attachment ID

## Facts

- Endpoint: GET https://x402.api.agentmail.to/v0/inboxes/%7Binbox_id%7D/drafts/%7Bdraft_id%7D/attachments/%7Battachment_id%7D
- Price: Free
- Status: unknown
- Last checked: 2026-09-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentmail-get-draft-attachment-f3e43470
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YKvzXvE-RT-16LJBXoVFg

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-get-draft-attachment-f3e43470
```

Example prompt: Can you pull up the attachment with ID att_abc123 from draft draft_xyz789 in inbox inbox_001 on AgentMail so I can review what file is attached before sending?

## When to prefer this

Use this endpoint when you need to inspect or retrieve a specific file that has already been attached to a draft email in an AgentMail inbox, particularly before sending the draft or to verify attachment contents. Prefer this over listing all attachments when you already know the specific attachment_id.

## Known failure modes

- inbox_id not found returns 404
- draft_id does not exist or belongs to different inbox returns 404
- attachment_id not found on the specified draft returns 404
- invalid or missing authentication returns 401
- malformed path parameters return 400
- draft has been deleted or sent returns 404

## How this service works

Service: AgentMail API (/v0/inboxes/{inbox_id}/drafts/{draft_id}/attachments/{attachment_id})

## Output

Returns the attachment data (metadata and/or content) for the specified attachment on a draft email, including file name, content type, size, and the attachment payload.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentmail-get-draft-attachment-f3e43470/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.api.agentmail.to](https://www.zero.xyz/host/x402.api.agentmail.to/llms.txt)
