Skip to content

cPanel UAPI (11.134.0.5)

UAPI accesses the cPanel interface's features. Use this API to access and modify cPanel account data and settings.

Download OpenAPI description
Overview
Languages
Servers
Mock server

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

A server running cPanel.

https://{host}:{port}/execute/

API Token Management

API Development Tools / API Token Management

Operations
Operations

SSE Task Management

API Development Tools / SSE Task Management

Operations

URL Parsing

API Development Tools / URL Parsing

Operations

External Authentication

Authentication / External Authentication

Operations

Two-Factor Settings

Authentication / Two-Factor Settings

Operations

Block IP

Block Ip Addresses / Block IP

Operations

Market Integration

Commerce Integration / Market Integration

Operations

SSL Certificates

Commerce Integration / SSL Certificates

Operations

Contact Information

cPanel Account / Contact Information

Operations

Account Enhancements

The Account Enhancement module for UAPI.

Operations

Account Information

cPanel Account / Account Information

Operations

Account Management

cPanel Account / Account Management

Operations

Contact Information

cPanel Account / Contact Information

Operations

cPanel Features

cPanel Account / cPanel Features

Operations

Disk Quotas

cPanel Account / Disk Quotas

Operations

Personalization

The Personalization module for UAPI.

Operations

Resource Usage and Statistics

cPanel Account / Resource Usage and Statistics

Operations

Subaccount Management

cPanel Account / Subaccount Management

Operations

Team Roles

The Team Roles module for UAPI.

Operations

Team Users

The Team User module for UAPI.

Operations
Operations

File Restoration

cPanel Account Backups / File Restoration

Operations

Plugins

The Plugins module for UAPI.

Operations

Application Information

cPanel Theme Management / Application Information

Operations

Brand Management

cPanel Theme Management / Brand Management

Operations

Browser Cache Management

cPanel Theme Management / Browser Cache Management

Operations

Language

cPanel Theme Management / Language

Operations

Theme Settings

cPanel Theme Management / Theme Settings

Operations

Directory Indexes

Directory Management / Directory Indexes

Operations

Directory Privacy

Directory Management / Directory Privacy

Operations

Directory Protection

Directory Management / Directory Protection

Operations
Operations

DNS Information

DNS / DNS Information

Operations
Operations
Operations

Email DNS Settings

DNS / Email DNS Settings

Operations
Operations
Operations

Domain Information

Domain Management / Domain Information

Operations

Domain Redirection

Domain Management / Domain Redirection

Operations

SubDomain

The SubDomain module for UAPI.

Operations

Virtual Host Information

Domain Management / Virtual Host Information

Operations

Email Accounts

Email / Email Accounts

Operations

Request

This function lists the cPanel account's email accounts.

Important:

When you disable the Receive Mail role, the system disables this function.

Security
BasicAuth
Query
no_validateinteger

Whether to skip the email database's validation check.

  • 1 — Skip the validation check.
  • 0 — Run the validation check.
Default 0
Enum01
Example: no_validate=1
regexstring

A Perl Compatible Regular Expression (PCRE) that filters the results.

Example: regex=user
skip_maininteger

Whether to exclude the cPanel account's main account from the results.

  • 1 — Exclude the main account.
  • 0 — Include the main account.
Default 0
Enum01
Example: skip_main=0
curl -i -X GET \
  -u <username>:<password> \
  'https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Email/list_pops?no_validate=1&regex=user&skip_main=0'

Responses

HTTP Request was successful.

Bodyapplication/json
apiversioninteger

The version of the API.

Example: 3
funcstring

The name of the method called.

Example: "list_pops"
modulestring

The name of the module called.

Example: "Email"
resultobject
Response
application/json
{ "apiversion": 3, "func": "list_pops", "module": "Email", "result": { "data": [], "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }

Return email accounts with disk information

Request

This function lists the cPanel account's email accounts with disk information.

Important:

When you disable the Receive Mail role, the system disables this function.

Security
BasicAuth
Query
domainstring(domain)

A domain name to filter the results by. If you do not use this parameter, the function returns all of the cPanel account's email addresses.

Example: domain=example.com
emailstring(username)

The cPanel user account to query. If you do not use this parameter, the function returns the email addresses for all cPanel accounts that the user owns.

Note:

To retrieve information for a single email address, add the domain parameter. For example, email=user&domain=example.com will return information for the email address user@example.com.

Example: email=user
get_restrictionsinteger

Whether to display restriction status for each of the email addresses.

  • 1 — Display.
  • 0 — Do not display.
Default 0
Enum01
Example: get_restrictions=0
infinityimgstring

An image to display for email addresses with an unlimited quota. If you specify an infinityimg value, the function returns HTML code to display that image as the diskquota parameter's value.

Example: infinityimg=images/myimg.jpg
infinitylanginteger

Whether to return the character for email addresses with an unlimited quota.

  • 1 — Return the character for unlimited diskquota values.
  • 0 — Return the string unlimited for unlimited diskquota values.

Note:

If you specify 1 for this parameter and the infinityimg parameter, the function ignores this parameter and returns HTML code for unlimited diskquota values.

Default 0
Enum01
Example: infinitylang=0
maxaccountsinteger>= 1

The maximum number of email addresses to return. If you do not use this parameter, the function returns an unlimited number of email addresses.

Default "unlimited"
Example: maxaccounts=500
no_diskinteger

Whether to skip the collection of disk usage information.

  • 1 — Do not collect.
  • 0 — Collect.
Default 0
Enum01
Example: no_disk=0
no_validateinteger

Whether to skip email database validation.

  • 1 — Skip validation.
  • 0 — Perform the validation.
Default 0
Enum01
Example: no_validate=0
regexstring

A Perl Compatible Regular Expression (PCRE) that filters the results. For example, /^[a-z0-9_-]{6,18}$/ matches the local portion of an email address, if it contains between six and 18 characters.

Default "An empty string"
Example: regex=/^[a-z0-9_-]{6,18}$/
curl -i -X GET \
  -u <username>:<password> \
  'https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Email/list_pops_with_disk?domain=example.com&email=user&get_restrictions=0&infinityimg=images%2Fmyimg.jpg&infinitylang=0&maxaccounts=500&no_disk=0&no_validate=0&regex=%2F%5E%5Ba-z0-9_-%5D{6%2C18}%24%2F'

Responses

HTTP Request was successful.

Bodyapplication/json
apiversioninteger

The version of the API.

Example: 3
funcstring

The name of the method called.

Example: "list_pops_with_disk"
modulestring

The name of the module called.

Example: "Email"
resultobject
Response
application/json
{ "apiversion": 3, "func": "list_pops_with_disk", "module": "Email", "result": { "data": [], "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }

Request

This function changes an email account's password.

Important:

When you disable the Receive Mail role, the system disables this function.

Security
BasicAuth
Query
emailstringrequired

The email account username or address.

Example: email=username@example.com
Any of:
string(email)
passwordstringrequired

The email account password.

Example: password=12345luggage
domainstring(domain)

The email account's domain.

Default "the cPanel account's main domain"
Example: domain=example.com
curl -i -X GET \
  -u <username>:<password> \
  'https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Email/passwd_pop?email=username%40example.com&password=12345luggage&domain=example.com'

Responses

HTTP Request was successful.

Bodyapplication/json
apiversioninteger

The version of the API.

Example: 3
funcstring

The name of the method called.

Example: "passwd_pop"
modulestring

The name of the module called.

Example: "Email"
resultobject
Response
application/json
{ "apiversion": 3, "func": "passwd_pop", "module": "Email", "result": { "data": null, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }

Email Filtering

Email / Email Filtering

Operations

Email Forwarding

Email / Email Forwarding

Operations

Email Server Information

Email / Email Server Information.

Operations

Email Suspensions

Email / Email Suspensions

Operations

Mail Server Information

Email / Mail Server Information

Operations

Mailbox Management

Email / Mailbox Management

Operations

Mailing Lists

Email / Mailing Lists

Operations

Signing and Encryption (GnuPG Keys)

Email / Signing and Encryption (GnuPG Keys)

Operations

Spam Filtering (Greylisting)

Email / Spam Filtering (Greylisting)

Operations

Spam Management

Email / Spam Management

Operations

Spam Prevention (BoxTrapper)

Email / Spam Prevention (BoxTrapper)

Operations

Webmail Applications

Email / Webmail Applications

Operations

Webmail Sessions

Email / Webmail Sessions

Operations
Operations

FTP Server Settings

Files / FTP Server Settings

Operations
Operations
Operations

WebDisk Settings

Files / WebDisk Settings

Operations

Deployment Settings

GIT Management / Deployment Settings

Operations

Repository Management

GIT Management / Repository Management

Operations

InProductSurvey

The InProductSurvey module for cPanel UAPI.

Operations

Database Information

MySQL and MariaDB / Database Information

Operations

Database Management

MySQL and MariaDB / Database Management

Operations

Remote Databases

MySQL and MariaDB / Remote Databases

Operations

User Management

MySQL and MariaDB / User Management

Operations

Pushbullet

The Pushbullet module for UAPI.

Operations

Antivirus Protection (ClamAV)

Optional Applications / Antivirus Protection (ClamAV)

Operations

Calendar and Contacts (DAV)

Optional Applications / Calendar and Contacts (DAV)

Operations

Calendar and Contacts Server

Optional Applications / Calendar and Contacts Server

Operations

cPanel Addons (cPAddons)

Optional Applications / cPanel Addons (cPAddons)

Operations

WordPress Manager Backups

Optional Applications / WordPress Manager Backups

Operations

WordPress Manager Settings

Optional Applications / WordPress Manager Settings

Operations

PostgreSQL Database Management

PostgreSQL / Database Management

Operations

PostgreSQL User Management

PostgreSQL / User Management

Operations

Bandwidth

The Bandwidth module for UAPI.

Operations

Known SSH Hosts Management

Security / Known SSH Hosts Management

Operations

Login Information

Security / Login Information

Operations

cPanel Server Information

Server Information / cPanel Server Information

Operations

Notifications

The Notifications module for UAPI.

Operations

Password Strength

Server Information / Password Strength

Operations
Operations

ServiceProxy

The ServiceProxy module for UAPI.

Operations

SiteQuality

The SiteQuality module for UAPI.

Operations

Auto-generated SSL Certificates

SSL Certificates / Auto-generated SSL Certificates

Operations

cPanel Account SSL Management

SSL Certificates / cPanel Account SSL Management

Operations

SNI Email Settings

SSL Certificates / SNI Email Settings

Operations

SSL Certificate Management

SSL Certificates / SSL Certificate Management

Operations

Verify Domain Ownership

SSL Certificates / Verify Domain Ownership

Operations

Domain Statistics

Statistics / Domain Statistics

Operations

Weblog Settings

Statistics / Weblog Settings

Operations

UserData

The UserData module for cPanel UAPI.

Operations
Operations
Operations

Application Manager

Web Server Management / Application Manager

Operations

ModSecurity

The ModSecurity module for UAPI.

Operations

NginxCaching

The NginxCaching module for UAPI.

Operations

PHP Settings

Web Server Management / PHP Settings

Operations

Handler Management

Website Configuration / Handler Management

Operations
Operations

Mime Type Management

Website Configuration / Mime Type Management

Operations

Site Information

Website Configuration / Site Information

Operations

Site Installation

Website Configuration / Site Installation

Operations

Site Publisher Management

Website Configuration / Site Publisher Management

Operations

Sitejet

The Sitejet module for UAPI.

Operations