api_token_revoke

This function revokes an API token from the WHM account.

Authorizations:
query Parameters
token_name
required
string
Example: token_name=subway

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.

Responses

Response Schema: application/json
object

Request samples

whmapi1 api_token_revoke token_name='token_name-1=subway&token_name-2=job&token_name-3=jmkMRXBnhp20iz'

Response samples

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