Get a received message, including raw MIME

GET
/v1/inbound/{id}

The raw message is returned byte-for-byte from R2 exactly as ingested (never parsed) — raw is null if the R2 object is missing (metadata is still returned rather than a 500).

Authorization

bearerAuth
headerAuthorizationBearer <token>

API key sent as Authorization: Bearer <key>. Looked up by SHA-256 hash (email_core::sha256_hex) against api_keys.hash; revoked keys and keys belonging to a suspended tenant are rejected. See the top-level Authentication section for permission levels.

Path Parameters

id*string

The message id returned by POST /v1/email(/batch).

Response Body

Inbound message detail.

application/json
  1. response

The single-item shape (GET /v1/inbound/{id}) — from/to (not from_addr/to_addr), plus raw.

id?string
from?string
to?string
subject?string|null
message_id?string|null
in_reply_to?string|null
size_bytes?integer
Formatint64
created_at?integer
Formatint64
raw?|

The full raw MIME message, or null if the R2 object could not be read.

curl -X GET "https://example.com/v1/inbound/string"
{  "id": "string",  "from": "string",  "to": "string",  "subject": "string",  "message_id": "string",  "in_reply_to": "string",  "size_bytes": 0,  "created_at": 0,  "raw": "string"}