WHM API.
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
https://{host}:{port}/json-api/
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/link_user_authn_provider
- A server running WHM.
https://whm-server.tld:2087/json-api/link_user_authn_provider
- 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/whm.openapi/link_user_authn_provider?preferred_username=Example&provider_id=google&subject_unique_identifier=123456789012345678901&username=example'{ "metadata": { "command": "link_user_authn_provider", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/set_provider_client_configurations
- A server running WHM.
https://whm-server.tld:2087/json-api/set_provider_client_configurations
- 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/whm.openapi/set_provider_client_configurations?configurations={%22client_id%22%3A%22victoria%22%2C%22client_secret%22%3A%22secret%22}&provider_id=cpanelid&service_name=cpaneld'{ "metadata": { "command": "set_provider_client_configurations", "reason": "OK", "result": 1, "version": 1 } }
The display configuration in JSON-encoded key-value format.
The background color of the button on the cPanel interface.
The display name of the identity provider.
The icon file to display in the button on the cPanel login interface.
The icon file's MIME type.
The text label that will appear on the cPanel login interface.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/set_provider_display_configurations
- A server running WHM.
https://whm-server.tld:2087/json-api/set_provider_display_configurations
- 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/whm.openapi/set_provider_display_configurations?configurations={%22color%22%3A%226677aa%22%2C%22display_name%22%3A%22Hosting+Center+Login%22%2C%22textcolor%22%3A%2244ffbb%22}&provider_id=cpanelid&service_name=cpaneld'{ "metadata": { "command": "set_provider_display_configurations", "reason": "OK", "result": 1, "version": 1 } }