{"uid":"cap_0R9viZ5WJiGNy4XiHsOwH","slug":"vaaya-agentmail-send-email-d7213c6e","name":"Vaaya AgentMail Send Email","description":"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.","url":"https://vaaya.ai/api/run/agentmail/send","method":"POST","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AyAqOuV_Y4s5jb4DINuaI","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.'","exampleUseCases":[{"title":"Automated sales outreach sequence","prompt":"Use my AgentMail inbox 'sales-bot' to email john.smith@acme.com with subject 'Intro: let's talk about your growth goals' and an HTML body with a short personalized pitch about our product."},{"title":"Agent-triggered transactional notification","prompt":"Send a plain-text email from inbox 'notifications-main' to user@customer.com with subject 'Your report is ready' and body 'Your weekly analytics report has been generated and is ready to view in your dashboard.'"},{"title":"Go-to-market contact warm-up","prompt":"Email a list of three prospects — alice@startup.io, bob@venture.co, and carol@enterprise.com — from inbox 'gtm-outreach' with subject 'Exploring a partnership?' and a short HTML intro message."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:44:12.477Z","isFirstParty":false}