Disable two-factor (2FA) for the current user
POST /api/me/2fa/disable
POST /api/me/2fa/disableInteractive request editor loads with JavaScript.
X-API-KEY<token>
In: header
Request Body
application/json
A two-factor verification code (TOTP or one-time recovery code).
Response Body
application/json
curl -X POST "$API_BASE_URL/api/me/2fa/disable" \ -H "Content-Type: application/json" \ -d '{ "code": "string" }'Operation completed successfully with no response body.
""Invalid arguments. Error details will be provided in the response.
Complete operation details and schema variants
POST /api/me/2fa/disable
Disable two-factor (2FA) for the current user
Disable two-factor authentication for the currently authenticated user after validating a current TOTP or recovery code.
Parameters
Request body
Content type: application/json
code(string, required): The TOTP code or a one-time recovery code.
Responses
200: Operation completed successfully with no response body.400: Invalid arguments. Error details will be provided in the response.
cURL
curl -X POST '$API_BASE_URL/api/me/2fa/disable'