Skip to Content
Groups

Compare a group's members

Permissiongroups:readAuthentication
GET
/groups/{id}/results

Compares the group's members on the calls routed through the group in one time window. Defaults to the last 30 days, and spans at most 366 days.

members lists every member that was live or took a call in the window, including removed ones (removed=true).

Metrics

  • builtin carries the platform's call metrics: calls, answer_rate (outbound calls only), avg_duration_sec, transfer_rate, failure_rate, tool_failure_rate, early_hangup_rate (answered and shorter than 10 seconds) and p50_latency_ms.
  • metrics carries the group's Overall performance fields (source overall) and custom metrics (source custom), read from the group-owned extraction.

Reading a verdict

Every rate carries a Wilson 95% interval and every mean a normal 95% interval; enum metrics report a distribution instead of a value.

A metric's verdict is insufficient_data while fewer than two members have traffic, or any member with traffic has fewer than 30 calls. Otherwise it is leader (the best two differ at p < 0.05) or no_difference.

trend is a per-day, per-member series, and changes the member and weight snapshots inside the window — so a shift in the numbers can be lined up with the edit that caused it.

Archived groups remain readable. 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.

Path Parameters

id*string
Formatuuid

Query Parameters

from?|

Inclusive window start, an RFC 3339 timestamp or a YYYY-MM-DD date (midnight UTC). Defaults to 30 days before to. Must be before to, and the window can span at most 366 days.

to?|

Exclusive window end, an RFC 3339 timestamp or a YYYY-MM-DD date (midnight UTC). Defaults to now.

Response Body

The per-member comparison for the window.

application/json
  1. response

Per-member comparison of the calls routed through a group in one window.

group_id*string
Formatuuid
from*string
Formatdate-time
to*string
Formatdate-time
members*array<>
builtin*array<>
metrics*array<>
trend*
changes*array<>

Member/weight snapshots saved inside the window.

Example Request
curl -X GET 'https://api.kejue.co/v1/groups/497f6eca-6276-4993-bfeb-53cbbbba6f08/results'
Example Response
{  "group_id": "55555555-5555-4555-8555-555555555555",  "from": "2026-10-01T00:00:00Z",  "to": "2026-10-25T00:00:00Z",  "members": [    {      "member_id": "66666666-6666-4666-8666-666666666666",      "label": "A",      "agent_id": "11111111-1111-4111-8111-111111111111",      "agent_name": "Noura",      "weight": 50,      "removed": false    },    {      "member_id": "77777777-7777-4777-8777-777777777777",      "label": "B",      "agent_id": "22222222-2222-4222-8222-222222222222",      "agent_name": "Omar",      "weight": 50,      "removed": false    }  ],  "builtin": [    {      "key": "transfer_rate",      "label": "Transferred",      "kind": "rate",      "unit": null,      "higher_is_better": false,      "values": [        {          "member_id": "66666666-6666-4666-8666-666666666666",          "n": 412,          "value": 0.08,          "ci_low": 0.058,          "ci_high": 0.11        },        {          "member_id": "77777777-7777-4777-8777-777777777777",          "n": 398,          "value": 0.15,          "ci_low": 0.118,          "ci_high": 0.189        }      ],      "verdict": {        "status": "leader",        "member_id": "66666666-6666-4666-8666-666666666666",        "confidence": 0.997      }    }  ],  "metrics": [    {      "name": "sentiment",      "label": "Sentiment",      "type": "enum",      "source": "custom",      "enum_values": [        "positive",        "neutral",        "negative"      ],      "higher_is_better": null,      "values": [        {          "member_id": "66666666-6666-4666-8666-666666666666",          "n": 401,          "value": null,          "ci_low": null,          "ci_high": null,          "distribution": {            "positive": 210,            "neutral": 150,            "negative": 41          }        },        {          "member_id": "77777777-7777-4777-8777-777777777777",          "n": 390,          "value": null,          "ci_low": null,          "ci_high": null,          "distribution": {            "positive": 160,            "neutral": 170,            "negative": 60          }        }      ],      "verdict": {        "status": "no_difference"      }    }  ],  "trend": {    "bucket": "day",    "points": [      {        "date": "2026-10-01",        "member_id": "66666666-6666-4666-8666-666666666666",        "calls": 41,        "overall_score": 7.2      }    ]  },  "changes": [    {      "changed_at": "2026-10-01T08:00:00Z",      "members": [        {          "member_id": "66666666-6666-4666-8666-666666666666",          "agent_id": "11111111-1111-4111-8111-111111111111",          "label": "A",          "weight": 50        },        {          "member_id": "77777777-7777-4777-8777-777777777777",          "agent_id": "22222222-2222-4222-8222-222222222222",          "label": "B",          "weight": 50        }      ]    }  ]}