> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gosentrix.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Verify MFA

> Verify MFA enrollment with TOTP code

Verify MFA enrollment by providing a TOTP code from your authenticator app.

<RequestExample>
  ```bash theme={null}
  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"
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "message": "MFA verified successfully",
    "mfa_enrolled": true
  }
  ```
</ResponseExample>

## Request Body

<ParamField path="code" type="string" required>
  TOTP code from authenticator app (6 digits)
</ParamField>

## Response

<ResponseField name="message" type="string">
  Success message
</ResponseField>

<ResponseField name="mfa_enrolled" type="boolean">
  MFA enrollment status
</ResponseField>

## Errors

<ResponseField name="400" type="object">
  Invalid or expired code
</ResponseField>

<ResponseField name="401" type="object">
  Invalid or missing token
</ResponseField>

## 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
