WHM API.
Download OpenAPI description
Overview
URL
WebPros International, LLC
License
Languages
Servers
Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
A server running WHM.
https://{host}:{port}/json-api/
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/remote_mysql_initiate_profile_activation
- A server running WHM.
https://whm-server.tld:2087/json-api/remote_mysql_initiate_profile_activation
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/whm.openapi/remote_mysql_initiate_profile_activation?name=MyProfile'Response
application/json
{ "data": { "activation_job_started": 8093 }, "metadata": { "command": "remote_mysql_initiate_profile_activation", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/remote_mysql_monitor_profile_activation
- A server running WHM.
https://whm-server.tld:2087/json-api/remote_mysql_monitor_profile_activation
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/remote_mysql_monitor_profile_activationResponse
application/json
{ "data": { "job_in_progress": { … }, "last_job_details": { … } }, "metadata": { "command": "remote_mysql_monitor_profile_activation", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/remote_mysql_read_profile
- A server running WHM.
https://whm-server.tld:2087/json-api/remote_mysql_read_profile
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/whm.openapi/remote_mysql_read_profile?name=MyProfile'Response
application/json
{ "data": { "profile_details": { … }, "profile_name": "MyProfile" }, "metadata": { "command": "remote_mysql_read_profile", "reason": "OK", "result": 1, "version": 1 } }