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/get_upgrade_opportunities
- A server running WHM.
https://whm-server.tld:2087/json-api/get_upgrade_opportunities
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
get_upgrade_opportunitiesResponse
application/json
{ "data": { "upgrade_opportunities": { … } }, "metadata": { "command": "get_upgrade_opportunities", "reason": "OK", "result": 1, "version": 1 } }
Request
This function checks whether Digest Authentication is enabled for a cPanel user. Windows® Vista, Windows® 7, and Windows® 8 require Digest Authentication support in order to access Web Disk over an unencrypted connection.
Security
BasicAuth
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/has_digest_auth
- A server running WHM.
https://whm-server.tld:2087/json-api/has_digest_auth
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
has_digest_auth \
user='username'Response
application/json
{ "data": { "digestauth": 1 }, "metadata": { "command": "has_digest_auth", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/has_mycnf_for_cpuser
- A server running WHM.
https://whm-server.tld:2087/json-api/has_mycnf_for_cpuser
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
has_mycnf_for_cpuser \
user='user'Response
application/json
{ "data": { "has_mycnf_for_cpuser": 1 }, "metadata": { "command": "has_mycnf_for_cpuser", "reason": "OK", "result": 1, "version": 1 } }