API Reference
Metrics
Endpoints to query aggregated project metrics.
GET/metrics/summary
Aggregated project metrics for a period.
| Query param | Type | Description |
|---|---|---|
| days | number | Period in days (default: 30, max: 90) |
json — response
{
"period_days": 30,
"total_executions": 1420,
"success_rate": 98.5,
"status_breakdown": {
"success": 1398,
"failed": 8,
"fallback": 14
},
"avg_latency_ms": 743,
"avg_attempts": 1.08,
"total_tokens": 308640,
"daily": [
{
"date": "2026-05-01",
"total": 48,
"success": 47,
"failed": 1,
"tokens": 10416
}
]
}
GET/metrics/schemas/:id
Detailed metrics by schema — useful for identifying schemas with high failure rates.
json — response
{
"schema_id": "cmonautso0002ph012m23m4au",
"schema_name": "Contact Extraction",
"schema_slug": "contact-extraction",
"total_executions": 342,
"success_rate": 97.4,
"avg_latency_ms": 698,
"total_tokens": 74196,
"avg_attempts": 1.06
}