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/ExternalAuthentication/get_authn_links
- A server running cPanel.
https://cpanel-server.tld:2083/execute/ExternalAuthentication/get_authn_links
- 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/ExternalAuthentication/get_authn_linksResponse
application/json
{ "apiversion": 3, "func": "get_authn_links", "module": "ExternalAuthentication", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/ExternalAuthentication/has_external_auth_modules_configured
- A server running cPanel.
https://cpanel-server.tld:2083/execute/ExternalAuthentication/has_external_auth_modules_configured
- 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/ExternalAuthentication/has_external_auth_modules_configuredResponse
application/json
{ "apiversion": 3, "func": "has_external_auth_modules_configured", "module": "ExternalAuthentication", "result": { "data": 1, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/ExternalAuthentication/remove_authn_link
- A server running cPanel.
https://cpanel-server.tld:2083/execute/ExternalAuthentication/remove_authn_link
- 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/ExternalAuthentication/remove_authn_link?provider=cpanelid&subject_unique_identifier=123456789012345678901'Response
application/json
{ "apiversion": 3, "func": "remove_authn_link", "module": "ExternalAuthentication", "result": { "data": null, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }