WHM API.
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
https://{host}:{port}/json-api/
Request
This function validates the pointer records (PTR) for IPv4 and IPv6 addresses an account's domains send mail from. It retrieves the PTR records for each IP address and determines which of the domain's IP addresses send mail. It then validates the PTR records for each IP address and validates the A (IPv4) or AAAA (IPv6) records pointing to each domain. This function also ensures that at least one of that domain's A or AAAA records points back to the IP address.
The domain for which to validate the PTR records.
Note:
To check multiple domains, duplicate or increment the parameter name. For example, use the domain-1, domain-2, and domain-3 parameters.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/validate_current_ptrs
- A server running WHM.
https://whm-server.tld:2087/json-api/validate_current_ptrs
- 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_ptrs?domain=string'{ "data": { "payload": [ … ] }, "metadata": { "command": "validate_current_ptrs", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/validate_current_spfs
- A server running WHM.
https://whm-server.tld:2087/json-api/validate_current_spfs
- 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_spfs?domain=string'{ "data": { "payload": [ … ] }, "metadata": { "command": "validate_current_spfs", "reason": "OK", "result": 1, "version": 1 } }