API operation · auth group
POST
/auth/second-factor/disable
First published 3 Oct 2026
0.1.0Unchanged since publicationDisable the caller's second factor
Who may call it
AdministratorResellerCustomer
Token scope
AnyAnswers200 OK
Supply current_password to clear the second factor. The response contains enabled set to false.
As a command
Run as root on the servercurrent_passwordstring, up to 128 charactersRequiredExample
See the API overview for how to set $API and $TOKEN.Request
curl -sS -X POST "$API/auth/second-factor/disable" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"current_password": "text"
}'Response ·
200 OK{
"enabled": true
}Errors
35 errors, each a status and a sentence400--name is required400<name> has an owner: move them to the administrator before changing their role400<name> is an administrator: administrators have no home, so nothing to back up400<name> is an administrator: administrators have no system account400<name> is an administrator: administrators have no system account, so no shell400Cannot demote or suspend the last active administrator400Domain name required400Domain name too long400Invalid IPv4 address400Invalid IPv6 address400Invalid boolean400Invalid domain name400Invalid email address400Invalid id400Invalid password hash400Invalid password: 8 to 128 printable characters400Invalid port400Invalid role: admin, user or reseller400Invalid setting key400Invalid status400Invalid system password hash400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Nothing to change400Only a customer has an owner: an administrator or a reseller is the administrator's own400The second factor can only be turned off here; a user enrols from their own page400Username '<value>' is reserved401Authentication required401The password is not the panel password404Setting '<key>' not found404User '<name>' not found409<name> is on the package <p.name> of the reseller <p.owner>: change the package before the move409<name> owns <owned> 409<who> and its bandwidth for the month is used up: 409<who> and its disk is used up: 409The package <p.name> allows <limit> No error of this operation matches.
Generated from release 0.2.35 (current) · the API’s own descriptionThis entry has been unchanged since it was first published in release 0.1.0 on 3 Oct 2026.
urbestack.com/docs/api/post-auth-second-factor-disable/