Get Bucket Usage
Get usage and cost metrics.
Analyzes bucket usage and costs including:
- Storage costs (GB-hours)
- Upload operation costs
- Sync operation costs
- Cost breakdown by category
Use Cases:
- Track bucket costs
- Optimize spending
- Forecast future costs
- Cost attribution
Example:
curl -X GET "https://api.mixpeek.com/v1/analytics/buckets/bkt_abc123/usage?group_by=day" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "X-Namespace: your-namespace"
Authorizations
Mixpeek API key, sent as Authorization: Bearer mxp_sk_.... Create one in Studio under Settings → API Keys, or with an admin key via POST /v1/organizations/users/{user_email}/api-keys. A missing header returns 403; an invalid or revoked key returns 401.
Namespace id (ns_...), not the namespace name. This scopes the request rather than authenticating it, and it is required on every operation marked x-mixpeek-namespace-scoped.
Path Parameters
Query Parameters
Start date (UTC)
End date (UTC)
Time grouping: hour, day, week, month
Response
Successful Response
Bucket usage and cost analytics response.
Bucket identifier
Query time range
Usage metrics
Cost breakdown
Total credits consumed
Total cost in USD

