{"uid":"cap_76Z-9vyq1PzLYsc_YhsyT","slug":"agentmail-send-email-via-x402-orthogonal-com-5d81b0c8","name":"AgentMail Send Email via x402.orthogonal.com","description":"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).","url":"https://x402.orthogonal.com/agentmail/v0/inboxes/x402test1786260932@agentmail.to/messages/send","method":"POST","headers":{},"bodySchema":{"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}."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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_jH4-XKLAu0A3lc8khs8CB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Sends an email message from a fixed agent inbox (x402test1786260932@agentmail.to) to one or more recipients, returning the message ID and thread ID.","exampleAgentPrompt":"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!'","exampleUseCases":[{"title":"Automated agent notification email","prompt":"Send an email to bob@company.com with subject 'Your report is ready' and body 'Hi Bob, your weekly analytics report has finished processing and is available for download.'"},{"title":"Customer follow-up after purchase","prompt":"Email customer@gmail.com with subject 'Thanks for your order!' and an HTML body that says '<p>Hi there, thank you for your purchase. Your order #12345 is confirmed and will ship within 2 business days.</p>'"},{"title":"Alert email to multiple recipients","prompt":"Send an email to both ops@myteam.com and manager@myteam.com with subject 'System Alert: High CPU Usage' and plain text body 'Warning: server CPU usage has exceeded 90% for the past 15 minutes. Please investigate immediately.'"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:56:47.493Z","isFirstParty":false}