Who this message is with, and the shape of its conversation

GET/api/v1/mailbox/messages/{message_id}/context
Requires amailbox token— it acts as one mailbox holder, not as the organization.

Header-only context for one message: the history with its correspondent and the thread it belongs to. Always available -- no AI is involved and none is required. A message with no identifiable correspondent (a bounce, a self-note) omits the correspondent block.

Parameters

NameInTypeDescription
message_idrequiredpathstring

Request

GET/api/v1/mailbox/messages/{message_id}/context
curl -X GET 'https://app.mailyte.com/api/v1/mailbox/messages/01JBT8XQ2M9WYC3K4F6R7S8T9V/context' \
  -H 'Authorization: Bearer MAILBOX_TOKEN'
The key names its own organization, so no X-Organization-ID header is needed.

Response

Successful Response

Returned inside the standard envelope.

Errors

StatusWhen
422Validation Error

Every status, with what causes it and what to do, is on the error reference.