Skip to content
Select themeSelect language

POST /api/me/2fa/disable — disable 2FA. Requires a currently-valid TOTP or recovery code so a session alone cannot strip protection.

POST
/api/me/2fa/disable
curl --request POST \
--url https://example.com/api/me/2fa/disable \
--header 'Content-Type: application/json' \
--data '{ "code": "example" }'
Media typeapplication/json
object
code
required
string
Examplegenerated
{
"code": "example"
}
Media typeapplication/json

{"ok": true} — a bare success acknowledgement.

object
ok
required

Always true on success.

boolean
Examplegenerated
{
"ok": true
}