Download one consent document

GET/api/v1/mailbox/ai/consent/{consent_id}/document
Requires amailbox token— it acts as one mailbox holder, not as the organization.

The stored PDF for one ledger entry -- own records only; another mailbox's id is a 404, not a 403.

Parameters

NameInTypeDescription
consent_idrequiredpathstring

Request

GET/api/v1/mailbox/ai/consent/{consent_id}/document
curl -X GET 'https://app.mailyte.com/api/v1/mailbox/ai/consent/01JBT8XQ2M9WYC3K4F6R7S8T9V/document' \
  -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.