Authentication

Regenerate recovery codes

Changed on

Issues a fresh set of ten recovery codes and invalidates the previous set. Requires the current password, a live authenticator code, or one of the existing recovery codes (which is then consumed).

Copy as Markdown Open in ChatGPT Open in Claude

post/v1/users/self/mfa/recovery-codes

Request

  • Base URL
    https://api.assinafy.com.br
  • URL
    https://api.assinafy.com.br/v1/users/self/mfa/recovery-codes
  • Auth
    • HTTP bearer
    • or API key in header X-Api-Key

Request body

passwordstring password
codestring

A live 6-digit authenticator code, or one of the existing recovery codes.

Example request

{
  "code": "123456"
}

Response

New recovery codes

statusinteger

HTTP status code, mirrored in the body.

messagestring

Human-readable message; empty on success.

Example response

{
  "status": 200,
  "data": {
    "recovery_codes": [
      "ABCD-EFGH-JKMN"
    ]
  }
}

Changes