Why API Tokens Are Better Than cPanel Passwords for Automation Print

  • api-token, automation, password, security
  • 0

For unattended API automation, use an API token instead of embedding the cPanel account password.

Tokens can be named, expired, and revoked without changing the primary account password. Current cPanel security guidance also treats API tokens as the supported method for unattended API authentication when stronger 2FA-related API policies are enabled.

Store tokens in a secrets mechanism or protected configuration, not in public source code or browser-delivered JavaScript.


Was this answer helpful?

« Back