Return deprecated cPanel API 1 functions by date

This function returns the cPanel API 1 functions that the system called on specific dates. This is useful, for example, to check whether your system calls any cPanel API 1 functions.

Important:

The function only returns cPanel API 1 functions. We deprecated cPanel API 1 and plan to remove those functions at a later date. For more information, read our Guide to Replacing cPanel API 1 Functions with UAPI Equivalents documentation.

Authorizations:
query Parameters
type
string
Default: "cpapi1"

The cPanel API 1 function to query.

Note:

cpapi1 is the only possible value.

Example: type=cpapi1

Responses

Response Schema: application/json
object
object

Request samples

whmapi1 --output=jsonpretty \
  get_api_calls

Response samples

Content type
application/json
{
  • "data": {
    • "result": [
      • {
        • "count": 200000,
        • "entry": "Email::printdomainoptions",
        • "timestamp": 1548828000
        }
      ]
    },
  • "metadata": {
    • "command": "get_api_calls",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}