Disable WHM API token

This function revokes an API token from the WHM account.

SecurityBasicAuth
Request
query Parameters
token_name
required
string

The API token's name.

Note:

To revoke multiple API tokens, increment this parameter's name. For example: token_name-1, token_name-2, and token_name-3.

Examples:
token_name=token_name-1=subway&token_name-2=job&token_name-3=jmkMRXBnhp20iz
token_name=subway
Responses
200

HTTP Request was successful.

Response Schema: application/json
object
get/api_token_revoke
Request samples
whmapi1 --output=jsonpretty \
  api_token_revoke \
  token_name='subway'
Response samples
application/json
{
  • "metadata": {
    • "command": "api_token_revoke",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}