REST API

Authorization in REST

If requests are made from localhost, then authorization is not required.

curl 'http://172.16.156.223/admin-cabinet/session/start' \
-X 'POST' --cookie-jar auth-cookies.txt \
-H 'Content-Type: application/x-www-form-urlencoded; charset=UTF-8' \
-H 'X-Requested-With: XMLHttpRequest' \
--data 'login=admin&password=adminpassword'

JSON response:

{
  "success": true,
  "reload": "index/index",
  "message": []
}

In this example:

  • "172.16.156.223" - MikoPBX address

  • "admin" - Web interface user name

  • "adminpassword" - Web interface password

  • "auth-cookies.txt" - file for storing authorization data

Get peer statuses

JSON Response:

Get peer status

JSON Response:

Get provider statuses

JSON Response:

Last updated

Was this helpful?