WHM API.
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
https://{host}:{port}/json-api/
The domain to fetch a DS record from.
Note:
To fetch records from multiple domains, duplicate or increment the parameter name. For example, to check three domains, you could:
- Use the
domainparameter multiple times. - Use the
domain,domain-1, anddomain-2parameters.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/fetch_ds_records_for_domains
- A server running WHM.
https://whm-server.tld:2087/json-api/fetch_ds_records_for_domains
- 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/fetch_ds_records_for_domains?domain=example.com'{ "data": { "domains": [ … ] }, "metadata": { "command": "fetch_ds_records_for_domains", "reason": "OK", "result": 1, "version": 1 } }
Request
This function returns whether ALIAS and ANAME records are available and the value of the running PowerDNS (PDNS) resolver setting, if any exists. For more information, read our ALIAS documentation.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/is_alias_available
- A server running WHM.
https://whm-server.tld:2087/json-api/is_alias_available
- 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/is_alias_available{ "data": { "alias": 1, "aname": 0, "resolver": "8.8.8.8" }, "metadata": { "command": "is_alias_available", "reason": "OK", "result": 1, "version": 1 } }
The domain to fetch a DS record from.
Note:
To fetch records from multiple domains, duplicate or increment the parameter name. For example, to check three domains, you could:
- Use the
domainparameter multiple times. - Use the
domain,domain-1, anddomain-2parameters.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/fetch_ds_records_for_domains
- A server running WHM.
https://whm-server.tld:2087/json-api/fetch_ds_records_for_domains
- 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/fetch_ds_records_for_domains?domain=example.com'{ "data": { "domains": [ … ] }, "metadata": { "command": "fetch_ds_records_for_domains", "reason": "OK", "result": 1, "version": 1 } }
Request
This function returns whether ALIAS and ANAME records are available and the value of the running PowerDNS (PDNS) resolver setting, if any exists. For more information, read our ALIAS documentation.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/is_alias_available
- A server running WHM.
https://whm-server.tld:2087/json-api/is_alias_available
- 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/is_alias_available{ "data": { "alias": 1, "aname": 0, "resolver": "8.8.8.8" }, "metadata": { "command": "is_alias_available", "reason": "OK", "result": 1, "version": 1 } }