WHM API.
Download OpenAPI description
Overview
URL
WebPros International, LLC
License
Languages
Servers
Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/
A server running WHM.
https://{host}:{port}/json-api/
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/backup_does_client_id_have_google_credentials
- A server running WHM.
https://whm-server.tld:2087/json-api/backup_does_client_id_have_google_credentials
- 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/backup_does_client_id_have_google_credentials?client_id=aBcdeFgHIjK123'Response
application/json
{ "data": { "exists": 1 }, "metadata": { "command": "backup_does_client_id_have_google_credentials", "reason": "OK", "result": 1, "version": 1 } }
- Mock server
https://api.docs.cpanel.net/_mock/specifications/whm.openapi/backup_generate_google_oauth_uri
- A server running WHM.
https://whm-server.tld:2087/json-api/backup_generate_google_oauth_uri
- 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/backup_generate_google_oauth_uri?client_id=aBcdeFgHIjK123&client_secret=aBcde123FgHIjK456'Response
application/json
{ "data": { "uri": "https://accounts.google.com/o/oauth2/auth?client_id=aBcdeFgHIjK123&response_type=code&redirect_uri=https%3A%2F%2Fhost-10-0-0-2.example.tld%3A2087%2Fgoogledriveauth%2Fcallback&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive.file&access_type=offline&prompt=consent&state=IkdLqOej5CLPW1nHRF6OJYaahE7HPXrRUvpFs6MhmBMbCjvWDQcstyYhbUFge5IJ" }, "metadata": { "command": "backup_generate_google_oauth_uri", "reason": "OK", "result": 1, "version": 1 } }