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/
A domain name, cPanel username, or email address.
A valid domain.
A valid domain.
The service's name.
cpanelimappop3smtp
Whether to append mail to the domain value to find the best match.
For example, if you specify the domain example.com and call this parameter, the function only searches the mail.example.com service domains.
1— Appendmailto thedomainvalue during the search.0— Match on the specifieddomainvalue only.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/SSL/get_cn_name
- A server running cPanel.
https://cpanel-server.tld:2083/execute/SSL/get_cn_name
- 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/SSL/get_cn_name?domain=example.com&service=cpanel&add_mail_subdomain=0'{ "apiversion": 3, "func": "get_cn_name", "module": "SSL", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
Request
This function retrieves information about a certificate that is installed on a domain's dedicated IP address.
Important:
- If you do not possess a dedicated IP address, this function will fail. For non-dedicated IP addresses, use the
SSL::installed_hostsfunction. - When you disable the Calendars and Contacts, Receive Mail, Web Disk , Webmail , and Web Server roles, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/SSL/installed_host
- A server running cPanel.
https://cpanel-server.tld:2083/execute/SSL/installed_host
- 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/SSL/installed_host?domain=example.com&verify_certificate=1'{ "apiversion": 3, "func": "installed_host", "module": "SSL", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
Request
This function retrieves a list of the account's websites, their domains, and certificate information.
Important:
For a dedicated IP address, use the UAPI SSL::installed_host function.
Important:
When you disable the CalendarContact , MailReceive , WebDisk , Webmail , and WebServer roles, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/SSL/installed_hosts
- A server running cPanel.
https://cpanel-server.tld:2083/execute/SSL/installed_hosts
- 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/SSL/installed_hosts{ "apiversion": 3, "func": "installed_hosts", "module": "SSL", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }