You can find our user documentation at

Check out our new API beta site!

Page tree
Skip to end of metadata
Go to start of metadata


In cPanel & WHM version 80, we introduced cPanel application programming interface (API) tokens. cPanel users can issue these API tokens. The server recognizes API tokens and allows other users to run API functions with the account's data. API functions allow you to view and change account data without the need to log in to the cPanel interface. For example, you could issue an API token to a third-party developer. That third-party developer could use that token to check disk usage.


  • API tokens run UAPI functions and cPanel API 2 functions, not cPanel API 1 functions. For more information, read our Quickstart Development Guide documentation.
  • If you do not see this feature, your system administrator has disabled it. Contact them and ask them to enable this feature in WHM's Feature Manager interface (WHM >> Home >> Package >> Feature Manager).

How to use a cPanel API token

To use a cPanel API token, first, create a cPanel API token in cPanel's Manage API Tokens  interface (cPanel >> Home >> Security >> Manage API Tokens). Then, use the token to run API functions on the server.

Create an API token

You can use one of the following methods to create an API token:


  • In cPanel & WHM version 82, when an API token expires, the system does not remove it. You must manually delete an API token.
  • You can remove an API token with cPanel's  Manage API Tokens  interface (cPanel >> Home >> Security >> Manage API Tokens) or the UAPI  Tokens::revoke function.

Run API functions with the token


You must use the API token that you created in cPanel.

To call a UAPI or cPanel API 2 function with an API token, run the following command from the command line:

curl -H'Authorization: cpanel username:APITOKEN' ''

This example uses the following format:

usernameThe cPanel account's username.username
example.comYour cPanel server's domain.


Alternatively, you can enter your server's IP address.


The API module name.


The API function's name.

parameterThe function's input
valueThe value to assign to the input parameter.12345luggage

For example, your command may resemble the following example:

curl -H'Authorization: cpanel username:U7HMR63FHY282DQZ4H5BIH16JLYSO01M' ''

Additional documentation

There is no content with the specified labels

There is no content with the specified labels

There is no content with the specified labels