latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

Authentication
API Token Management

Disable WHM API token

This function revokes an API token from the WHM account.

get/api_token_revoke

Query parameters

token_namestring required
Example: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.

Response

HTTP Request was successful.

Example response

{
  "metadata": {
    "command": "api_token_revoke",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}