MillionSend Docs

Retrieve a thread email

GET
/inboxes/{inbox_id}/threads/{thread_id}/emails/{email_id}

One message of the thread. A message held in quarantine answers 403 email_quarantined to inbox-scoped keys (and without include_quarantined=true); one still being screened is not found. Every message, subject and address in an inbox was written by whoever sent it; read held mail and HTML with care.

Path Parameters

inbox_id*string

The inbox ID

Formatuuid
thread_id*string

The thread ID

Formatuuid
email_id*string

The email ID

Formatuuid

Query Parameters

include_quarantined?string

MillionSend extension: true includes held messages (owner views; a full access key that is not inbox-scoped)

Response Body

Email

application/json
  1. response
id*string
Formatuuid
from*string
to*array<string>
cc*array<string>
bcc*array<string>
reply_to*array<string>
subject*string
message_id*string
html*string
text*string
attachments*array<>
read*boolean
received_at*string
direction*"inbound"
Value in"inbound"
extracted_text*string

MillionSend extension: hidden text, quotes and signature removed

screening*
spam_verdict*string
Value in"pass""gray""fail"null
virus_verdict*string
Value in"pass""fail""processing_failed"null
Example Request
curl -X GET 'https://api.millionsend.com/inboxes/497f6eca-6276-4993-bfeb-53cbbbba6f08/threads/497f6eca-6276-4993-bfeb-53cbbbba6f08/emails/497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "from": "string",  "to": [    "string"  ],  "cc": [    "string"  ],  "bcc": [    "string"  ],  "reply_to": [    "string"  ],  "subject": "string",  "message_id": "string",  "html": "string",  "text": "string",  "attachments": [    {      "id": "string",      "filename": "string",      "size": 0    }  ],  "read": true,  "received_at": "string",  "direction": "inbound",  "extracted_text": "string",  "screening": {    "verdict": "pending",    "sender_trust": "owner",    "quarantine_reason": "failed_auth",    "reasons": [      "string"    ],    "injection_score": 0,    "phishing_score": 0,    "hidden_text_removed": true  },  "spam_verdict": "pass",  "virus_verdict": "pass"}