# AgentMail Create Draft

> AgentMail Create Draft is a paid API for AI agents from x402.orthogonal.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Creates a new email draft in a specified AgentMail inbox that can be edited and sent later.

## Facts

- Endpoint: POST https://x402.orthogonal.com/agentmail/v0/inboxes/x402test1786260932@agentmail.to/drafts
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentmail-create-draft-620e8b44
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9bVaQ4fL6_LWTzAQFO1jO

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-create-draft-620e8b44 -d '<json body>'
```

Example prompt: Save a new email draft in my AgentMail inbox at x402test1786260932@agentmail.to with the subject 'Project Update' and a body saying 'Hi team, here is the latest status on the project — I'll send this after final review.'

## When to prefer this

Choose this endpoint when you need to stage an outgoing email for later review or editing before sending — especially useful in agentic workflows where a human-in-the-loop approval step is required before delivery. Prefer this over directly sending when the email content needs to be verified, personalized, or approved post-generation.

## Known failure modes

- Invalid or non-existent inbox ID returns 404
- Malformed request body (missing required fields) returns 400
- Authentication/payment failure returns 402
- Rate limiting may return 429 if too many drafts are created rapidly
- Server-side errors return 500

## How this service works

Create a new draft in an inbox. The draft can be edited later and sent with Send Draft.

## Output

Returns a draft object containing the newly created draft's ID, the associated inbox, and the draft content fields (subject, body, recipients), which can be used to reference the draft for editing or sending via the Send Draft endpoint.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "to": {
       "type": "array",
       "description": "Recipient email addresses as an array of strings."
      },
      "cc": {
       "type": "array",
       "description": "CC recipient email addresses."
      },
      "bcc": {
       "type": "array",
       "description": "BCC recipient email addresses."
      },
      "reply_to": {
       "type": "array",
       "description": "Reply-to addresses."
      },
      "subject": {
       "type": "string",
       "description": "Email subject line."
      },
      "text": {
       "type": "string",
       "description": "Plain text body of the draft."
      },
      "html": {
       "type": "string",
       "description": "HTML body of the draft."
      },
      "labels": {
       "type": "array",
       "description": "Labels to tag the draft."
      },
      "attachments": {
       "type": "array",
       "description": "Array of attachment objects: {filename, content_type, content (base64)} or {filename, content_type, url}."
      },
      "headers": {
       "type": "object",
       "description": "Custom email headers as key-value pairs."
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentmail-create-draft-620e8b44/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.orthogonal.com](https://www.zero.xyz/host/x402.orthogonal.com/llms.txt)
