API - Tools¶
API Tools is used for various actions in PBX
Data is transmitted via POST or GET¶
API URL¶
https://[YOUR-PBX-URL]/api/tools
Restart / Abort PBX¶
The action parameter can have the values: restart_now, restart_gracefully, restart_when_convenient, abort_shutdown
Array
(
[action] => restart_now
[api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba
)
Kill process¶
The action parameter must have the value: kill and "process" can be: push-server.php | events-watcher.php | events-watcher-push.php
Array
(
[action] => kill
[data] => Array
(
[process] => push-server.php
)
[api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba
)
Execute task¶
The action parameter must have the value: execute_task and "task_id" is your Task ID
Array
(
[action] => execute_task
[data] => Array
(
[task_id] => 1
)
[api_hash] => 0f25e797e72d0dbba96d2c571a7bd6ba
)
Available in other languages: RO