UAPI accesses the cPanel interface's features. Use this API to access and modify cPanel account data and settings.
Download OpenAPI description
Overview
URL
WebPros International, LLC
License
Languages
Servers
Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/
A server running cPanel.
https://{host}:{port}/execute/
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Sitejet/restore_document_root
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Sitejet/restore_document_root
- 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/restore_document_root?domain=example.com'Response
application/json
{ "apiversion": 3, "func": "restore_document_root", "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/start_publish
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Sitejet/start_publish
- 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/start_publish?domain=example.com&cleanup=1'Response
application/json
{ "apiversion": 3, "func": "start_publish", "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/get_templates
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Sitejet/get_templates
- 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/get_templatesResponse
application/json
{ "apiversion": 3, "func": "get_templates", "module": "Sitejet", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }