cURL
curl --request POST \ --url https://api.flowxi.app/api/v1/auth/2fa/disable \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "code": "123456" } '
{ "code": "TWOFA_DISABLED", "message": "2FA disabled.", "enabled": false }
Verifies code against DB secret, disables 2FA (resets secret).
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"123456"
2FA disabled.
"OK"
false