JSON API » ingroups » ingroups/list

Gets array of fields of all inbound groups.

Input parameters

Requires authentication and the administrator or reports role privileges if customer is specified, else authentication is not required.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes if customer is specified.
auth_passwordStringAuthentication password.Yes if customer is specified.
calleridInteger1 to return only inbound groups that can be used as callerid, 0 to return all.No0
callerid_locationInteger1 to return only inbound groups that can be used as location callerid, 0 to return all. Only used if location callerid is configured.No0
countInteger1 to return only a count of the number of inbound groups. 0 for full list.No0
customerIntegerID of customer to get spare numbers for. Only used if spare=1.NoCustomer of authentication user.
descendingInteger1 to sort descending, 0 not to.No0
pagesInteger1 to return a reduced set of data for generating the pages select box, 0 to return full data.No0
signupInteger1 to return only inbound groups that can be used as signup, 0 to return all.No0
sortStringField to sort by. "description" or "name".No"name"
spareInteger1 to return only inbound groups that contain unused numbers, 0 to return all.No0

Responses

CodeDescription
200Success.
400Invalid input parameters specified. Check the key and message fields for more details.
402Your role does not allow this.

Data returned

An array of fields, corresponding to the rows of the ingroups table in the database.

Example: With required parameters

http://enswitch.example.com/api/json/ingroups/list/

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":[ { "id":1, "name":"example1", ... }, { "id":2, "name":"example2", ... } ] }

Change history

VersionChanges
3.13Function added.