Get a group
groups:readAuthenticationReturns one group with its live members, metrics, a strong ETag, and used_by_detail: every live phone number and campaign that points at it (the same lists DELETE reports when it refuses). Send the ETag back in If-Match on the next PATCH. Archived groups remain readable. Supplying any request body is a 400 unexpected_body error.
bearerAuthAuthorizationBearer <token>Use a Voice API key or connected-app OAuth access token. Authentication.
id*stringuuidThe group.
application/json- response
A set of existing agents with traffic weights. A phone number, outbound job or campaign can target a group instead of a single agent or a flow; each call is assigned to one member using routing_strategy and measured on the same metrics, so agents can be compared on real traffic. A group owns no prompt, model or voice configuration — those stay on each member agent's production version. Groups are not versioned: a save is live on the next call, and resource_version feeds the strong ETag that PATCH's If-Match is checked against.
id*stringuuidorg_id*stringuuidname*string1 <= length <= 200description?stringAbsent when no description is set.
length <= 2000routing_strategy*GroupRoutingStrategyChooses among eligible members in proportion to their weights. sticky assigns a number consistently while the eligible members and weights are unchanged. random draws independently for each new assignment. prefer_new draws from agents with no retained answered call for the number in this group, or from all eligible members once every eligible agent has answered it. When the number is unavailable, sticky and prefer_new use weighted random.
"sticky""random""prefer_new"overall_enabled*booleanWhether every call is measured on the platform's Overall performance fields: overall_score (integer 1–10) and outcome (achieved, partial, not_achieved or escalated).
members*array<>The live members in position order.
items <= 10metrics*array<>items <= 20extraction_object_id?stringThe group-owned extraction object that measures overall_enabled and metrics. It runs after every call routed through the group, is hidden from GET /v1/extraction-objects, and PATCH/DELETE on it return 409 extraction_object_managed_by_group — change the group instead.
uuidused_by*How many non-archived phone numbers and campaigns point at the group.
used_by_detail?Returned by the single-group endpoints (GET, POST, PATCH) only.
resource_version*integerMonotonic row version maintained by the database, never by the handler. It is the value behind the strong ETag.
int640 <= valuearchived_at?stringAbsent unless the group has been archived.
date-timecreated_at*stringdate-timeupdated_at*stringdate-timecurl -X GET 'https://api.kejue.co/v1/groups/497f6eca-6276-4993-bfeb-53cbbbba6f08'{ "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": 70, "position": 0, "share": 70, "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": 30, "position": 1, "share": 30, "dispatchable": true, "created_at": "2026-10-20T09:00:00Z" } ], "metrics": [], "extraction_object_id": "88888888-8888-4888-8888-888888888888", "used_by": { "phone_numbers": 1, "campaigns": 1 }, "used_by_detail": { "phone_numbers": [ { "id": "99999999-9999-4999-8999-999999999999", "e164": "+97145550100", "label": "Collections line" } ], "campaigns": [ { "id": "aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa", "name": "October arrears", "status": "running" } ] }, "resource_version": 3, "created_at": "2026-10-20T09:00:00Z", "updated_at": "2026-10-22T11:30:00Z"}