Skip to Content
Groups

List groups

Permissiongroups:readAuthentication
GET
/groups

Returns organization-scoped groups, newest first by created_at then id.

Each element carries enough to render a list page without a second request: its live members (with each member's traffic share and whether its agent can take calls right now), its custom metrics, and how many live phone numbers and campaigns point at it. The used_by_detail lists are returned only by the single-group endpoints.

q is a case-insensitive literal substring over the group name. The opaque cursor is bound to this endpoint and to the exact q, created_from, created_to and archived filters that issued it.

Reading groups needs only the permission; the groups entitlement is required to create or change one. Supplying any request body is a 400 unexpected_body error.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Query Parameters

cursor?string

Opaque pagination cursor from a previous response's next_cursor.

limit?integer

Number of groups to return. The server fetches one extra row only to determine next_cursor.

Range1 <= value <= 200
Default50
q?string

Case-insensitive literal substring search over the group name. The supplied and trimmed value must contain 1–200 Unicode characters; blank values and every Unicode control character are rejected. Percent, underscore, and backslash are literal characters, not LIKE syntax.

Length1 <= length <= 200
created_from?|

Inclusive created_at lower bound. A YYYY-MM-DD value means midnight UTC.

created_to?|

Exclusive created_at upper bound. It must be later than created_from; a YYYY-MM-DD value means midnight UTC.

archived?string

Whether archived resources are excluded, included alongside active resources, or returned exclusively.

Default"exclude"
Value in"exclude""include""only"

Response Body

One deterministic page of groups. An empty result is data=[] and next_cursor=null.

application/json
  1. response
data*array<>
next_cursor*string|null
Example Request
curl -X GET 'https://api.kejue.co/v1/groups'
Example Response
{  "data": [    {      "id": "55555555-5555-4555-8555-555555555555",      "org_id": "44444444-4444-4444-8444-444444444444",      "name": "Debt collection A/B",      "overall_enabled": true,      "routing_strategy": "sticky",      "members": [        {          "id": "66666666-6666-4666-8666-666666666666",          "agent_id": "11111111-1111-4111-8111-111111111111",          "agent_name": "Noura",          "agent_slug": "noura",          "label": "A",          "weight": 50,          "position": 0,          "share": 50,          "dispatchable": true,          "created_at": "2026-10-20T09:00:00Z"        },        {          "id": "77777777-7777-4777-8777-777777777777",          "agent_id": "22222222-2222-4222-8222-222222222222",          "agent_name": "Omar",          "agent_slug": "omar",          "label": "B",          "weight": 50,          "position": 1,          "share": 50,          "dispatchable": true,          "created_at": "2026-10-20T09:00:00Z"        }      ],      "metrics": [        {          "name": "payment_promised",          "type": "boolean",          "description": "Did the customer promise to pay?"        }      ],      "extraction_object_id": "88888888-8888-4888-8888-888888888888",      "used_by": {        "phone_numbers": 1,        "campaigns": 0      },      "resource_version": 1,      "created_at": "2026-10-20T09:00:00Z",      "updated_at": "2026-10-20T09:00:00Z"    }  ],  "next_cursor": null}