Generate 12 backup codes for two-factor authentication recovery. These codes can be used when the authenticator app is unavailable.
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": []
}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": []
}