Appearance
Get plan and usage stats
Returns the current plan name, billing period, plan limits, and usage counts.
The response shape depends on the account's billingSystem:
- Stripe users: per-period
usage.uploads/usage.profilescounters. - Metronome (usage-based) users:
usage.connectedAccounts,usage.xApiCallsByOperation(per-operation X API call counts — resolve keys viaGET /v1/billing/x-pricing), plus aspendblock withcurrentPeriodCents,xSpendCents, andxSpendLimitCents. The legacyusage.xApiCalls3-tier aggregate is still emitted for back-compat but excludes the $0.200 URL tier and any future tiers — new clients should consumexApiCallsByOperationonly.
GET /v1/usage-stats
Returns the current plan name, billing period, plan limits, and usage counts.
The response shape depends on the account's billingSystem:
- Stripe users: per-period
usage.uploads/usage.profilescounters. - Metronome (usage-based) users:
usage.connectedAccounts,usage.xApiCallsByOperation(per-operation X API call counts — resolve keys viaGET /v1/billing/x-pricing), plus aspendblock withcurrentPeriodCents,xSpendCents, andxSpendLimitCents. The legacyusage.xApiCalls3-tier aggregate is still emitted for back-compat but excludes the $0.200 URL tier and any future tiers — new clients should consumexApiCallsByOperationonly.
Responses
200 — Usage stats
billingSystem(string) (enum: stripe, metronome) — Which billing system the account is on. Shape ofusage/spenddiffers.planName(string)billingPeriod(string) (enum: monthly, yearly)signupDate(string)billingAnchorDay(integer) — Day of month (1-31) when the billing cycle resetshasAccess(boolean) — True if the account is in good standing. False for past-due/unpaid/paused subscriptions.customerId(string) — Stripe customer ID, when present.isInvitedUser(boolean) — True if this is a team member; limits/usage reflect the account owner.autoUpgradeEnabled(boolean) — Stripe-only. Always false for Metronome users.limits(object) — Plan limits. For Metronome users both fields are-1(unlimited).usage(object) — Per-period usage counts. Fields present depend onbillingSystem: Stripe returnsuploads/profiles/lastReset; Metronome returnsconnectedAccounts/xApiCalls/xApiCallsByOperation.spend(object) — Metronome users only. Current-period spend summary.
401
404