Skip to content
Docs menu

API reference

Billing

The workspace's plan, subscription, limits and usage (read-only: plan changes happen in the app, at upgrade_url).

GET/v1/billing/subscription

Get the subscription

The workspace's plan and subscription: status, billing interval, current period, trial end, whether it cancels at period end and whether Stripe manages it, plus the limits in effect, usage against each limit (-1 = unlimited, used: null = not metered) and the AI credit balance. plan.price_cents is what each payment for the plan is before discounts, for every seat Stripe bills (a subscription billed per seat pays the seat price times its seats): a subscription keeps the price it signed up at when the plan is re-priced, so it can differ from plan.list_price_cents, the plan's price now for one seat of a new subscription on the same interval. discount_cents is what the promo code on the subscription takes off each payment now (0 for none). When a lapsed subscription falls back to the default plan, entitlement.fallback is true (fallback_reason says why) and limits are the fallback plan's. During a trial nothing has paid for yet (trialing, with the trial running to the end of the current period), limits.ai_credits_monthly and ai_credits.allowance are the trial's AI credit allowance: the plan's own starts with the first payment. A trial added to a period that's already paid keeps the plan's allowance. trial.eligible says whether upgrading this workspace to a plan with a free trial would start one. Each person gets one trial across the workspaces they own, so it's false when trial.reason is workspace (this workspace already had a trial or paid for a plan) or person (an owner of the workspace, or the member who created the key, already had theirs in another workspace); the app's billing page then offers to subscribe without one. Read-only: plans can't be changed over the API or MCP; send the person to upgrade_url (accepts ?plan=<key>&interval=month|year). Needs the billing:read scope and a role with billing access.

Scopebilling:readMCP toolget_subscription
Request
curl "https://sqa.coboost.ai/api/v1/billing/subscription" \
  -H "Authorization: Bearer $COBOOST_API_KEY"
Response · 200
{
  "object": "subscription",
  "plan": {
    "key": "pro",
    "name": "Pro",
    "price_cents": 9900,
    "list_price_cents": 11900,
    "currency": "USD"
  },
  "discount_cents": 1980,
  "status": "active",
  "interval": "month",
  "current_period_start": "2026-10-04T00:00:00.000Z",
  "current_period_end": "2026-11-04T00:00:00.000Z",
  "trial_ends_at": null,
  "cancel_at_period_end": false,
  "canceled_at": null,
  "managed_by_stripe": true,
  "entitlement": {
    "effective_plan": {
      "key": "pro",
      "name": "Pro"
    },
    "fallback": false,
    "fallback_reason": null,
    "past_due_grace_ends_at": null
  },
  "limits": {
    "seats": 20,
    "social_accounts": 25,
    "active_campaigns": 50,
    "ai_credits_monthly": 3000,
    "api_requests_per_minute": 300,
    "brand_kits": 5,
    "designs": -1
  },
  "usage": {
    "seats": {
      "used": 3,
      "limit": 20
    },
    "social_accounts": {
      "used": 0,
      "limit": 25
    },
    "active_campaigns": {
      "used": 4,
      "limit": 50
    },
    "brand_kits": {
      "used": 1,
      "limit": 5
    }
  },
  "ai_credits": {
    "balance": 2840,
    "allowance": 3000,
    "allowance_remaining": 2600,
    "carry_over": 240
  },
  "over_limit": null,
  "trial": {
    "eligible": false,
    "reason": "workspace"
  },
  "upgrade_url": "https://coboost.ai/billing/upgrade"
}