Skip to Content

Receiving API

List and fetch inbound messages and attachments.

All routes require full access.

List received emails

GET /emails/receiving?limit=20&after=<id>
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "id": "…",
      "to": ["[email protected]"],
      "from": "Ada <[email protected]>",
      "subject": "Hello",
      "created_at": "2026-11-11T10:00:00Z",
      "message_id": "<[email protected]>",
      "attachments_count": 1
    }
  ]
}

Retrieve one message

GET /emails/receiving/:id?html_format=data_uri
QueryBehaviour
html_format=data_uri (default)Inline cid: images as data URIs when small enough
html_format=cidKeep cid: references

Notable fields:

  • received_for — envelope recipients on your domains
  • authentication — spf / dkim / dmarc (pass, fail, gray, processing_failed, unknown)
  • raw.download_url — signed raw MIME download (≈1 hour)
  • attachments[] — metadata; use attachment endpoints for bytes

Attachments

GET /emails/receiving/:id/attachments
GET /emails/receiving/:id/attachments/:attachment_id

Each item includes download_url and expires_at. Downloads always force download (Content-Disposition: attachment) and do not execute content on the API origin.

Webhook companion

Subscribe to email.received. The payload never includes bodies; fetch content with this API after the event.

On this page