curl -X POST https://api.gosentrix.io/api/v1/mfa/verify \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"code": "123456"
}'
{
"message": "MFA verified successfully",
"mfa_enrolled": true
}
Authentication API
Verify MFA
Verify MFA enrollment with TOTP code
POST
/
api
/
v1
/
mfa
/
verify
curl -X POST https://api.gosentrix.io/api/v1/mfa/verify \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"code": "123456"
}'
{
"message": "MFA verified successfully",
"mfa_enrolled": true
}
Verify MFA enrollment by providing a TOTP code from your authenticator app.
curl -X POST https://api.gosentrix.io/api/v1/mfa/verify \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"code": "123456"
}'
{
"message": "MFA verified successfully",
"mfa_enrolled": true
}
Request Body
string
required
TOTP code from authenticator app (6 digits)
Response
string
Success message
boolean
MFA enrollment status
Errors
object
Invalid or expired code
object
Invalid or missing token
Notes
- TOTP codes expire after 30 seconds
- After successful verification, MFA will be required for all logins
- Backup codes can be used if authenticator app is unavailable