Skip to content
Download OpenAPI description
Overview
Languages
Servers
Mock server

https://api.docs.cpanel.net/_mock/specifications/whm.openapi/

A server running WHM.

https://{host}:{port}/json-api/

Restore Account

Account Restoration / Restore Account

Operations

Restore Queue Management

Account Restoration / Restore Queue Management

Operations

Restore Queue Reporting

Account Restoration / Restore Queue Reporting

Operations

Account Creation

Accounts Creation / Accounts

Operations

Account Enhancements

Accounts / Account Enhancements

Operations

Account Management

Accounts / Account Management

Operations

Bandwidth and Disk Quotas

Accounts / Bandwidth and Disk Quotas

Operations

Domain Information

Accounts / Domain Domain Information

Operations
Operations

Styles

The Styles and Themes module for WHM API 1.

Operations
Operations

API Execution

API Development Tools / API Execution

Operations

API Statistics

API Development Tools / API Statistics

Operations

API Token Management

API Development Tools / API Token Management

Operations

Applications

API Development Tools / Applications

Operations

Session

API Development Tools / Session

Operations

Authentication Providers

Authentication / Authentication Providers

Operations

External Authentication

Authentication / External Authentication

Operations

Login URL

Authentication / Login URL

Operations

SSH Keys and Connections

Authentication / SSH Keys and Connections

Operations

Two-Factor Authentication

Authentication / Two-Factor Authentication

Operations

Backup Destination

Backups / Backup Destination

Operations

Backup or Restore

Backups / Backup or Restore

Operations

Backup Settings

Backups / Backup Settings

Operations

Legacy Migration

Backups / Legacy Migration

Operations

Market Integration

Commerce Integration / Market Integration

Operations

Sitejet

The Sitejet module for WHM API.

Operations

Product Management

cPanel Market / Product Management

Operations

Provider Management

cPanel Market / Provider Management

Operations

Support Access

cPanel Support Tickets / Support Access

Operations

Ticket Management

cPanel Support Tickets / Ticket Management

Operations

Customizations

The Customizations module for WHM API 1.

Operations

Manage MySQL Server

Databases / Manage MySQL Server

Operations

MySQL Databases

Databases / MySQL Databases

Operations

PostgreSQL Databases

Databases / PostgreSQL Databases

Operations

Remote MySQL Databases

Databases / Remote MySQL Databases

Operations

DNS Cluster Settings

DNS / DNS Cluster Settings

Operations
Operations
Operations

Domain Management

DNS / Domain Management

Operations

Domain Management

DNS / Domain Management

Operations
Operations

Service Records

DNS / Service Records

Operations

Feature Access

Hosting Plans / Feature Access

Operations

Feature Lists

Hosting Plans / Feature Lists

Operations

Hosting Plan Extensions

Hosting Plans / Hosting Plan Extensions

Operations

Hosting Plans

Hosting Plans / Hosting Plans

Operations

InProductSurvey

In-product survey information.

Operations

API Authentication

Integrations / API Authentication

Operations

Scripts Hooks

Integrations / Scripts Hooks

Operations

IPv4 Address Settings

IP Address Management / IPv4 Address Settings

Operations

IPv6 Address Settings

IP Address Management / IPv6 Address Settings

Operations

Network Address Translation

IP Address Management / Network Address Translation

Operations

Management

Login Security (cPHulk) / Management

Operations

Reporting

Login Security (cPHulk) / Reporting

Operations

Settings

Login Security (cPHulk) / Settings

Operations

cPanel Account Mail Management

Mail / cPanel Account Mail Management

Operations

Mail DNS Settings

Mail / Mail DNS Settings

Operations

Mail Server Settings

Mail / Mail Server Settings

Operations

Spam Management

Mail / Spam Management

Operations

Spam Protection (Greylisting)

Mail / Spam Protection (Greylisting)

Operations

NGINX Manager

The NGINX Manager module for WHM API 1.

Operations

Account Enhancement Limit

Resellers / Account Enhancement Limit

Operations

Account Limits

Resellers / Account Limits

Operations

Account Permissions

Resellers / Account Permissions

Operations

Account Settings

Resellers / Account Settings

Operations

Reseller Account Management

Resellers / Account Management

Operations
Operations

Configuration Clusters

Server Administration / Configuration Clusters

Operations

Configurations

Server Administration / Configurations

Operations

Connected Applications

Server Administration / Connected Applications

Operations

Connections

Server Administration / Connections

Operations

cPanel Analytics

The cPanel Analytics module for WHM API 1.

Operations

License Management

The Server Administration module for WHM API 1.

Operations

Notifications

Server Administration / Notifications

Operations

Plugin-Based Features

The plugin-based features module for WHM API 1.

Operations

Security

The Security module for WHM API 1.

Operations

Server Nodes

Server Administration / Server Nodes

Operations

Server Profiles

Server Administration / Server Profiles

Operations

Services

Server Administration / Services

Operations

System Information

The Server Administration module for WHM API 1.

Operations

Updates

Server Administration / Updates

Operations

Request

This function records acceptance of cPanel & WHM's legal terms. To do this, the function creates a touchfile in the /var/cpanel/activate/ directory.

Important:

Server owners must accept these agreements before they use cPanel & WHM.

Security
BasicAuth
curl -i -X GET \
  -u <username>:<password> \
  https://api.docs.cpanel.net/_mock/specifications/whm.openapi/accept_eula

Responses

HTTP Request was successful.

Bodyapplication/json
metadataobject
Response
application/json
{ "metadata": { "command": "accept_eula", "reason": "OK", "result": 1, "version": 1 } }

Return cPanel & WHM available versions

Request

This function lists of each available version of cPanel & WHM, and each version's latest maintenance release. This function also lists the cPanel & WHM version for each release tier.

Security
BasicAuth
curl -i -X GET \
  -u <username>:<password> \
  https://api.docs.cpanel.net/_mock/specifications/whm.openapi/get_available_tiers

Responses

HTTP Request was successful.

Bodyapplication/json
dataobject

A list of the latest available version of cPanel & WHM.

Example: {"11.30":"11.30.8.0","11.32":"11.32.7.3","11.34":"11.34.2.8","11.36":"11.36.2.12","11.38":"11.38.2.23","11.40":"11.40.1.22","11.42":"11.42.1.31","11.44":"11.44.3.5","11.46":"11.46.4.0","11.48":"11.48.5.3","11.50":"11.50.6.2","11.52":"11.52.6.6","11.54":"11.54.0.36","11.56":"11.56.0.52","11.58":"11.58.0.52","11.60":"11.60.0.48","11.62":"11.62.0.48","11.64":"11.64.0.42","11.66":"11.66.0.35","11.68":"11.68.0.39","11.70":"11.70.0.69","11.72":"11.72.0.12","11.74":"11.74.0.12","11.76":"11.76.0.22","11.78":"11.78.0.49","11.80":"11.80.0.24","11.82":"11.82.0.19","11.84":"11.84.0.22","11.86":"11.86.0.24","11.88":"11.88.0.13","11.90":"11.90.0.3","current":"11.90.0.3","edge":"11.90.0.3","lts":"11.86.0.24","release":"11.88.0.13","stable":"11.88.0.13"}
metadataobject
Response
application/json
{ "data": { "11.30": "11.30.8.0", "11.32": "11.32.7.3", "11.34": "11.34.2.8", "11.36": "11.36.2.12", "11.38": "11.38.2.23", "11.40": "11.40.1.22", "11.42": "11.42.1.31", "11.44": "11.44.3.5", "11.46": "11.46.4.0", "11.48": "11.48.5.3", "11.50": "11.50.6.2", "11.52": "11.52.6.6", "11.54": "11.54.0.36", "11.56": "11.56.0.52", "11.58": "11.58.0.52", "11.60": "11.60.0.48", "11.62": "11.62.0.48", "11.64": "11.64.0.42", "11.66": "11.66.0.35", "11.68": "11.68.0.39", "11.70": "11.70.0.69", "11.72": "11.72.0.12", "11.74": "11.74.0.12", "11.76": "11.76.0.22", "11.78": "11.78.0.49", "11.80": "11.80.0.24", "11.82": "11.82.0.19", "11.84": "11.84.0.22", "11.86": "11.86.0.24", "11.88": "11.88.0.13", "11.90": "11.90.0.3", "current": "11.90.0.3", "edge": "11.90.0.3", "lts": "11.86.0.24", "release": "11.88.0.13", "stable": "11.88.0.13" }, "metadata": { "command": "get_available_tiers", "reason": "Got tiers list", "result": 1, "version": 1 } }

Return Long Term Support expiration status

Request

This function determines whether a branch's Long-Term Support (LTS) version expires within three months. For more information about LTS, read our cPanel Long-Term Support documentation.

Security
BasicAuth
curl -i -X GET \
  -u <username>:<password> \
  https://api.docs.cpanel.net/_mock/specifications/whm.openapi/get_current_lts_expiration_status

Responses

HTTP Request was successful.

Bodyapplication/json
dataobject
metadataobject
Response
application/json
{ "data": { "expiration": 1585612801, "expires_in_next_three_months": 0, "full_version": "11.88.1.11" }, "metadata": { "command": "get_current_lts_expiration_status", "reason": "OK", "result": 1, "version": 1 } }

Auto-Generated Certificates

SSL Certificates / Auto-Generated Certificates

Operations

cPanel Account Settings

SSL Certificates / cPanel Account Settings

Operations

SSL Server Settings

SSL Certificates / SSL Server Settings

Operations

Install or Uninstall Package

System Package Management / Install or Uninstall Package

Operations

List Package Information

System Package Management / List Package Information

Operations

Package Manager Settings

System Package Management / Package Manager Settings

Operations

cPanel Account Transfer

Transfers / cPanel Account Transfer

Operations

Transfer Configuration

Transfers / Transfer Configuration

Operations

Transfer Monitoring

Transfers / Transfer Monitoring

Operations

UserData

Scoped userdata storage functions.

Operations

EasyApache Settings

Web Server Configuration / EasyApache Settings

Operations
Operations

PHP-FPM

Web Server Configuration / PHP-FPM

Operations

Rule Settings

Web Server Security (ModSecurity) / Rule Settings

Operations

Rule Vendor Settings

Web Server Security (ModSecurity) / Rule Vendor Settings

Operations

Server Settings

Web Server Security (ModSecurity) / Server Settings

Operations