PBX API : GET /Groups/

To get a colleagues, make an HTTP GET request with basic authorization, resource URI:

http(s)://{PBX}/api/v1/Groups/

Response example:

GET http://{PBX}/api/v1/Groups/
{
  "type":"result",
  "result":[
    {
      "dn":"gid=14082460,o=com0,dc=wildix",
      "id":"14082460",
      "name":"Admin",
      "wcgrp":"1"
    },
    {
      "dn":"gid=23163809,o=com0,dc=wildix",
      "id":"23163809",
      "name":"Default",
      "wcgrp":"2"
    },
    {
      "dn":"gid=1019725,o=com0,dc=wildix",
      "id":"1019725",
      "name":"us",
      "wcgrp":"3"
    }
  ]
}

Example:

CLI CURL
curl -X GET --globoff -u user:pass --url "http://{PBX}/api/v1/Groups/"