APIBilling
List plans
List the self-serve credit plans available for checkout, including the current plan.
GET https://api.sazabi.com/v1/billing/plans
Query Parameters
organizationId?string
Organization to operate on. Auto-filled from CLI and SDK context when omitted. User tokens must supply it unless the credential's fixed scope resolves it; secret keys may omit it (the key's organization applies).
Length
1 <= lengthResponse Body
application/json
curl -X GET "https://example.com/billing/plans"{ "billingModel": "string", "currentPlanSlug": "string", "hasActiveStripeBilling": true, "plans": [ { "slug": "string", "isVisible": true, "billingModel": "string", "name": "string", "description": "string", "bestFor": "string", "price": "string", "currency": "string", "cycleCredits": "string", "targetCreditBalance": "string", "logsIncludedBytes": "string", "aiTokensIncluded": "string", "entitlements": { "property1": { "label": "string", "description": "string", "type": "binary", "value": true }, "property2": { "label": "string", "description": "string", "type": "binary", "value": true } }, "changeEligibility": { "allowed": true, "reason": "string" }, "includedUsage": [ "string" ], "featuresHeading": "string", "features": [ "string" ], "featureSections": [ { "heading": "string", "items": [ "string" ] } ] } ]}