Saltar al contenido principal

2FA Verify Explorer

Verify 2FA code and enable Two-Factor Authentication.

POST/auth/account/2fa/verify

Description

Verify the 6-digit TOTP code from authenticator app to enable 2FA. Requires token from setup step.

Parameters

6-digit TOTP code from authenticator app
Verification token from setup step

Responses

1008 Response

OTP code is valid - 2FA enabled successfully.

4003 Response

Unauthorized - Invalid code or token.

401 Unauthorized

Unauthorized - Valid JWT token required in Authorization header.

Test Request
https://www.swapbits.site/api
curl -X POST "https://www.swapbits.site/api/auth/account/2fa/verify" \
  -H "Content-Type: application/json"