Inbound Email

Turn inbound email into JSON

Give your app an email address. PostedApi receives the mail, parses it into tidy JSON and posts it to your webhook — headers, body and attachments included.

Inbound email converted to a JSON webhook
Inbound

Email in, webhook out

Point your domain's MX records at PostedApi and email becomes just another event in your stack. Every message is parsed the moment it arrives, then pushed to a webhook URL you control — no mail servers to babysit, ever again.

  • Receives mail sent to your domain, nothing to host
  • Headers, plain text, HTML and attachments parsed for you
  • A single POST delivers the whole message as JSON
Read the inbound docs
Payload

One POST, everything parsed

Every field you would otherwise dig out of a raw MIME message arrives ready to use.

POST https://hooks.yourapp.dev/inbound
inbound-payload.json
// POSTed to your webhook as application/json
{
  "FromName": "Ada Lovelace",
  "From": "[email protected]",
  "To": "[email protected]",
  "Subject": "Re: Order #1042",
  "TextBody": "Hi! Any news on my order?",
  "HtmlBody": "<p>Hi! Any news on my order?</p>",
  "Attachments": [
    {
      "Name": "delivery-note.pdf",
      "ContentType": "application/pdf",
      "ContentLength": 48213
    }
  ],
  "MailboxHash": "ticket-1042"
}

Attachments arrive base64-encoded with their content type and size, so storing or scanning them takes one more line of code.

Included

Serious plumbing, zero maintenance

Inbound email has to just work, so the unglamorous parts come standard on every plan.

Spam filtering included

Every message is screened for spam and malware before it nears your endpoint. The screening results ride along in the payload, so quarantining junk is a one-line condition.

Route anything

Set up replies@ for conversations, support@ for tickets, or catch every address with a wildcard. Each route can post to its own URL, with its own stream and credentials.

Retries built in

Endpoints crash; email shouldn't bounce because of it. If your URL can't take a POST, we back off and retry for up to 24 hours until the payload is accepted.

Replies become tickets, comments and tasks
Use cases

Build email-powered features

Once email is just JSON, features that used to take weeks take an afternoon. Treat a reply like any other webhook and wire it straight into whatever you are building.

  • Comment threads users can answer by email
  • Support tickets created straight from the inbox
  • Email-to-post, email-to-task — anything you can dream up
Try inbound

Give your app an inbox

Inbound email is included on every plan. Add a route, paste a webhook URL, and start receiving email in your app today.