Skip to content
Want to get Premium Web Hosting only at 45₹/Month Signup Now!

How to Create an API Token in cPanel

API tokens in cPanel allow you to securely interact with the cPanel API without sharing your account password. This is especially useful for automated tasks and application integration. Follow these steps to create an API token in cPanel.


Step-by-Step Guide to Creating an API Token

Step 1: Log in to cPanel

  • Log in to your cPanel account using your username and password.

Step 2: Access the API Token Management Page

  • Locate the Manage API Tokens option under the Security section in the cPanel dashboard.
  • Click on it to open the API Token Management interface.

Step 3: Configure API Token Details

  1. API Token Name
    • Enter a meaningful name for your API token (e.g., “AutomationScript”).
  2. Set Expiration
    • Choose whether the token should expire:
      • No Expiration: The token will remain active indefinitely.
      • Specify an Expiration Date: Select a date for the token to expire for enhanced security.

Step 4: Generate the API Token

  • Click Create to generate your API token.
  • The system will display the token only once. Copy the token and store it securely.

Step 5: Keep Security in Mind

  • Important: The API token provides access to every API function you can use in cPanel. Do not share the token with unauthorized individuals or untrusted applications.Screenshot Suggestion: Display the security warning shown in cPanel.

Conclusion

Creating an API token in cPanel is an easy way to securely interact with the cPanel API for various tasks. Always store your tokens safely, delete unused tokens, and use expiration dates whenever possible to maintain security.

Was this article helpful?
YesNo
Back To Top