List received emails

List received emails

GET/api/v1/email/received

GET /email/received
curl -X GET 'https://www.unitpost.com/api/v1/email/received' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'User-Agent: my-app/1.0'
Response · 200
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "object": "received_email",
      "id": "id_123",
      "from": "you@yourdomain.com",
      "from_name": "string",
      "to": [
        "customer@example.com"
      ],
      "cc": [
        "string"
      ],
      "bcc": [
        "string"
      ],
      "message_id": "message_123",
      "subject": "Welcome to Acme",
      "spam_verdict": "string",
      "virus_verdict": "string",
      "spf_verdict": "string",
      "dkim_verdict": "string",
      "dmarc_verdict": "string",
      "size": 1,
      "received_at": "2026-01-01T00:00:00.000Z",
      "created_at": "2026-01-01T00:00:00.000Z",
      "thread_id": "thread_123",
      "reply_to": [
        "string"
      ],
      "attachment_count": 1
    }
  ]
}

Retrieve a list of inbound emails received on your receiving-enabled domains, newest-first and cursor-paginated. Rows are summaries (sender, subject, timestamps) without bodies — use a message's id with Retrieve a received email to read the full content and attachment metadata. Narrow the list with to (one address in the To or Cc header), thread_id (one conversation) and a created_after / created_before range. Requires the emails:read capability.

Parameters7 fields
FieldTypeDescription
limitinteger · queryMax rows to return (default 20, max 100).
afterstring · queryReturn rows after this id (forward paging).
beforestring · queryReturn rows before this id (backward paging).
tostring · queryOnly mail with this address in its To or Cc header, in any case. Envelope recipients aren't stored, so a Bcc copy or a forward to one of your addresses is matched by its headers only.
thread_idstring · queryOnly the messages of this conversation (`thr_…`), as `thread_id` on a received email and on the `email.received` webhook.
created_afterstring · queryOnly mail whose `created_at` is at/after this ISO 8601 time (with `Z` or an offset).
created_beforestring · queryOnly mail whose `created_at` is at/before this ISO 8601 time (with `Z` or an offset).
Response · 200 fields20 fields
FieldTypeDescription
objectrequiredstring—
idrequiredstring—
fromrequiredstring—
from_namerequiredstring | null—
torequiredstring[]—
ccrequiredstring[]—
bccrequiredstring[]—
message_idrequiredstring | null—
subjectrequiredstring | null—
spam_verdictrequiredstring | null—
virus_verdictrequiredstring | null—
spf_verdictrequiredstring | null—
dkim_verdictrequiredstring | null—
dmarc_verdictrequiredstring | null—
sizerequirednumber—
received_atrequiredstring—
created_atrequiredstring—
thread_idstring | nullThe conversation (`thr_…`); null until the message is threaded.
reply_tostring[]Reply-To addresses: answer these before `from` when present.
attachment_countrequirednumber—
200401403422

Search docs and guides

Search the docs and product guides.