WHM API.
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
https://{host}:{port}/json-api/
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/unset_manual_mx_redirects
- A server running WHM.
https://whm-server.tld:2087/json-api/unset_manual_mx_redirects
- 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/unset_manual_mx_redirects?domain=example.com'{ "data": { "payload": { … } }, "metadata": { "command": "unset_manual_mx_redirects", "reason": "OK", "result": 1, "version": 1 } }
The domain for which to check the DKIM records.
Note:
To check multiple domains, duplicate or increment the parameter name. For example, domain-1, domain-2, and domain-3 parameters.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/validate_current_dkims
- A server running WHM.
https://whm-server.tld:2087/json-api/validate_current_dkims
- 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/validate_current_dkims?domain=string'{ "data": { "payload": [ … ] }, "metadata": { "command": "validate_current_dkims", "reason": "OK", "result": 1, "version": 1 } }
The domain for which to check the DMARC record.
Note:
To check multiple domains, duplicate or increment the parameter name. For example, domain-1, domain-2, and domain-3 parameters.
If you do not include this argument, the system will validate DMARC records for all domains on the server.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/validate_current_dmarcs
- A server running WHM.
https://whm-server.tld:2087/json-api/validate_current_dmarcs
- 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/validate_current_dmarcs?domain=string'{ "data": { "payload": [ … ] }, "metadata": { "command": "validate_current_dmarcs", "reason": "OK", "result": 1, "version": 1 } }