POST
/
me
/
backup-codes
Generate Backup Codes
curl --request POST \
  --url https://{deploymentHost}/me/backup-codes
{
  "status": 200,
  "message": "",
  "data": {
    "backup_codes": [
      "ABCD-1234",
      "EFGH-5678",
      "IJKL-9012",
      "MNOP-3456",
      "QRST-7890",
      "UVWX-2468",
      "YZAB-1357",
      "CDEF-9024",
      "GHIJ-5791",
      "KLMN-8246",
      "OPQR-1593",
      "STUV-7420"
    ],
    "generated_at": "2024-01-15T11:00:00Z"
  },
  "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 generated successfully

The response is of type object.