Skip to main content
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

code
string
required
TOTP code from authenticator app (6 digits)

Response

message
string
Success message
mfa_enrolled
boolean
MFA enrollment status

Errors

400
object
Invalid or expired code
401
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