Skip to contentSkip to navigation

Get Subscription Beta

The workspace's plan, subscription status, billing period, queued downgrade and usage.

GET /api/v1/billing/subscription

Requires an API key with the read scope.

Read only: nothing is created or changed, and no Stripe customer or subscription id is returned (hasBillingAccount only says a billing account exists, so the billing portal can open in the app). Use the app to change the plan or payment method.

Response fields

plan string
The plan enforced for this workspace: free, starter, growth or agency. A workspace on a lifetime license or an owner-wide agency plan shows that plan.
status string
active, trialing, local_trial, past_due or canceled.
billingInterval string | null
monthly or annual; null with no recurring subscription, and for a trial without a Stripe subscription.
currentPeriodEnd string | null
When the current billing period ends.
cancelAtPeriodEnd boolean
true when the subscription ends at the period end.
pendingPlan string | null
A downgrade queued for the end of the period, with pendingPlanEffectiveAt.
graceEndsAt string | null
While past_due: when the grace period that keeps the paid limits runs out.
lifetimeGrant boolean
true when a lifetime license is bound to this workspace.
trial object | null
The open trial, or one that ended in the last two weeks. null when none.
usage object
contacts, monthlyEmails and aiCredits as {used, limit} (-1 is unlimited), verificationCredits as {balance, expiresAt}, and leadFinderCredits while Lead Finder is available.

Errors

StatusDescription
401Missing, invalid, revoked or expired API key
403API key does not have the required scope: read

Rate Limit

  • 300 requests per minute, shared by every read call in your workspace. Fixed 60-second window.
  • Every response includes X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (unix epoch seconds) and X-RateLimit-Bucket (read).
  • A 429 response includes a Retry-After header (seconds until the bucket resets).

For client-side patterns, see Rate Limiting.

Was this page helpful?