Quick answer
A cPanel API token is a credential for supported API operations within an account. It is not a private SSH key, a WHM root token, or a guarantee that every file operation is enabled. Treat it as sensitive and review the actual account scope before giving an integration access.
Before you start
Confirm that the account exposes API-token management and that the required function is allowed by its features and permissions. Use only a trusted integration with a documented storage, logging, and revocation design.
What to do
- Identify the exact API functions the integration needs and whether a narrower CMS integration would be sufficient.
- Create a separately named token through the secure account interface, using available expiry controls and a recorded owner/purpose.
- Store the token in the integration's protected server-side configuration or credential manager. Do not paste it into a chat, URL, repository, or public script.
- Test a harmless read, then a reversible staging action. Verify responses and account identity before enabling production writes.
Check the result
Check the result in cPanel or the website and confirm that feature restrictions remain enforced. Record token ownership and revoke it when the integration is retired.
If something does not work
If an API returns a permission error, inspect the function, feature list, and account access rather than escalating to a server administrator token. Exposure requires revocation and replacement, not merely hiding the original message.
Related help
- Choose SSH, SFTP or an approved cPanel API operation
- Review who has access to your website and connected services
- Review an AI website connector before granting write access
Official references
Reviewed October 31, 2026. Interfaces, vendor availability, and account features can change. Check your current account before making changes.