Managing API Keys Remotely

Humbug enables you to remotely add/remove sub-PBXs in your account, enabling you to receive both aggregate reports as well as drill down capabilities into each PBX. To add/remove sub-PBXs in your account you will need a Remote API Key, which is not the same as the API Key you use to send CDR data. The Remote API Key is used for:
  • Adding / Configuring Alerts
  • Adding / Removing sub-API keys to your account
  • General Account Configuration
To obtain a Remote API Key for your account, visit the Settings->Remote API Keys section in the analytics interface.

Remote API Key Creation

URL to post data: http://analytics.humbuglabs.org/index.php/remote_api/api_remote_create_keys/
Parameter Type Description
key string Your remote API Key, MD5 encrypted together with the salt parameter.
salt string A random string used to encrypt your API Key
apikey_friendly string New "friendly name" to give your New API Key

Sample API Key Creation POST Request

key=asoiufb9av8h9ahaq9vh98ahvaspdfiouaba8sy7f&salt=1981938447&friendly_name=myPBX

Response

You will receive a JSON response providing you a new API key and Encryption key associated to your account, for example:
{"result":true,"msg":"OK","new_apikey":"db0cbd...","new_hkey":"30a401..."}


Remote API Key Deletion

URL to post data: http://analytics.humbuglabs.org/index.php/remote_api/remote_del_apikey/
Parameter Type Description
key string Your remote API Key, MD5 encrypted together with the salt parameter.
salt string A random string used to encrypt your API Key
apikey_ident string The "Api Key" (gateway) to be deleted

Sample API Key Deletion POST Request

key=asoiufb9av8h9ahaq9vh98ahvaspdfiouaba8sy7f&salt=1981938447&apikey_ident=sd89f7hf0as978fg2s9f8h2as8f7gas0

Response

You will receive a JSON response:
{"result":true,"msg":"OK"}