How to generate DirectAdmin login keys for WHMCS

To add a DirectAdmin server in WHMCS, you must first create a login key. Login keys allows to set specific permissions for the connection, instead of using a general password which will provide full access.

To create a DirectAdmin login key for WHMCS connection:

1. Log into DirectAdmin as admin/reseller

2. Search for Create Login Key.

3. Enter:
– Key Name: just a label for the key
– Key Value: click the button to generate a random value
– Expires On: if you want to set an expiration date, otherwise choose Never.
– Uses: number of uses; enter 0 which means unlimited uses
– Commands: select the 19 commands from the below table
– Allowed IPs: enter the IP of your WHMCS installation
– Current Password: this is the currrent password of your admin/reseller DA account

4. When done, click the Create button.

1CMD_API_ACCOUNT_USER
2CMD_API_ADDITIONAL_DOMAINS
3CMD_API_DNS_CONTROL
4CMD_API_DNS_MX
5CMD_API_FTP
6CMD_API_MODIFY_RESELLER
7CMD_API_MODIFY_USER
8CMD_API_PACKAGES_RESELLER
9CMD_API_PACKAGES_USER
10CMD_API_RESELLER_STATS
11CMD_API_SHOW_ALL_USERS
12CMD_API_SHOW_RESELLERS
13CMD_API_SHOW_RESELLER_IPS
14CMD_API_SHOW_USERS
15CMD_API_SHOW_USER_CONFIG
16CMD_API_SHOW_USER_USAGE
17CMD_API_SYSTEM_INFO
18CMD_API_USER_PASSWD
19CMD_SELECT_USERS
DirectAdmin APIs required for WHMCS – sorted alphabetically
whmcs directadmin key
DirectAdmin Login Key for WHMCS

To create add the new server connection in WHMCS, navigate to System Settings >> Servers >> Add New Server

Leave a Reply