- This line was added.
- This line was removed.
- Formatting was changed.
cPanel API 1 accesses information from the cPanel interface.
You cannot call this API's functions via another API's call methods. For more information, read the API method distinctions section below.
These examples use the following variables:
|The module for the function that you wish to use.|
|The cPanel API 1 function that you wish to use.|
Input parameters that you pass to the function.
Call cPanel API 1 from the WHM API
Unless you call this API via the WHM API, you cannot call this API via WHM's ports (
You can use the WHM API to call cPanel API functions. For more information, read our Use WHM API to Call cPanel API & UAPI documentation.
Because some cPanel API 1 functions return HTML output, this method will cause parsing errors in most XML parsers. We strongly recommend that you use cPanel API 2 instead.
Custom Event Handlers and Standardized Hooks
You can use the Standardized Hook System to customize the events before and after a cPanel API call.