# AgentMail Send Email via x402.orthogonal.com

> AgentMail Send Email via x402.orthogonal.com 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).

Sends an email message from a fixed agent inbox (x402test1786260932@agentmail.to) to one or more recipients, returning the message ID and thread ID.

## Facts

- Endpoint: POST https://x402.orthogonal.com/agentmail/v0/inboxes/x402test1786260932@agentmail.to/messages/send
- 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-send-email-via-x402-orthogonal-com-5d81b0c8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_76Z-9vyq1PzLYsc_YhsyT

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-send-email-via-x402-orthogonal-com-5d81b0c8 -d '<json body>'
```

Example prompt: Send an email to alice@example.com with the subject 'Meeting Tomorrow' and a plain text body that says 'Hi Alice, just a reminder that we have a meeting scheduled for tomorrow at 10am. See you then!'

## When to prefer this

Use this endpoint when an AI agent needs to send outbound emails from the pre-provisioned agentmail.to inbox as part of an automated workflow, notification system, or agent-to-human communication pipeline. It is especially suited for agentic use cases where email sending is triggered programmatically and payment per message via x402 is acceptable. Prefer this over generic SMTP solutions when operating within an agent framework that already uses x402 micropayments.

## Known failure modes

- Missing recipient error if none of to, cc, or bcc is provided
- Invalid email address format returns a 400 validation error
- Authentication or payment failure if x402 payment is not properly handled
- Attachment content not properly base64-encoded returns a 422 error
- Request body missing both text and html body fields may result in empty message
- Rate limiting or inbox quota exceeded returns a 429 or 503 error

## How this service works

Send an email message from an inbox. At least one recipient (to, cc, or bcc) is required. Returns the message_id and thread_id. Replace {inbox_id} directly in the path with the full inbox email (e.g., /v0/inboxes/myagent@agentmail.to/messages/send).

## Output

Returns a JSON object containing the message_id (unique identifier for the sent message) and thread_id (identifier for the email thread the message belongs to), confirming the email was dispatched successfully.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "cc": {
   "type": "array",
   "description": "CC recipient email address(es). String or array of strings."
  },
  "to": {
   "type": "array",
   "description": "Recipient email address(es). At least one of to, cc, or bcc is required. Can be a string or array of strings."
  },
  "bcc": {
   "type": "array",
   "description": "BCC recipient email address(es). String or array of strings."
  },
  "html": {
   "type": "string",
   "description": "HTML body. Provide text, html, or both."
  },
  "text": {
   "type": "string",
   "description": "Plain text body. Provide text, html, or both."
  },
  "labels": {
   "type": "array",
   "description": "Array of label strings to tag the sent message."
  },
  "headers": {
   "type": "object",
   "description": "Custom email headers as key-value pairs (e.g., {\"X-Custom\": \"value\"})."
  },
  "subject": {
   "type": "string",
   "description": "Email subject line."
  },
  "reply_to": {
   "type": "array",
   "description": "Reply-to address(es) if different from the inbox address."
  },
  "attachments": {
   "type": "array",
   "description": "Array of attachment objects: {filename: string, content_type: string, content: string (base64)} or {filename: string, content_type: string, url: string}."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentmail-send-email-via-x402-orthogonal-com-5d81b0c8/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)
