v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Tokens
API Token Management

Return cPanel API tokens

This function returns a list of a cPanel account's API tokens.

get/Tokens/list

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "list",
  "module": "Tokens",
  "result": {
    "data": [
      {
        "create_time": 1549471343,
        "expires_at": 1609372800,
        "features": [],
        "has_full_access": 1,
        "name": "exampletoken"
      }
    ],
    "metadata": {
      "transformed": 1
    },
    "status": 1
  }
}