API Shell for cPanel

Share This Post

Overview

This interface allows you to run cPanel API functions interactively.

Enable the API Shell interface

To use this feature, your hosting provider must enable it for you. Ask them to perform the following steps in WHM:

  1. Select On for the cPanel & WHM API shell (for developers) setting in the System tab of WHM’s Tweak Settings interface (WHM >> Home >> Server Configuration >> Tweak Settings).

  2. Grant the API Shell feature to the desired users in WHM’s Feature Manager interface (WHM >> Home >> Packages >> Feature Manager).

Call an API function

To call an API function, perform the following steps:

  1. Select the API that you wish to use.

      2. Select the API function that you wish to test from the menu.

     3. Enter the keys and values that you wish to test. To enter more keys and values, click Add.

     4. To filter, sort, or paginate the results, click Show Sort/Filter/Paginate Options.

    • To select the first record to show from the results, enter the number in the Index of first results to show, zero-based text box or use the menu to select the number.
    • To limit the number of results to display, enter the maximum number of results in the Maximum # of results to show text box or use the menu to select the number.
    • To filter the results, click Add in the Filters section of the interface.
      • You can specify the field to use to filter the results, the conditions, and the term to apply to the conditions.
      • To use more than one filter, click Add for each additional filter that you wish to specify.
    • To sort the results, click Add in the Sorts section of the interface.
      • You can specify the field by which you wish to sort the results, the conditions, and whether you wish to reverse the sort order.
      • To use more than one sort method, click Add for each additional sort method that you wish to specify.
    • To limit the columns to display, click Add in the Columns section of the interface.
      • Enter the column number in the Column text box.
      • To specify more columns to display, click Add.
  1. Click Submit.

API call returns

The returns appear in the API call response section of the interface. You can view the results in Table view, Tree view, or as a Raw response.

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

About Company

Leading Blog Hosting Providers for 2024

To begin with, let us briefly review the reasons why it is so important to invest in high-quality blog hosting sites. Your host provides a

Email Hosting Australia
Email

Email Deliverability in cPanel

Use this interface to identify problems with your mail-related DNS records for one or more of your domains. The system uses these records to verify that other servers can trust it as a sender.

Do You Want To Boost Your Website?

Share your requirements with us and we will get in touch with you shorlty.

ask
anything...

Get in touch