JSON API » calleridgroups » calleridgroups/callers/list

Gets list of callers in a callerid group.

Input parameters

Requires authentication and the administrator role privileges.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
calleridgroupIntegerID of callerid group.Yes
countInteger1 to return a count, 0 to return full data.No0
descendingInteger1 to sort descending, 0 not to.No0
offsetIntegerThe result to start at. 0 for the first.No0
pagesInteger1 to return a reduced set of data for generating the pages select box, 0 to return full data.No0
sortStringField to sort by. "caller_prefix" or "description".No"caller_prefix"

Responses

CodeDescription
200Success.
400Invalid input parameters specified. Check the key and message fields for more details.
401The authentication details provided are invalid.
402Your role does not allow this.
404The callerid group does not exist, or you do not have permission to view it.

Data returned

http://enswitch.example.com/api/json/calleridgroups/callers/list/?auth_username=user;auth_password=password;calleridgroup=123

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data": [ { "called_prefix":"123", "called_min": 1, "called_max": 100, "description": "..." }, { "called_prefix":"345", "called_min": 1, "called_max": 100, "description": "..." }, ... ] }

Change history

VersionChanges
4.3Function added.