Remove cPanel API token

This function removes an API token from a cPanel account.

SecurityBasicAuth
Request
query Parameters
name
required
string

The API token to remove.

Example: name=example
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Tokens/revoke
Request samples
uapi --output=jsonpretty \
  --user=username \
  Tokens \
  revoke \
  name='example'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "revoke",
  • "module": "Tokens",
  • "result": {
    • "data": 1,
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}