Python (SDK)
Sandbox Usage
Get Usage
GET
Python (SDK)
Authorizations
Gateway auth: send Authorization: Bearer <mka1-api-key>. For multi-user server-side integrations, you can also send X-On-Behalf-Of: <external-user-id>.
Headers
Optional external end-user identifier forwarded by the API gateway.
Query Parameters
Start time as Unix seconds, inclusive
End time as Unix seconds, exclusive. Defaults to now.
Time bucket width.
Available options:
1m, 1h, 1d Repeat or comma-separate grouping dimensions.
Aggregate usage across all organizations (cluster admins only).
Filter by organization IDs (cluster admins only, implies cluster scope).