# AgentMail Get Draft

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

Retrieve a specific email draft by ID from an AgentMail pod

## Facts

- Endpoint: GET https://x402.api.agentmail.to/v0/pods/%7Bpod_id%7D/drafts/%7Bdraft_id%7D
- Price: Free
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentmail-get-draft-b0256bf2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7axdcejXEtiiBY66Gh9YP

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-b0256bf2
```

Example prompt: Can you pull up the email draft with ID draft_abc123 from pod pod_xyz456 in AgentMail so I can review it before sending?

## When to prefer this

Use this endpoint when an AI agent needs to inspect or review a previously created email draft within a specific AgentMail pod before deciding whether to send, edit, or discard it. Prefer this over listing all drafts when the specific draft_id is already known.

## Known failure modes

- Draft not found (invalid draft_id) — 404 error
- Pod not found or access denied (invalid pod_id) — 404 or 403 error
- Missing required path parameters — 400 bad request
- Authentication failure — 401 unauthorized
- Rate limit exceeded — 429 too many requests

## How this service works

AgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.

## Output

Returns a JSON object representing the email draft, including fields such as subject, body, recipient addresses, sender, and any other metadata associated with the draft stored in the specified pod.

## 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",
    "pathParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "pod_id",
      "draft_id"
     ],
     "properties": {
      "pod_id": {
       "type": "string"
      },
      "draft_id": {
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "queryParams": {
     "type": "object",
     "properties": {},
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentmail-get-draft-b0256bf2/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)
