Return Leika configuration

This function returns a cPanel account's Leika configuration data. Leika is an internal module that cPanel & WHM uses to track access to features.

Note:

If you do not provide an item parameter, this returns the entire configuration.

SecurityBasicAuth
Request
query Parameters
item
string

The feature(s) for which to return configuration keys.

Note:

  • Pass multiple item parameters to return multiple features' configuration keys.
  • If an item parameter returns an undefined key value, the configuration value does not exist or is set to null.
Examples:
Return the `key1` configuration key for the `cpanel` feature.
item=cpanel.key1
Return the nested `key3.subkey1` configuration key for the `webmail` feature.
item=webmail.key3.subkey1
Responses
200

HTTP Request was successful.

Response Schema: application/json
object

An object that contains configuration keys and their values.

object
get/leika_get_config
Request samples
whmapi1 --output=jsonpretty \
  leika_get_config \
  item=cpanel.key1 \
  item=webmail.key3.subkey1
Response samples
application/json
{
  • "data": {
    • "cpanel.key1": "enabled",
    • "webmail.key3": {
      • "subkey1": "active",
      • "subkey2": "inactive"
      }
    },
  • "metadata": {
    • "command": "leika_get_config",
    • "reason": "OK",
    • "result": 1,
    • "version": 1
    }
}