MillionSend Docs

List a thread's emails

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

Received and sent messages of the thread, oldest first (after pages toward newer ones), with their bodies. Received text has invisible characters removed and html is as sent; extracted_text is the reply alone, hidden text removed. Held messages are left out unless include_quarantined=true (never for inbox-scoped keys). 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

Query Parameters

limit?string

Page size, 1-100 (default 20)

after?string

Cursor: id of the last item of the current page; returns the next page. Must be an id this list returned; there is no sentinel value.

before?string

Cursor: id of the first item of the current page; returns the previous page; same rule as after.

include_quarantined?string

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

Response Body

Emails

application/json
  1. response
object*"list"
Value in"list"
has_more*boolean
data*array<|>
Example Request
curl -X GET 'https://api.millionsend.com/inboxes/497f6eca-6276-4993-bfeb-53cbbbba6f08/threads/497f6eca-6276-4993-bfeb-53cbbbba6f08/emails'
Example Response
{  "object": "list",  "has_more": true,  "data": [    {      "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"    }  ]}