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/mail_sni_status
- A server running WHM.
https://whm-server.tld:2087/json-api/mail_sni_status
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
mail_sni_status \
domain='example.com'Response
application/json
{ "data": { "enabled": 1 }, "metadata": { "command": "mail_sni_status", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/normalize_user_email_configuration
- A server running WHM.
https://whm-server.tld:2087/json-api/normalize_user_email_configuration
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
normalize_user_email_configuration \
username='username'Response
application/json
{ "metadata": { "command": "normalize_user_email_configuration", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/rebuild_mail_sni_config
- A server running WHM.
https://whm-server.tld:2087/json-api/rebuild_mail_sni_config
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
whmapi1 --output=jsonpretty \
rebuild_mail_sni_configResponse
application/json
{ "data": { "configs_built": [ … ], "success": 1 }, "metadata": { "command": "rebuild_mail_sni_config", "reason": "OK", "result": 1, "version": 1 } }