Return suspended cPanel accounts

This function lists locked accounts on the server. Only WHM users with root-level privileges can unsuspend locked accounts.

SecurityBasicAuth
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
object
get/listlockedaccounts
Request samples
whmapi1 --output=jsonpretty \
  listlockedaccounts
Response samples
application/json
{
  • "data": {
    • "account": [
      • "account1",
      • "account2"
      ]
    },
  • "metadata": {
    • "command": "listlockedaccounts",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}