How to create API Credentials in WHMCS?

Last Update: March 2, 2023

you can generate unique API authentication credentials. This allows for better management and security for provisioning access to API-connected devices and systems.

  1. You can access this feature at Configuration > System Settings > API Credentials.
  2. Choose the API Roles tab > Click Create API Role > Enter a role name and description
  3. From the Allowed API Actions List choose the desired action for example (Products > GetProducts) > Then click on save
  4. Choose the API Credentials tab > Click Generate New API Credential > Select the admin who the new credential will authenticate > Select the desired API roles
  5. Click Generate. The system will provide a unique API credential and the credential identifier and secret will display.
  6. You must copy the Secret value at this time. If you lose this, you will need to generate a new credential pair.