API reference

Base URL: https://api.send.io. Authenticate with Authorization: Bearer mx_.... Request and response bodies are JSON. 437 endpoints.

Moving from another provider (opened as /docs/api?guide=<provider>)? Each guide has its own page: Resend, SendGrid, Mailchimp, Mailgun, Postmark, Brevo, Mailjet.

Every endpoint with its fields, examples and notes: the full reference in Markdown.

Errors

Errors are JSON with statusCode, name and message.

StatusnameMeaning
400invalid_idempotency_keyThe Idempotency-Key header is empty or longer than 256 characters.
401missing_api_keyNo Authorization: Bearer mx_... header.
401invalid_api_keyThe key does not exist or was revoked.
401restricted_api_keyThe key (or an app you connected with sending access) may only send email, or the key may only use its agent inbox.
401invalid_tokenAn access token from the MCP sign-in was used outside the MCP server. Use an API key for the API.
402insufficient_creditsYour credit balance is too low to send this email; nothing was sent. Buy credits in Billing. See Credits and pricing.
403validation_errorNot allowed, for example sending from a domain that is not verified.
403invalid_permissionThe key or your role may not do this, for example a key restricted to another domain, or an action only an admin can take.
403missing_permissionThe key's permission list does not include this action, or the key is waiting for its agent to be verified.
403ip_not_allowedThe API key has an IP allow list and the request came from another address.
403receive_onlyFree mailboxes can receive but not send for now. Send from your own domain.
403sending_pausedSending from this mailbox is paused.
403free_limitThe workspace has used all its free mailboxes. Delete one, or buy credits to add more.
403sending_suspendedSending is suspended for this workspace because of its sending reputation. See Sending reputation.
403subaccount_suspendedThis subaccount is suspended, so it cannot send.
404not_foundNo such resource in this team.
405method_not_allowedThe path exists but does not take this HTTP method, for example DELETE /mailboxes without a mailbox ID.
409concurrent_idempotent_requestsA request with the same Idempotency-Key has not finished yet. Retry later to get its response.
409invalid_idempotent_requestThe Idempotency-Key was used in the last 24 hours with a different body. Use a new key.
409conflictThe request conflicts with the resource as it is now: it already exists, it changed since you read it, or its state does not allow this.
409resource_in_useSomething else uses this resource, such as a broadcast or workflow. Remove it from there before deleting it.
409domain_ownership_requiredThe domain name is held unverified by another workspace: publish the TXT record shown to prove you control it, then add it again.
409concurrent_modificationSomeone else changed the resource at the same time. Reload it and try again.
413validation_errorThe request body is too large.
415unsupported_media_typeThe body is compressed with a Content-Encoding send.io does not read (such as br or zstd). Send it uncompressed, or with gzip or deflate.
422invalid_parameterA parameter has the wrong type or format, such as a malformed id in the path.
422missing_required_fieldA required field is missing from the body.
422validation_errorThe request is well formed but its values are not valid.
422invalid_attachmentAn attachment cannot be used: too large, a blocked file type, or its path could not be fetched.
422unknown_merge_tagsThe content uses merge tags that are not contact fields or properties.
429rate_limit_exceededMore than 10 requests per second for your team. Retry after a moment.
429daily_quota_exceededA daily sending limit is used up: the one until your first credit purchase, or the one for new paid accounts (5,000 emails a day for the first 7 days after the first purchase, by default). It resets at 00:00 UTC; GET /billing/balance shows it as daily_limit. See Credits and pricing.
429subaccount_daily_quota_exceededA subaccount reached its own daily sending limit.
429subaccount_monthly_quota_exceededA subaccount reached its own monthly sending limit.
429daily_limitA free mailbox reached its daily sending limit. It resets at 00:00 UTC. Send from your own domain for more.
500application_errorSomething went wrong on our side. Retry later; if it keeps happening, contact support.
503billing_provider_errorThe payment provider refused a billing request or could not be reached. Nothing was charged by this request; try again in a minute.
503service_unavailableA dependency is not configured or is down. Retry later.

Emails

Send transactional email, one at a time or in batches, and look up what you sent.

Receiving emails

Email that arrives at your domains when receiving is turned on (the domain's MX record points at send.io). Webhooks send email.received as it arrives. A message may be up to 50 MB, attachments included; the MX refuses a larger one at once with 552 5.3.4, so the sender gets a bounce instead of the mail going missing.

Inbound routes

Rules for mail arriving at your receiving domains and inboxes: forward it to a URL with the full parsed message, forward it to another address, store it, or stop. Routes run by priority (lower first), then creation time.

Domains

Add and verify the domains you send from, and manage their tracking settings.

API keys

Create and manage the keys that authenticate API requests.

OAuth grants

The apps your team approved to act on its behalf through Sign in with send.io, such as an AI app using the MCP server or the CLI. The dashboard lists them as Connected apps on the API keys page.

Subaccounts

Child accounts for platforms and resellers. A subaccount is a separate account with its own domains, API keys, suppressions, templates, webhooks, emails and metrics; none of it is visible to its parent or to other subaccounts. Its sending counts toward your plan's quota, and it can have limits of its own. Manage subaccounts with a full-access key of the parent account. To call any endpoint as one of your subaccounts, add the header X-Sendio-Subaccount: <subaccount_id> to a request made with that key.

Webhooks

Get an HTTP POST to your endpoint when emails, domains, contacts and other resources change.

Senders

Sender identities: a From address with its display name, reply-to and postal address. A sender on a verified domain is verified at once; any other address is confirmed by a link emailed to it. Use one on a send with sender_id.

Streams

Message streams separate kinds of mail, as Postmark's do: every team has outbound (transactional), broadcast and inbound, and you can add your own transactional and broadcast streams. Sends name one with stream; emails, metrics, suppressions and webhooks can be filtered by it.

Suppressions

Addresses you never send to. Hard bounces and complaints are added for you, soft bounces for 24 hours; you can also add and remove addresses yourself, and keep an allow-list of addresses and domains that are never suppressed.

Templates

Reusable email designs with variables. Edits create a new draft version; publish it to use it in a transactional email or a broadcast. A template is the content: its From, subject, preview text and Reply-To are optional defaults, so it can be published without them. Templates use the simple engine ({{NAME}}) by default, or handlebars for conditions, loops and helpers.

Contacts

Contacts are the people you send broadcasts to. A team has one contact per email address, and a contact can be in many segments and subscribed to topics.

Audiences

The older Resend audience API, kept for existing code and SDKs. On send.io an audience is a segment: the same records, ids and data. Use Segments and Contacts for new code.

Segments

A segment is a group of contacts that broadcasts are sent to. A manual segment is a list you keep: add and remove contacts with the contact segment endpoints. A rule-based segment (send.io extension) keeps itself up to date: its members are the contacts that match its rule, such as "plan is pro and last logged in more than 30 days ago". When a contact changes, an event arrives or a time in the rule passes, the contact joins or leaves within a few seconds, not inside the request that made the change.

Topics

Topics are subscription preferences, such as "Product updates". An opt_in topic reaches every contact who has not opted out; an opt_out topic reaches only contacts who opted in.

Contact properties

Contact properties define the custom fields a contact can have, such as company. Define a property before you set it on contacts, and use it in broadcasts as {{{contact.company}}}. A property has one of four types: string, number, boolean or date.

Broadcasts

A broadcast sends one email to every subscribed contact in a segment, personalized per contact, with an unsubscribe link and one-click List-Unsubscribe headers. Statuses: draft, scheduled, queued (sending), sent and canceled.

Unsubscribe page

The branding of the page contacts see when they open a broadcast's unsubscribe link, where they can unsubscribe or change topic preferences.

Transactional emails

A transactional email is a named, saved send of a published template: a sign-in code, a password reset, a receipt. It stores the From, subject, preview text, Reply-To and tracking; its content is always the template's published version. Your application sends it with POST /emails and transactional_id, passing only the recipient and the variables. Not to be confused with the transactional message stream or workflow templates of kind transactional.

Automations

Automations that start on an event or contact change and then send emails, wait, branch and update contacts. Compatible with Resend's automations API (steps and connections), plus send.io extensions: drafts, versions, pause and resume, validation, test runs and metrics.

Events

Custom events are things that happened in your product (user.created, order.paid) for one contact. Sending an event starts automations that trigger on it and wakes runs waiting for it. send.io also keeps a summary per contact and event name: when it first happened, when it last happened and how many times. Rule-based segments read this summary (events.<name>.last_at, .first_at, .count). Compatible with Resend's events API.

Mailboxes

A mailbox is an address on one of your verified domains. Every mailbox works over the API and also has IMAP and SMTP login, so you can use it from any mail client.

Inboxes

Agent inboxes are email addresses your AI agents create and use through the API. Mail sent to an inbox is filed into threads; the agent reads, sends, replies and forwards. An inbox can live on your own verified domain or on send.io's shared agent domain, which needs no DNS setup.

Inbox drafts

Drafts let an agent write an email that a person approves before it goes out, or that sends itself at a set time.

Inbox lists

Allow and block lists control who an inbox may send to and receive from. Blocked entries always lose; once any allow entry exists, only allowed addresses pass.

Inbox threads

The unified inbox: every received conversation across all your mailboxes and agent inboxes, grouped into threads.

Pods

Pods are isolated groups of inboxes, for example one per end customer of your platform. A pod key can only see its own inboxes.

Agent domain and AgentID

The shared agent domain, and AgentID apps: OAuth/OpenID clients that let your app sign users in with their agent inbox.

API logs

Every request your team makes to the send.io API: method, path, status, key, IP and client, newest first. Kept for 30 days.

Assets

Images you host on send.io for use in templates and emails.

MCP

A Model Context Protocol server, so AI assistants and agents can use send.io as tools with your API key.

Billing

One prepaid credit balance pays for every service. Sending an email costs credits per recipient (1 by default); other services are listed with their price and say when they are not charged yet. A subaccount draws on its parent's balance. When the balance runs out, sends answer 402 insufficient_credits. See Credits and pricing.

Sending reputation

Your team's hard bounce and complaint rates against the limits of its volume tier, over the last 24 hours and 7 days (the worse decides). At 80% of a limit the team is in warning; at the limit it is suspended and sends answer 403 sending_suspended until our team reviews it. See Sending reputation.

Inboxes (AgentMail-compatible, /v0)

An inbox is an email address your agent sends and receives from. The inbox address is its inbox_id in every path.

Messages (AgentMail-compatible, /v0)

Messages sent and received by an inbox. Send a new message, reply, forward, label and read attachments.

Threads (AgentMail-compatible, /v0)

A thread groups a message and its replies. Read threads per inbox, or across every inbox in the organization with /threads.

Drafts (AgentMail-compatible, /v0)

Drafts let an agent write a message that a human reviews before it goes out, or that sends itself at send_at.

Inbox lists (AgentMail-compatible, /v0)

Allow and block lists for one inbox. Each list has a direction (send, receive or reply) and a type (allow or block). Entries are email addresses or domains.

Inbox webhooks (AgentMail-compatible, /v0)

Webhooks limited to one inbox. send.io posts events such as message.received to your URL.

Inbox API keys (AgentMail-compatible, /v0)

API keys limited to one inbox. Give an agent a key that can only reach its own inbox, optionally with a permission list.

Inbox metrics (AgentMail-compatible, /v0)

Sending and receiving numbers for one inbox. The window is the last 30 days unless you set start and end.

Pods (AgentMail-compatible, /v0)

A pod groups inboxes, so one customer or one project has its own inboxes, lists, webhooks and API keys. Inboxes made outside a pod belong to the default pod.

Pod Inboxes (AgentMail-compatible, /v0)

Inboxes inside one pod. Each inbox is an email address your agent can send from and receive at.

Pod Threads (AgentMail-compatible, /v0)

Threads across all inboxes in one pod. Spam and trash are hidden unless you ask for them.

Pod Drafts (AgentMail-compatible, /v0)

Unsent drafts across all inboxes in one pod. Create, edit and send drafts through the inbox routes.

Pod Lists (AgentMail-compatible, /v0)

Allow and block lists that apply to every inbox in the pod. A list is chosen by direction (send, receive, reply) and type (allow, block).

Pod Webhooks (AgentMail-compatible, /v0)

Webhooks limited to one pod: they get events only for that pod's inboxes.

Pod Domains (AgentMail-compatible, /v0)

The domain routes under a pod. They work the same as the top-level Domains routes.

Pod Metrics (AgentMail-compatible, /v0)

Events and counts for the inboxes in one pod.

Pod API Keys (AgentMail-compatible, /v0)

API keys limited to one pod. A pod key can only reach that pod's inboxes and resources.

Domains (AgentMail-compatible, /v0)

Send and receive from your own domain. Add it, set the DNS records it returns, then verify. Inboxes on the shared agents.send.io domain need no setup.

Webhooks (AgentMail-compatible, /v0)

Get events like message.received pushed to your URL. A webhook is team-wide unless you limit it to inboxes or pods. Payloads look like {type: "event", event_type, event_id, ...}.

Lists (AgentMail-compatible, /v0)

Team-wide allow and block lists that apply to every inbox. Pick a list by direction (send, receive or reply) and type (allow or block). Entries are email addresses or whole domains.

Metrics (AgentMail-compatible, /v0)

Events and counts for all your agent inboxes. A scoped API key sees only its own inbox or pod. The default window is the last 30 days.

API Keys (AgentMail-compatible, /v0)

Create keys for your agents. A key can be full access, limited to an inbox or pod, or limited to a list of permissions.

Organization (AgentMail-compatible, /v0)

Your organization (team) and the key you are calling with.

Agent Sign-up (AgentMail-compatible, /v0)

An agent can create its own send.io account, inbox and API key with one call, no human sign-up needed. A 6-digit code emailed to the agent's human unlocks it. This is a send.io addition.

Agent Registration (auth.md) (AgentMail-compatible, /v0)

The auth.md protocol: an agent opens a send.io account for its human without the sign-up form, and the human approves it with a code, or a trusted agent provider vouches for the human. Discovery is at /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server on the API host; the full recipe agents read is https://app.send.io/auth.md. Trusted providers push revocations (RFC 8935 Security Event Tokens) to /v0/agents/identity/events. This is a send.io addition. No API key is needed for these calls.

AgentID (OpenID Connect) (AgentMail-compatible, /v0)

Let agents sign in to your app with their send.io inbox, like "Sign in with Google" for agents. send.io is a standard OpenID Connect provider (authorization code flow, RS256 tokens). This is a send.io addition.

Loading your dashboard