Deployments
Deployment Stats
GET/v1/deployments/{slug}/stats
Retrieve scoring statistics and recent activity for a deployment. Returns aggregate metrics including request counts, score distributions, latency percentiles, and a list of recent scoring requests. Useful for monitoring model performance in production.
Authentication: JWT token or API key with
read scope. This endpoint accepts both authentication methods.Path Parameters
slugstringrequired
The deployment slug (e.g. dep_xK8m).
Error Responses
401unauthorized
JWT or API key is missing, expired, or lacks the read scope.
404deployment_not_found
No deployment exists with the provided slug.
Deployment Stats
curl https://api.cali-br.com/v1/deployments/dep_xK8m/stats \
-H #a5d6ff">"Authorization: Bearer sk_test_abc123"Response200
{
"summary": {
"total_requests": 45832,
"avg_score": 648.3,
"avg_latency_ms": 12.4,
"p95_latency_ms": 28.1,
"min_score": 301,
"max_score": 842,
"avg_pd": 0.0672,
"last_request_at": "2026-03-26T14: 28: 55Z",
"score_buckets": {
"300-400": 1204,
"400-500": 4821,
"500-600": 12453,
"600-700": 15234,
"700-800": 10892,
"800-900": 1228
}
},
"recent_scores": [
{
"request_id": "req_abc123def456",
"score": 682,
"risk_grade": "B",
"pd": 0.0423,
"latency_ms": 11,
"scored_at": "2026-03-26T14: 28: 55Z"
}
]
}