API Usage and Automation
Learn how to use the WHMCS API to automate management, billing, and integration with your own systems.
Getting Your API Credentials
To get started, you will need to generate API credentials. In your WHMCS admin area, navigate to Configuration > System Settings > Staff Management > Manage API Credentials.
API Request Example (cURL)
curl -X POST "https://yourdomain.com/includes/api.php" \
-d "action=GetClientsDetails" \
-d "username=YOUR_API_USERNAME" \
-d "password=YOUR_API_PASSWORD_OR_KEY" \
-d "clientid=1" \
-d "responsetype=json"
CopyFor full WHMCS API documentation and SDKs, please refer to the official WHMCS Developer Documentation.