Skip to content
TriedDocs
Account

List QA cohorts

List the QA cohorts in the workspace with their result counts.

GEThttps://api.tried.com.au/qa/cohorts

Returns every QA cohort in the workspace, oldest first, with how many calls each has scored.

Request#

This endpoint takes no path, query or body parameters.

Example request#

curl https://api.tried.com.au/qa/cohorts \
  -H "Authorization: Bearer $TRIED_API_KEY"
const res = await fetch("https://api.tried.com.au/qa/cohorts", {
  headers: { Authorization: `Bearer ${process.env.TRIED_API_KEY}` },
});
const cohorts = await res.json();
import os, requests

res = requests.get(
    "https://api.tried.com.au/qa/cohorts",
    headers={"Authorization": f"Bearer {os.environ['TRIED_API_KEY']}"},
)
cohorts = res.json()

Response#

200 OK

[
  {
    "qa_cohort_id": "qa_cohort_2c4e6a8b0d1f3e5a7c9b1d3f",
    "name": "Booking calls",
    "agent_ids": [
      "agent_4b7e2c9a1f3d5e8b0c6a2d1f"
    ],
    "from_timestamp": null,
    "to_timestamp": null,
    "min_duration_ms": 30000,
    "max_duration_ms": null,
    "disconnection_reasons": [],
    "sampling_percent": 50,
    "weekly_max": 200,
    "criteria": [
      {
        "name": "Confirms the booking",
        "prompt": "The agent reads back the date and time and says \"you are booked in\".",
        "weight": 2
      },
      {
        "name": "Offers a reminder",
        "prompt": "The agent offers an SMS reminder before the appointment."
      }
    ],
    "created_timestamp": 1792395000000,
    "last_run_timestamp": 1792395060000,
    "extraction_filters": [
      {
        "source": "analysis",
        "key": "appointment_booked",
        "op": "eq",
        "value": true
      }
    ],
    "metrics": [
      {
        "metric": "latency",
        "weight": 1
      },
      {
        "metric": "sentiment",
        "weight": 1,
        "threshold": 60
      }
    ],
    "pass_threshold": 70,
    "calibration": null,
    "calls_analyzed": 18,
    "average_score": 72.22
  }
]

The response is a JSON array of cohorts. Each cohort has the fields from Get QA cohort plus:

Field Type Description
calls_analyzed integer Results in the cohort.
average_score number or null Average score (percent of criteria passed) across results. null with no results.

Errors#

Status When
401 Missing or invalid API key.
403 The key's IP allowlist or scopes reject the request. This route needs the analytics scope.
429 Rate limit exceeded. See Rate limits.

See Errors for the body format.

Retell compatibility#

Retell's public API reference has no AI QA endpoints, so this route has no Retell SDK equivalent.