Receiving

Retrieve a received email

GET
/emails/receiving/{id}

Authorization

bearer
headerAuthorizationBearer <token>

Path Parameters

id*string
Formatuuid

Query Parameters

html_format?string

data_uri or cid; the answer's html_format says which was served (always cid).

Response Body

Success

application/json
  1. response

One received email (object: "email", Resend's fields plus the exx extensions).

attachments*array<>
authentication?|null
authentication_results*

ext: every result as verified (spf, each dkim signature, dmarc, arc).

bcc*array<string>
cc*array<string>
created_at*string
from*string
headers*

The sender's header fields by lower-case name (the values of a repeated field joined by a line feed, in order); sender-supplied ReceivedAuthentication-Results left out.

html?|

Hostile content: never render it on a trusted origin.

html_format*string

Always cid: inline images stay cid: references to the attachments.

id*string
Formatuuid
message_id?string|null
object*string
quarantined*boolean

ext: held for staff review; its attachments and raw message open once released.

raw?|null
received_for*array<string>

The addresses in the for clauses of the message's Received fields.

reply_to*array<string>
spam_score*number

ext: the content scanner's spam score.

Formatdouble
subject*string
text?string|null
to*array<string>
Example Request
curl -X GET 'https://api.exx.sh/emails/receiving/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "attachments": [    {      "content_disposition": "string",      "content_id": "string",      "content_type": "string",      "filename": "string",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "size": 0    }  ],  "authentication": {    "dkim": "string",    "dmarc": "string",    "spf": "string"  },  "authentication_results": {},  "bcc": [    "string"  ],  "cc": [    "string"  ],  "created_at": "string",  "from": "string",  "headers": {    "property1": "string",    "property2": "string"  },  "html": "string",  "html_format": "string",  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "message_id": "string",  "object": "string",  "quarantined": true,  "raw": {    "download_url": "string",    "expires_at": "string"  },  "received_for": [    "string"  ],  "reply_to": [    "string"  ],  "spam_score": 0.1,  "subject": "string",  "text": "string",  "to": [    "string"  ]}