API Shell for cPanel
This interface lets you run cPanel API functions interactively.
This interface is available to reseller accounts only, and is limited to cPanel API 2 and UAPI functions. The feature works on your live account data: function calls can change or delete your account's data (email accounts or databases, for example), which may break your site. Read each function's documentation carefully before you use it, and check the "Response examples" section of the cPanel developer documentation to see what output to expect.
Enable API Shell
This interface is aimed at developers, and only appears if it is enabled on the server and included in your account's features. If you can't find it in cPanel, it is not currently available for your account.
Call an API function
Choose the API version: UAPI (API 3) or API 2.
Choose an API function from the list for the selected version.
In the parameters section, enter the function's keys and values in the fields provided (enter all required pairs, if any). Click Add to add a new parameter, or the icon to remove one.
To filter, sort or paginate the results, click Show Sort/Filter/Paginate Options:
- Index of the first result to display: enter a number (starting from zero); a value of 0 shows all results without a limit.
- Maximum number of results: enter a number; 0 means no limit.
- Filtering: click Add in the Filters section, then choose the field, the condition (contains, begins with, equals, greater than, less than) and the value.
- Sorting: click Add in the Sorts section, then choose the field, the comparison type (alphabetic, numeric, numeric with zero treated as the largest value, or IPv4) and the sort direction.
- Columns: click Add in the Columns section and enter the number of the column you want to display.
Use the icon to remove any item you added in these sections.
Click Submit.
As you edit the function's values, the interface automatically updates the URL and API call data structure sections.
API call response
After you click Submit, the function's output appears in the API call response section. You can view it in three ways: Tree, Table or Raw.
The raw view separates the call's response from the HTTP headers. The table view may not be available for some function data types.
How is this guide?