Get files usage
Retrieve bytes of files created per period from durable file creation events. This does not reflect current retained storage, buckets remain counted after file deletion, and grouped results collapse by requested output dimensions rather than one row per UserContext.
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 (Unix seconds), inclusive
-9007199254740991 <= x <= 90071992547409911704067200
End time (Unix seconds), exclusive
-9007199254740991 <= x <= 90071992547409911704153600
Width of each time bucket (1m, 1h, 1d)
1m, 1h, 1d "1d"
Number of buckets to return
1 <= x <= 144030
Pagination cursor
"cursor_abc123"
Filter by platform user IDs (the same dimension group_by=user_id reports)
["user_123", "user_456"]Filter by delegated end-user IDs (externalUserId, i.e. X-On-Behalf-Of subs)
["sub_123"]Aggregate usage across all organizations (cluster admins only)
Filter by organization IDs (cluster admins only, implies cluster scope)
["org_123"]Group by specified fields
user_id, api_key_id, org_id