Get your free beta license ↗
API operation · auth group
POST

/auth/second-factor/disable

First published 3 Oct 20260.1.0Unchanged since publication

Disable the caller's second factor

Who may call it
AdministratorResellerCustomer
Token scope
Any
Answers200 OK

Supply current_password to clear the second factor. The response contains enabled set to false.

As a command

Run as root on the server

Request body

JSON ·CurrentPassword· 1 field
current_passwordstring, up to 128 charactersRequired

Example

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 sentence
400--name is required
400<name> has an owner: move them to the administrator before changing their role
400<name> is an administrator: administrators have no home, so nothing to back up
400<name> is an administrator: administrators have no system account
400<name> is an administrator: administrators have no system account, so no shell
400Cannot demote or suspend the last active administrator
400Domain name required
400Domain name too long
400Invalid IPv4 address
400Invalid IPv6 address
400Invalid boolean
400Invalid domain name
400Invalid email address
400Invalid id
400Invalid password hash
400Invalid password: 8 to 128 printable characters
400Invalid port
400Invalid role: admin, user or reseller
400Invalid setting key
400Invalid status
400Invalid system password hash
400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter
400Nothing to change
400Only a customer has an owner: an administrator or a reseller is the administrator's own
400The second factor can only be turned off here; a user enrols from their own page
400Username '<value>' is reserved
401Authentication required
401The password is not the panel password
404Setting '<key>' not found
404User '<name>' not found
409<name> is on the package <p.name> of the reseller <p.owner>: change the package before the move
409<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>
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/