billing
billing

Get Subscription

Get subscription details for current user/workspace.

Uses workspace's billing_mode to determine which subscription to return:

  • 'user': Returns user's personal subscription
  • 'workspace': Returns workspace's team subscription
get/api/billing/subscription

Request

  • Base URL: https://api.dialogbrain.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.dialogbrain.com/api/billing/subscription
  • Auth: none declared

Response

Successful Response

idinteger nullable required
plan_idstring required
plan_namestring required
statusstring required
price_centsinteger required
ai_actions_monthlyinteger required
ai_credits_usedinteger required
storage_gbinteger required
storage_used_bytesinteger required
max_channelsinteger nullable required
current_period_endstring nullable required
cancel_at_period_endboolean required
trial_endstring nullable required

Changes

No recorded changes to this operation across all 5 revisions of this API.