Reference / Auth

Generate (or regenerate) the current user's recovery backup codes — shown once.

POST /v1/auth/mfa/backup-codes
End-user session operationId: generate_backup_codes

Authorization

Called from the browser with the publishable application id (x-application-id); the access token lives in memory.

Responses

200 New backup codes
{
  "data": {
    "codes": [
      "string"
    ]
  },
  "error": {
    "code": "string",
    "message": "string"
  },
  "meta": {
    "timestamp": "string"
  },
  "success": false
}
401 No end-user session

Request

curl -X POST "http://localhost:8080/v1/auth/mfa/backup-codes" \

Try it

live request
POST http://localhost:8080/v1/auth/mfa/backup-codes