CAll Us: +91 88 00 563434   Login

How to manage API Tokens in cPanel

You are here:
< All Topics

These days, now we have the posh to make use of API for programmatically utilizing any system that gives API entry. The excellent news is, cPanel now gives us API too! It implies that a reseller or innovator can use the API to create a system primarily based on cPanel that may automate many duties. Let’s see how we are able to handle API tokens in cPanel.

Handle API Tokens in cPanel

cPanel is likely one of the well-known and extensively used webhosting management panels in Linux primarily based servers. From the cPanel model 80 onwards, a brand new function has been added which is called Handle API Token. This interface is used to create and revoke listing of API tokens. The necessity for API token is {that a} consumer will have the ability to login into the server with out the necessity of a password.  An API token can be utilized to authenticate with the WHM distant API.  This function permits the cPanel customers to subject API tokens in order that Resellers and third-party builders can use these API tokens to run API features.

On this tutorial, we’re going to talk about on how you can create and revoke API token in cPanel. Please notice, this function is out there solely from the cPanel model 80 onwards.

1) Login to cPanel server.

2) Go to Safety >> Handle API Tokens.

API Tokens

3) You possibly can enter the API Token identify, then click on on “Create”. I’ve used “take a look at” because the token identify however you may identify it no matter you need, It’s only for identification.

API Tokens

4) Now you’ve got created an unrestricted API token. It would redirect you to the next web page the place you may see and duplicate the API token. Copy the API token by clicking on “COPY” as proven within the following picture after which click on on “YES, I SAVED MY TOKEN”.

API Tokens

5) Now you’ve got efficiently created the API token. If you wish to revoke or rename an API token, click on on the “MANAGE” button comparable to the API token.

API Tokens

6) Right here you may rename API token after which click on on the “UPDATE” replace button to replace the token.

Manage API Token

 

7) If you wish to revoke the API token click on on “YES REVOKE THE TOKEN”.  Now you’ve got efficiently revoked the API token. Revoking a token renders it ineffective. It implies that in case you are utilizing that token in any of your functions, it won’t operate anymore.

Manage API Tokens

When you want any additional assist with managing API tokens in cPanel, please do attain our assist division. You too can remark down your queries within the remark part and we’ll reply as quickly as potential.

Knowledge Base