Get Usage Stats
Changed onReturn detailed usage statistics for the monitoring overview.
Request
- Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
- URL: /monitoring/usage
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL /authorize, token URL /oauth/token)
Query parameters
Start of the window in Unix epoch seconds (inclusive); defaults to 24 hours before until.
End of the window in Unix epoch seconds (exclusive); defaults to the next minute boundary after now.
Grouping dimension for usage statistics.
TOOLKIT is a legacy axis: it groups over the surviving execution_records.toolkit_id attribution column, which nothing writes since the toolkit path was deleted (theme-5 Phase 6b). It stays so historical dashboards keep working; CREDENTIAL is the live consumer axis (execution records carry credential_id since Phase 2).
Dimension to group the top rows by; defaults to api.
Maximum number of top rows to return (1-50, default 10).
Legacy: only count executions mediated by this toolkit.
Only count executions of this API, given as vendor/name.
Only count executions run by this actor ID.
Only count executions with this status, e.g. completed or failed.
Response
Successful Response
Example response
{
"bucket_seconds": 86400,
"buckets": [
{
"avg_ms": 231.4,
"failed": 2,
"success": 40,
"total": 42,
"ts": 1767225600
}
],
"group_by": "api",
"since": 1767225600,
"stats": {
"active_now": 0,
"avg_ms": 245.6,
"failed": 80,
"p50_ms": 180,
"p95_ms": 720,
"pending": 0,
"success": 1200,
"total": 1280
},
"top": [
{
"avg_ms": 212.8,
"failed": 12,
"key": "stripe.com/stripe",
"label": "Stripe",
"success": 330,
"total": 342,
"trend": [
40,
52,
47,
61,
58,
84
]
}
],
"until": 1769903999
}Changes
- info
the endpoint scheme security
OAuth2was added to the API
- info
- info
added the enum value
credentialto the propertyanyOf[subschema #1: GroupBy]/of thequeryrequest parametergroup_by
- info