Manual
CLI
API
Log in Get started free

Make new recovery codes

Replaces your recovery codes with 10 new ones.

Replaces your recovery codes with 10 new ones.

HTTP
POST /account/mfa/recovery-codes

Access: Session token only. API keys get 403 with insufficient_scope.

The old codes stop working.

Request body #

JSON.

FieldTypeRequiredDescription
passwordstringyesYour password.

Response 200 #

JSON
{ "recoveryCodes": ["3fa9c-1b2d4", "9c0e1-77aa3"] }

Errors #

StatuserrorWhen
401unauthenticatedThe token is missing or not valid.
403wrong_passwordpassword is not your password.
409mfa_not_enabledTwo-factor authentication is off.
429rate_limitedToo many requests, see Rate limiting.

See Errors for the error format.