Disable WHM API token

This function revokes an API token from the WHM account.

Authorizations:
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

Response Schema: application/json
object

Request samples

whmapi1 api_token_revoke token_name='subway'

Response samples

Content type
application/json
{
  • "metadata": {
    • "command": "api_token_revoke",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}