curl -X POST https://cp.gosentrix.io/api/v1/mfa/recovery-codes/regenerate \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
"backup_codes": [
"ABCD-1234-EFGH",
"IJKL-5678-MNOP",
"QRST-9012-UVWX",
"YZAB-3456-CDEF",
"GHIJ-7890-KLMN"
]
}
Control Plane API
MFA Recovery Codes
Regenerate MFA recovery codes
POST
/
api
/
v1
/
mfa
/
recovery-codes
/
regenerate
curl -X POST https://cp.gosentrix.io/api/v1/mfa/recovery-codes/regenerate \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
"backup_codes": [
"ABCD-1234-EFGH",
"IJKL-5678-MNOP",
"QRST-9012-UVWX",
"YZAB-3456-CDEF",
"GHIJ-7890-KLMN"
]
}
Regenerate MFA recovery codes if you’ve lost access to your authenticator app.
curl -X POST https://cp.gosentrix.io/api/v1/mfa/recovery-codes/regenerate \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
"backup_codes": [
"ABCD-1234-EFGH",
"IJKL-5678-MNOP",
"QRST-9012-UVWX",
"YZAB-3456-CDEF",
"GHIJ-7890-KLMN"
]
}
Notes
- Requires step-up authentication
- Previous recovery codes are invalidated
- Save new codes in a secure location
- Codes are single-use only
Errors
object
Invalid or missing token
object
Step-up authentication required