Start two-factor enrolment

POST/api/v1/mailbox/security/2fa/begin
Requires amailbox token— it acts as one mailbox holder, not as the organization.

Generates a secret and recovery codes. Enrolment is NOT active until /confirm succeeds with a working code -- otherwise a mis-scanned QR would lock the holder out of their own mailbox.

Request

POST/api/v1/mailbox/security/2fa/begin
curl -X POST 'https://app.mailyte.com/api/v1/mailbox/security/2fa/begin' \
  -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

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