REST API · metrics
GET /metrics
Aggregate activity metrics for the token's project. Mirrors the `get_metrics` MCP tool. Query arg `window` ∈ hour|day|week|month (default day); week/month require a paid plan and silently downgrade to day with `planGated: true` otherwise. Optional `targetId` (slice over one outbound target's per-attempt rows) or `endpointId` (one endpoint's inbound rows); at most one of the two.
get_api_metrics
Authentication
- Bearer
Responses
200
Aggregate metrics buckets for the requested window.
application/json
{
"requestedWindow": "day",
"planGated": false,
"scope": "project",
"targetId": null,
"endpointId": null,
"window": "day",
"bucketSeconds": 1800,
"buckets": [
1768460400000,
1768462200000
],
"volume": [
120,
95
],
"errors": [
1,
0
],
"relayP50": [
12.5,
11
],
"relayP95": [
45.2,
38.7
],
"relayP99": [
80.1,
72.3
],
"targetP50": [
38,
35.5
],
"targetP95": [
150,
140.2
],
"targetP99": [
300,
280
],
"totalVolume": 215,
"totalErrors": 1,
"errorRate": 0.0047,
"inboundErrors": {
"400": [
1,
0
]
},
"outboundErrors": []
}