The Subscriptions API lists the plans available on the platform and the subscriptions your project holds. A subscription ties your project to a plan on a billing cycle.

The plan object

AttributeTypeDescription
idintegerUnique plan id.
namestringDisplay name (e.g. Starter).
descriptionstringWhat the plan includes.
isActivebooleanWhether the plan can be subscribed to.
typestringSUBSCRIPTION (fixed price) or USAGE (metered).
productIdintegerProduct the plan belongs to.
priceMonthlynumberMonthly price in fiat major units.
creditRateobjectPer-metric credit rates, for USAGE plans.
planQuotasPlanQuota[]Usage limits attached to the plan (see below).
createdBystringActor that created the plan.
createdAtstringISO 8601 UTC timestamp.

The plan quota object

AttributeTypeDescription
idstringUnique quota id.
planIdintegerPlan the quota belongs to.
metricstringMetered dimension (e.g. API_CALLS, PROJECTS, TOKEN_MINTS).
limitValueinteger | nullCap for the metric; null means unlimited.
windowsSecondsinteger | nullRolling window in seconds; null means no window.

The subscription object

AttributeTypeDescription
idstringUnique subscription id.
projectIdstringProject that owns the subscription.
businessIdstringOwning business.
planIdintegerSubscribed plan.
billingCyclestring | nullMONTHLY or YEARLY; null for usage plans.
statusstringe.g. ACTIVE.
subscriptionTypestringe.g. EXTERNAL.
startDatestringISO 8601 UTC start.
endDatestring | nullISO 8601 UTC end, or null if open-ended.
autoRenewbooleanWhether the subscription renews automatically.
creditAmountnumber | nullRemaining credits, for usage plans.
paymentRefstringReference of the payment that activated it.
createdBystringActor that created the subscription.
createdAtstringISO 8601 UTC timestamp.
updatedAtstringISO 8601 UTC timestamp.