Regenerate all backup codes, invalidating any previously generated codes. This should be done if backup codes are compromised or lost.
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": []
}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": []
}