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

Request

This function creates a Subaccount.

Security
BasicAuth
Query
domainstring(domain)required

The Subaccount user's associated domain that the cPanel account owns.

Example: domain=example.com
passwordstring(password)required

The Subaccount's password.

Note:

Email, FTP, and Web Disk services use this password.

Example: password=123456luggage
usernamestring(username)<= 64 charactersrequired

The username for the Subaccount. The username can only contain alphanumeric characters, dots (.), hyphens (-), and underscores (_).

Note:

This value does not include the domain name.

Example: username=example
alternate_emailstring(email)

An alternate email address for the Subaccount's user.

Note:

You must use this parameter if you set the send_invite value to 1.

Default null
Example: alternate_email=user@example.com
avatar_urlstring(url)

The URL path to the user's Subaccount profile photo.

Note:

You must use the HTTPS protocol to prevent mixed content warnings when users view the image from another HTTPS URL.

Warning:

We reserved this parameter for future use. Do not use this parameter.

Default null
Example: avatar_url=https://img.example.com/avatars/example.jpg
phone_numberstring

A phone number for the Subaccount user that conforms to ITU-T's E.164 standards.

Warning:

We reserved this parameter for future use. Do not use this parameter.

Default null
Example: phone_number=+15551234567
real_namestring

The Subaccount user's first and/or last name.

Default null
Example: real_name=John Doe
send_inviteinteger

Whether to send a reset password email to the Subaccount's alternate email address.

  • 1 - Send.
  • 0 - Do not send.
Default 0
Enum01
Example: send_invite=0
services.email.enabledinteger

Whether to grant the Subaccount email access.

  • 1 - Can access.
  • 0 - Cannot access.
Default 0
Enum01
Example: services.email.enabled=1
services.email.quotastring

The maximum amount of disk space, in megabytes (MB), allocated to Subaccount's email account.

  • 0 or unlimited - The subaccount has unlimited disk space.

This value defaults to the defined system value.

Note:

This value cannot be larger than the system's maximum email quota.

Example: services.email.quota=500
services.email.send_welcome_emailinteger

Whether to send client configuration instructions to the account.

  • 1 - Send the instructions.
  • 0 - Do not send the instructions.
Default 0
Enum01
Example: services.email.send_welcome_email=1
services.ftp.enabledinteger

Whether to grant the Subaccount FTP access.

  • 1 - Can access.
  • 0 - Cannot access.
Default 0
Enum01
Example: services.ftp.enabled=1
services.ftp.homedirstring(path)

The Subaccount's FTP home directory, relative to the cPanel account's home directory.

Note:

  • This parameter is required if you enabled the services.ftp.homedir parameter.
  • The directory must exist.
Example: services.ftp.homedir=/Subaccount
services.webdisk.enabledinteger

Whether to grant the Subaccount Web Disk access.

  • 1 _ Can access.
  • 0 - Cannot access.
Default 0
Enum01
Example: services.webdisk.enabled=1
services.webdisk.enabledigestinteger

Whether to enable the Web Disk Digest Authentication.

  • 1 - Enabled.
  • 0 - Disabled.

Note:

  • Only enable Digest Authentication for clients that require additional compatibility support on certain versions of Windows® operating systems. This compatibility support is only required on servers that use a self-signed certificate for the cpsrvd and cpdavd daemons.
  • We recommend that you do not use Digest Authentication.
Default 0
Enum01
Example: services.webdisk.enabledigest=0
services.webdisk.homedirstring(path)

The Subaccount's Web Disk home directory, relative to the cPanel account's home directory.

Note:

This parameter is required if you enable the services.webdisk.enabled parameter.

Example: services.webdisk.homedir=/Subaccount
services.webdisk.permsstring

The Subaccount's file permissions for its Web Disk home directory.

  • ro - Read-only permissions.
  • rw - Read and write permissions.

Note:

The services.webdisk.homedir parameter determines the Subaccount's Web Disk home directory.

Default "rw"
Example: services.webdisk.perms=rw
services.webdisk.privateinteger

Whether to set the directory's permissions to public or private.

  • 1 - Private (0700).
  • 0 - Public (0755).
Default 0
Enum01
Example: services.webdisk.private=1
typestring

The type of account.

  • sub - A Subaccount.
Default "sub"
Value"sub"
Example: type=sub
curl -i -X GET \
  -u <username>:<password> \
  'https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/UserManager/create_user?domain=example.com&password=123456luggage&username=example&alternate_email=user%40example.com&avatar_url=https%3A%2F%2Fimg.example.com%2Favatars%2Fexample.jpg&phone_number=%2B15551234567&real_name=John+Doe&send_invite=0&services.email.enabled=1&services.email.quota=500&services.email.send_welcome_email=1&services.ftp.enabled=1&services.ftp.homedir=%2FSubaccount&services.webdisk.enabled=1&services.webdisk.enabledigest=0&services.webdisk.homedir=%2FSubaccount&services.webdisk.perms=rw&services.webdisk.private=1&type=sub'

Responses

HTTP Request was successful.

Bodyapplication/json
apiversioninteger

The version of the API.

Example: 3
funcstring

The name of the method called.

Example: "create_user"
modulestring

The name of the module called.

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

Request

This function deletes a Subaccount. This function returns only metadata if no other service accounts exist with the same username and domain.

  • If one service account uses the same username and domain, the function returns the service account's information.
  • If two or more service accounts use the same username and domain, the function returns a hypothetical Subaccount.

Note:

  • A hypothetical Subaccount consists of two or more service accounts that use the same username and domain.
  • This function returns only metadata if the specified username and domain do not match any service accounts or hypothetical Subaccounts.
Security
BasicAuth
Query
domainstring(domain)required

The Subaccount's associated domain. The domain must be one that the cPanel account owns.

Example: domain=example.com
usernamestring<= 64 charactersrequired

The Subaccount's username.

  • Characters — a-z, A-Z, 0-9, dot (.), hyphen (-), underscore (_)

Note:

This value does not include the domain name.

Example: username=example
curl -i -X GET \
  -u <username>:<password> \
  'https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/UserManager/delete_user?domain=example.com&username=example'

Responses

HTTP Request was successful.

Bodyapplication/json
apiversioninteger

The version of the API.

Example: 3
funcstring

The name of the method called.

Example: "delete_user"
modulestring

The name of the module called.

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

Remove service account link request

Request

This function removes a service account as a link candidate to create a subaccount or link to a subaccount. When you use this function, the system removes the Link option in cPanel's User Manager interface (cPanel >> Home >> Preferences >> User Manager).

Note:

You must use at least one of the following parameters:

  • services.email.dismiss
  • services.ftp.dismiss
  • services.webdisk.dismiss
Security
BasicAuth
Query
domainstring(domain)required

The service account's associated domain.

Example: domain=example.com
usernamestring(username)<= 64 charactersrequired

The username for the service account.

Note:

This parameter does not include the domain name.

Example: username=example1
services.email.dismissinteger

Whether to dismiss the merge of the email service account.

  • 1 - Dismiss.
  • 0 - Do not dismiss.
Default 0
Enum01
Example: services.email.dismiss=1
services.ftp.dismissinteger

Whether to dismiss the merge of the FTP service account.

  • 1 - Dismiss.
  • 0 - Do not dismiss.
Default 0
Enum01
Example: services.ftp.dismiss=1
services.webdisk.dismissinteger

Whether to dismiss the merge of the Web Disk service account.

  • 1 - Dismiss.
  • 0 - Do not dismiss.
Default 0
Enum01
Example: services.webdisk.dismiss=1
curl -i -X GET \
  -u <username>:<password> \
  'https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/UserManager/dismiss_merge?domain=example.com&username=example1&services.email.dismiss=1&services.ftp.dismiss=1&services.webdisk.dismiss=1'

Responses

HTTP Request was successful.

Bodyapplication/json
apiversioninteger

The version of the API.

Example: 3
funcstring

The name of the method called.

Example: "dismiss_merge"
modulestring

The name of the module called.

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

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

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