View as Markdown

Get Subscription

GET/v2/billing/subscription

The plan, billing cycle, phone add-on, pause and discount of this workspace, so a script can check its plan before it spends. Free: no credits. plan.credits are per unit: a subscription of quantity units has quantity times them. data is null (with no error entry) when the workspace has no subscription. Any member, with an API key, an OAuth token or a session.

Responses

  • 200 The subscription, or data: null when the workspace has none.
  • 401 Missing, unknown or inactive credentials (UNAUTHORIZED).
  • 500 Unexpected server error.

For error handling see Errors. Response objects are described in Person object and Company object.