Knowledge Base
MilesWeb / cPanel, How-Tos

How to Create and Manage API Tokens in cPanel?

Approx. read time : 3 min

Watch this video for a step by step process on How to Create and Manage API Tokens in cPanel

API is a unique identifier or authentication that allows an application to access a service. It is possible to create and manage API Tokens in cPanel from version 80 onwards. The main function of the API token is to grant a user access to the server without logging in with a password.

So, by issuing API tokens, it is possible to grant permissions to resellers or third-party developers to carry API2 and UAPI operations.

1. Log in to your cPanel account.

2. Go to the SECURITY section and click on Manage API Tokens.

The Manage API Tokens panel will appear.

You will first have to create a new API token.

To Create API Tokens

  1. Enter the name for the API token in the API Token Name field.
  2. Choose the Specify an expiration date option.
  3. Select a date from the calendar in the API Token Expiration Date. The token will remain usable till that date.
  4. Click on Create.

Note: Although you can choose The API Token will not expire option, we strongly recommend you don’t.

A success message will appear as cPanel will create a new token.

5. Copy the API token someplace discreet to share it with your operator later.

6. Click on the Yes, I Saved My Token button.

The API token you created will now appear in the list for the active API tokens.

To Manage API Tokens

1. Click the Manage button for the API token you want to manage.

Here, there will be two sections-

  • MANAGE API TOKEN: Here, you can change the name for the API Token.
  • REVOKE API TOKEN: It allows you to discard the API token.

MANAGE API TOKEN

  1. Enter the new name for the API token in the New API Token Name field.
  2. Click the Update button.

The name of the API token will change to the new one you just updated.

REVOKE API TOKEN

1. Click on Revoke The Token.

A message will flash asking for your confirmation.

2. Click on the Yes, Revoke The Token button.

The system will turn the API Token invalid and remove it from the list of active tokens.

That is all there is to know about configuring API tokens in cPanel.

Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.
Need help? We’re always here for you.