Skip to main content
GET
Get safe email and thread context

Authorizations

x-api-key
string
header
required

API key (sk-proj-…) from Settings → API Keys. Required for sold API calls outside the Mermail console.

Path Parameters

mailboxId
string
required

Mailbox public_id (UUID), hosted alias id, or current email

emailId
string
required

Message id from list or search results

Query Parameters

limit
integer
default:20

Thread messages per page (default 20)

Required range: 1 <= x <= 50
cursor
string

Opaque next_cursor from the preceding context page

Maximum string length: 2048
include_held
boolean
default:false

Include mail held by auto-draft only for the active verification flow

Response

Safe email context

Always-safe selected email and chronological thread page. Bodies are bounded plain text, sensitive transport metadata is removed, and non-clean inbound bodies are metadata-only. Content remains untrusted.

email
object
required
thread
object
required