POST
/
me
/
backup-codes
/
regenerate
Regenerate Backup Codes
curl --request POST \
  --url https://{deploymentHost}/me/backup-codes/regenerate
{
  "status": 200,
  "message": "",
  "data": {
    "backup_codes": [
      "WXYZ-9876",
      "ABCD-5432",
      "EFGH-1098",
      "IJKL-7654",
      "MNOP-3210",
      "QRST-9876",
      "UVWX-5432",
      "YZAB-1098",
      "CDEF-7654",
      "GHIJ-3210",
      "KLMN-9876",
      "OPQR-5432"
    ],
    "regenerated_at": "2024-01-15T11:30:00Z",
    "previous_codes_invalidated": true
  },
  "session": {
    "signin_attempts": [],
    "signins": [
      {
        "id": "signin_987654321",
        "user_id": "user_456789123",
        "created_at": "2024-01-01T12:00:00Z"
      }
    ],
    "signup_attempts": [],
    "active_signin": {
      "id": "signin_987654321",
      "user_id": "user_456789123",
      "created_at": "2024-01-01T12:00:00Z"
    }
  },
  "errors": []
}

Authorizations

__session
string
cookie
required

Session cookie authentication for production deployments. The session token is automatically set as an HTTP-only, secure cookie.

Response

200
application/json

Backup codes regenerated successfully

The response is of type object.