Get API & WebSocket Usage
A single API key’s consumption over a time window — REST usage (source=api) or WebSocket usage (source=wss) — with per-endpoint / per-event breakdown, totals, and cursor pagination.
source per call:
api— REST usage:credits,requestCalls, and per-endpointmetrics.wss— WebSocket usage:events, with a per-servicebreakdown.
apiKey and exactly one of customerId or organizationId — find these on your dashboard settings page. Rows are newest-first — paginate with nextCursor.Query Parameters
api (REST credits/calls) or wss (WebSocket/webhook events). One per call.
Which usage stream to return: api (REST credits/calls) or wss (websocket/webhook events). Required; only one per call.
api, wss "api"
API key to return usage for. Find your keys on the dashboard settings page (admin.mobula.io).
1Verify the key belongs to this customer. Provide exactly one of customerId or organizationId.
1Verify the key belongs to this organization. Mutually exclusive with customerId.
1Window start — epoch ms or ISO 8601. Defaults to to minus 30 days; must be within the last 12 months.
Window end — epoch ms or ISO 8601. Defaults to now; future values clamped to now.
Page size for rows (1–100, default 20).
Pagination cursor from a previous nextCursor. Rows are newest-first.