Skip to content

Inbound

Email that arrives as JSON

Point your domain's MX record at Send.io. Every message is parsed, its attachments are kept, and the result goes to your webhook, another address or your inbox list.

POST https://acme.com/inbound200 OK
{
  "type": "inbound.email",
  "data": {
    "from": { "email": "maya@client.com" },
    "to": [{ "email": "support@acme.com" }],
    "subject": "Invoice question",
    "stripped_text": "Can you resend the PDF?",
    "attachments": [{ "filename": "invoice.pdf" }],
    "spam": { "is_spam": false }
  }
}

Receiving in three calls

Add a domain with receiving on, create a route, then handle the POST. Raw HTTP, any language.

The MX value is the same for every domain, so use a subdomain if the domain already gets mail elsewhere.

POST /domainsExample
curl -X POST https://api.send.io/domains \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"name":"inbound.acme.com","receiving":true}'

# publish the MX record from the response

Send each address where it belongs

Routes match a recipient by address, glob (*@acme.com) or regex. They run by priority, up to 100 per team.

  • Webhook

    Post it to your app

    A public HTTPS URL gets the parsed message, signed with the route's secret. Basic auth, a bearer token and a backup endpoint are options.

    forward_url
  • Forward

    Send it on

    Re-send to another address. Reply-To keeps the original sender. Forwards count toward your sending.

    forward_email
  • Store or stop

    Keep it or end the chain

    Keep it in your received list and inbox threads, or stop so no later route runs.

    store / stop

Every message, stored first

Mail is accepted and stored by Send.io, so it waits for your app if your app is down. Failed webhook deliveries are retried.

Attachments are listed with name, type, size and a SHA-256 hash. Larger files arrive as signed download links.

Delivery log
Each forward has a status (pending, success, failed) and its HTTP attempts.
Retry on demand
Re-run one route or all of them for a stored message.
Dry run
Test which routes a sample recipient would match. Nothing is sent.
Parsed payload
Text and HTML bodies, the reply without quoted history, headers, threading IDs, SPF, DKIM and DMARC results and a spam verdict.

Give your domain an inbox.

Receive, parse and route mail on your own domain.

A hand pushing a letter through a mail slot