Get MCP Hub API Usage Summary
Self-service usage insights for your organization’s gated MCP Hub API calls over a time window — totals, the success count, a per-endpoint breakdown (plus the top endpoints), a per-project breakdown, an HTTP status-class split, and a daily time-series. Returns aggregate counts only — no request or response data is exposed.
Access is restricted to the organization owner or an admin; a 403 is returned otherwise. Results are cached for a few minutes and the endpoint is rate-limited per API key — 2 requests/second, 20/minute, 120/hour, 500/day — so it is safe to poll for dashboards. These limits are specific to this endpoint and apply on every plan (including enterprise); exceeding them returns 429 with RateLimit-* / Retry-After headers.
Enterprise data-license feature: requires MCP Hub API access enabled for your organization, otherwise returns 403. Contact support@enkryptai.com.
Authorizations
Query Parameters
Relative window ending now. One of 24h, 7d, 30d, 90d. Ignored when start/end are supplied. Defaults to 30d.
24h, 7d, 30d, 90d Start of a custom window (RFC3339). When set, overrides period. The window is capped at 90 days.
End of a custom window (RFC3339). Defaults to now. The window is capped at 90 days.
Response
Aggregate usage summary for the organization
Aggregate-only usage summary for the calling organization. No raw call records are returned.
The resolved time window the summary covers.
12345
Calls that returned a 2xx status.
12000
Per-endpoint call counts, ordered by calls descending.
The five most-called endpoints (a subset of by_endpoint).
Per-project call counts, ordered by calls descending.
Call counts grouped by HTTP status class.
Daily call counts across the window (UTC), ordered by day ascending.

