Skip to main content
GET
/
agents
/
{agent_id}
/
evaluations
/
metrics
cURL
curl 'https://api.gumloop.com/api/v1/agents/AGENT_ID/evaluations/metrics?days=30' \
  -H 'Authorization: Bearer YOUR_ACCESS_TOKEN'
{
  "grades": {
    "pass": 118,
    "needs_review": 19,
    "needs_attention": 5
  },
  "tags": {
    "PRICING_INQUIRY": 34,
    "SUPPORT_TICKET": 52,
    "ESCALATION_NEEDED": 8,
    "POSITIVE_FEEDBACK": 45
  }
}

Authorizations

Authorization
string
header
required

A personal API key or an OAuth 2.0 access token. Personal API keys also require the x-auth-key header with your user ID.

Path Parameters

agent_id
string
required

ID of the agent.

Query Parameters

days
integer
default:30

Number of days to look back (1-365). Defaults to 30.

Required range: 1 <= x <= 365

Response

Aggregated evaluation metrics.

grades
object

Count of evaluations per grade.

tags
object

Count of evaluations per applied tag.