List groups
groups:readAuthenticationReturns 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.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
cursor?stringOpaque pagination cursor from a previous response's next_cursor.
limit?integerNumber of groups to return. The server fetches one extra row only to determine next_cursor.
1 <= value <= 20050q?stringCase-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.
1 <= length <= 200created_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?stringWhether archived resources are excluded, included alongside active resources, or returned exclusively.
"exclude""exclude""include""only"One deterministic page of groups. An empty result is data=[] and next_cursor=null.
application/json- response
data*array<>next_cursor*string|nullcurl -X GET 'https://api.kejue.co/v1/groups'{ "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}