Skip to content
HoganHost blog

Managing API Tokens Safely in cPanel

Some tools and scripts need to manage your account automatically. A deployment script might upload new files, or a monitoring tool might check your services. Instead of sharing your password with those tools, cPanel lets you create API tokens. A token is a long code that grants access for one purpose, and you can revoke it at any time.

Tokens are powerful, so treat them like passwords.

Open Manage API Tokens

  1. Log in to cPanel.
  2. In the Security group, click Manage API Tokens.

If you cannot find this tool, the feature may not be enabled on your account. Contact HoganHost support to check.

Create a Token

  1. Click Create Token.
  2. Enter a name that describes the tool using it, such as deploy-script or monitor-check.
  3. Click Create.

Save the Token Immediately

cPanel shows the token value only once. Copy it straight away and store it in a password manager or a secure file. If you lose it, you cannot retrieve it, and you will need to create a new token and update the tool that uses it.

Review Your Tokens

The tokens table lists each token by name, with the date it was created. Review the list regularly. If a tool is no longer in use, revoke its token.

Revoke a Token

  1. Find the token in the table.
  2. Click Revoke.
  3. Confirm the revoke action.

A revoked token stops working straight away. Any tool using it will fail until you give it a new token.

Keep Tokens Safe

  • Never paste a token into a public repository, a chat message, or a shared document.
  • Give each tool its own token, so you can revoke one without affecting the others.
  • Revoke any token you no longer recognize.

Need help setting up a secure automated workflow? Contact HoganHost support for guidance on your account.

Share this article
Written by

Join the conversation.

Your email address will not be published. Required fields are marked *

Your next chapter starts here

Put your next big idea online.

The right hosting. A name of your own. A real team in your corner.

Explore Hosting