You can programatically create sub-accounts by generating new API keys associated with your account.
URL for POST Request: http://analytics.humbuglabs.org/index.php/remote_api/api_remote_create_keys/
Parameter
key
salt
apikey_friendly
Description
(string, required) – Your remote API Key, MD5 encrypted together with the salt parameter.
(string, required) – A random string used to encrypt your API Key
(string, required) – New "friendly name" to give your New API Key
Sample API Creation POST Request:
key=asoiufb9av8h9ahaq9vh98ahvaspdfiouaba8sy7f&salt=1981938447&friendly_name=myPBX
Response: (JSON Formatted)
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..."}
Programatically remove sub-accounts from your account.
URL for POST Request: http://analytics.humbuglabs.org/index.php/remote_api/remote_del_apikey/
Parameter
key
salt
apikey_ident
Description
(string, required) – Your remote API Key, MD5 encrypted together with the salt parameter.
(string, required) – A random string
(string, required) – API Key to remove
Sample API Deletion POST Request:
key=asoiufb9av8h9ahaq9vh98ahvaspdfiouaba8sy7f&salt=1981938447&apikey_ident=sd89f7hf0as978fg2s9f8h2as8f7gas0
Response: (JSON Formatted)
You will receive a JSON response:

{"result":true,"msg":"OK"}