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_update_profile
- A server running WHM.
https://whm-server.tld:2087/json-api/remote_mysql_update_profile
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
remote_mysql_update_profile \
name='MyProfile'Response
application/json
{ "data": { "profile_details": { … }, "profile_saved": "MyProfile" }, "metadata": { "command": "remote_mysql_update_profile", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/remote_mysql_validate_profile
- A server running WHM.
https://whm-server.tld:2087/json-api/remote_mysql_validate_profile
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
remote_mysql_validate_profile \
name='MyProfile'Response
application/json
{ "data": { "profile_validated": "MyProfile" }, "metadata": { "command": "remote_mysql_validate_profile", "reason": "OK", "result": 1, "version": 1 } }