UAPI accesses the cPanel interface's features. Use this API to access and modify cPanel account data and settings.
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/
https://{host}:{port}/execute/
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/cpanel.openapi/DNS/is_alias_available
- A server running cPanel.
https://cpanel-server.tld:2083/execute/DNS/is_alias_available
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty --user=username DNS is_alias_available{ "apiversion": 3, "func": "is_alias_available", "module": "DNS", "result": { "data": { … }, "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }
Request
This function fetches information regarding HTTPS records support. HTTPS records are defined in RFC 9460 and provide service parameters for HTTPS endpoints. For more information, read our HTTPS record documentation.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/DNS/is_https_available
- A server running cPanel.
https://cpanel-server.tld:2083/execute/DNS/is_https_available
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty --user=username DNS is_https_available{ "apiversion": 3, "func": "is_https_available", "module": "DNS", "result": { "data": { … }, "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/DNS/lookup
- A server running cPanel.
https://cpanel-server.tld:2083/execute/DNS/lookup
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty \
--user=username \
DNS \
lookup \
domain='example.com'{ "apiversion": 3, "func": "lookup", "module": "DNS", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }