# Vaaya AgentMail Send Email

> Vaaya AgentMail Send Email is a paid API for AI agents from vaaya.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Sends an email (plain text or HTML) from an agent-controlled inbox to one or more recipients via the AgentMail service, billed per-call with no API key setup required.

## Facts

- Endpoint: POST https://vaaya.ai/api/run/agentmail/send
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vaaya-agentmail-send-email-d7213c6e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0R9viZ5WJiGNy4XiHsOwH

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 vaaya-agentmail-send-email-d7213c6e -d '<json body>'
```

Example prompt: Send an email from inbox 'outreach-001' to jane.doe@example.com with the subject 'Quick follow-up on your demo request' and the message body: 'Hi Jane, I wanted to follow up on your recent demo inquiry — happy to jump on a call whenever works for you.'

## When to prefer this

Choose this endpoint when your AI agent needs to send email programmatically without provisioning your own SMTP server, managing API keys, or setting up email provider accounts. It is especially suited for agent workflows on Vaaya's platform where you want per-call pay-as-you-go email delivery with zero infrastructure setup. Prefer this over direct SendGrid/Mailgun integrations when you want a single unified agent capability layer with x402 micropayment billing.

## Known failure modes

- Invalid or missing inbox_id returns an error — the inbox must exist and be accessible
- Malformed recipient email addresses cause validation failure
- Missing required fields (inbox_id, to, subject) result in a 400-level error
- Sending to an empty or null recipient list fails
- Rate limits or quota exhaustion on the underlying AgentMail service may cause transient failures
- Payment failure (insufficient USDC balance) prevents the call from executing

## How this service works

Give an AI agent a credit account. Set a limit and a spending policy, and the agent makes approved, metered purchases from providers that accept Vaaya.

## Output

Returns a confirmation object indicating whether the email was successfully queued or delivered, including any relevant message ID or status fields from the AgentMail service.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "$schema": "http://json-schema.org/draft-07/schema#",
     "required": [
      "to",
      "subject"
     ],
     "properties": {
      "to": {
       "anyOf": [
        {
         "type": "string",
         "format": "email"
        },
        {
         "type": "array",
         "items": {
          "type": "string",
          "format": "email"
         }
        }
       ]
      },
      "html": {
       "type": "string"
      },
      "text": {
       "type": "string"
      },
      "subject": {
       "type": "string",
       "minLength": 1
      },
      "inbox_id": {
       "type": "string",
       "minLength": 1
      }
     },
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vaaya-agentmail-send-email-d7213c6e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vaaya.ai](https://www.zero.xyz/host/vaaya.ai/llms.txt)
