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 a cPanel account can create new subdomains or addon domains.
Note:
Creating a new addon domain is dependent on the creation of subdomains. If the cPanel account has reached its limit for subdomains, you cannot create a new addon domain, even if the limit for addon domains has not been reached.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Sitejet/can_create_domains
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Sitejet/can_create_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/cpanel.openapi/Sitejet/can_create_domains{ "apiversion": 3, "func": "can_create_domains", "module": "Sitejet", "result": { "data": 1, "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Sitejet/create_account
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Sitejet/create_account
- 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/cpanel.openapi/Sitejet/create_account{ "apiversion": 3, "func": "create_account", "module": "Sitejet", "result": { "data": { … }, "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Sitejet/create_restore_point
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Sitejet/create_restore_point
- 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/cpanel.openapi/Sitejet/create_restore_point?domain=example.com'{ "apiversion": 3, "func": "create_restore_point", "module": "Sitejet", "result": { "data": {}, "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }