Return cPanel API tokens

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

Authorizations:

Responses

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

Request samples

uapi --output=jsonpretty \
  --user=username \
  Tokens \
  list

Response samples

Content type
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
    }
}