Return cPanel API tokens

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

SecurityBasicAuth
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/list
Request samples
uapi --output=jsonpretty \
  --user=username \
  Tokens \
  list
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "list",
  • "module": "Tokens",
  • "result": {
    • "data": [
      • {
        • "create_time": 1549471343,
        • "expires_at": 1609372800,
        • "features": [ ],
        • "has_full_access": 1,
        • "name": "exampletoken"
        }
      ],
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}