eusend
Receiving

Reading received mail

List received messages and fetch their text, HTML, headers, attachments and the original .eml.

List received mail

GET/inbound

Messages are newest first by default. Use order=asc for oldest first. Keep the same recipient filter and order when passing the next page's cursor; start without a cursor when changing either. The dashboard also offers these sort options and a recipient filter.

ParameterTypeDescription
limitnumber1–100, default 10.
orderstringdesc (newest first, default) or asc (oldest first), by received time.
cursorstringThe next_cursor from the previous page.
tostringOnly messages received for this address.
response — 200 OK
{
  "data": [
    {
      "id": "a1fc5d69-9805-4706-a2db-664b5e6b514e",
      "from": "Alice <alice@example.com>",
      "to": ["support@3e44228d8f38.eusend.app"],
      "receivedFor": ["support@3e44228d8f38.eusend.app"],
      "subject": "Re: Your order #1042",
      "size": 61734,
      "attachmentCount": 1,
      "createdAt": "2026-11-23T07:27:54.248Z"
    }
  ],
  "next_cursor": null
}

Get one message

GET/inbound/:id

Returns everything in the webhook, plus the parsed body and headers. The body is read from the stored original on each request, so it is always exactly what was received.

response — 200 OK
{
  "id": "a1fc5d69-9805-4706-a2db-664b5e6b514e",
  "from": "Alice <alice@example.com>",
  "to": ["support@3e44228d8f38.eusend.app"],
  "cc": [],
  "replyTo": [],
  "receivedFor": ["support@3e44228d8f38.eusend.app"],
  "envelopeFrom": "alice@example.com",
  "subject": "Re: Your order #1042",
  "messageId": "<CAJB2jza6bgVSxaR6Srj1D@mail.gmail.com>",
  "inReplyTo": "<3e09b2a4-45ab-53a1-da0e-1cef86ffcb86@acme.com>",
  "replyToEmailId": "542437b6-c295-4c30-aba2-1d61f7601904",
  "text": "Thanks! Received it.\n",
  "html": "<div dir=\"ltr\">Thanks! Received it.</div>",
  "headers": [{ "name": "Subject", "value": "Re: Your order #1042" }],
  "attachments": [
    {
      "index": 0,
      "filename": "receipt.pdf",
      "contentType": "application/pdf",
      "size": 48213,
      "contentId": null,
      "disposition": "attachment"
    }
  ],
  "authentication": {
    "spf": { "result": "pass", "props": { "smtp.mailfrom": "alice@example.com" } },
    "dkim": [{ "result": "pass", "props": { "header.d": "example.com" } }],
    "dmarc": { "result": "pass" },
    "iprev": { "result": "pass" }
  },
  "size": 61734,
  "createdAt": "2026-11-23T07:27:54.248Z"
}

authentication holds the full results from our receiver, one entry per DKIM signature. The webhook carries the one-word summary of each.

Download an attachment

GET/inbound/:id/attachments/:index

Returns the attachment's bytes with its content type and filename. index is the position in attachments.

Download the original

GET/inbound/:id/raw

Returns the message as received (message/rfc822), including our Received and Authentication-Results headers. Useful for archiving, or for parsing it yourself.

Replying

A reply is an ordinary send. Set In-Reply-To and References to the message's messageId so the sender's mail client threads it, and prefix the subject with Re:.

POST /emails
{
  "from": "Support <support@acme.com>",
  "to": ["alice@example.com"],
  "subject": "Re: Your order #1042",
  "text": "Glad it arrived!",
  "headers": {
    "In-Reply-To": "<CAJB2jza6bgVSxaR6Srj1D@mail.gmail.com>",
    "References": "<CAJB2jza6bgVSxaR6Srj1D@mail.gmail.com>"
  }
}