Skip to Content
coaadedocs

Subscriptions

List plans, read the current subscription, start checkout, preview and change plans, open the billing portal, cancel and reactivate.

Plan IDs are free, pro, team and enterprise. Paid plans are billed through Stripe.

List plans

GET/v1/plansNo auth

Active plans with prices, trial length and features.

Response 200 (one item shown)
[
  {
    "id": "pro",
    "name": "Pro",
    "tier": "pro",
    "price": 1899,
    "priceYearly": 20388,
    "description": "For professional developers who ship fast",
    "isPopular": true,
    "isCustom": false,
    "ctaText": "Get Pro",
    "badgeText": "Most Popular",
    "trialDays": 7,
    "features": ["Everything in Free", "Coaade Code 2.0 (latest models)", "25 projects", "…"],
    "modelAccess": "all",
    "extensionAccess": "all",
    "maxModels": 10,
    "maxMessages": 999999,
    "maxStorageGb": 50
  }
]

price is monthly and priceYearly is the yearly total, both in cents.

GET/v1/plans/comparisonNo auth

The full plan comparison table, grouped into categories of features with a value per plan.

GET/v1/plans/faqsNo auth

Pricing FAQs: [{ "id", "question", "answer" }].

Get the current subscription

GET/v1/subscriptionBearer token

The signed-in user's plan, status and billing period.

Response 200
{
  "subscription": {
    "planId": "pro",
    "planName": "Pro",
    "tier": "pro",
    "status": "trialing",
    "currentPeriodEnd": "2026-11-18T10:00:00.000Z",
    "trialEndsAt": "2026-11-18T10:00:00.000Z",
    "trialEligible": false,
    "cancelAtPeriodEnd": false,
    "viaTeam": false,
    "customDomains": ["app.example.com"]
  },
  "usage": { "limits": { "maxModels": 10, "maxMessages": 999999, "maxStorageGb": 50 } }
}
FieldMeaning
statusactive, trialing, past_due, canceled and similar Stripe statuses. A trial or a renewal being retried keeps the plan.
trialEndsAtWhen the trial ends and the first charge happens. null outside a trial.
trialEligibleThe user has never had a paid subscription, so checkout would start a free trial
cancelAtPeriodEndThe plan ends at currentPeriodEnd
viaTeamThe plan comes from someone else's Team seat and is read-only for this user
customDomainsVerified custom domains, which disconnect if the plan ends

An account with no subscription returns "subscription": null and "trialEligible": true.

Start checkout

POST/v1/subscription/checkoutBearer token

Create a Stripe Checkout session for a paid plan.

Prop

Type

Response 200
{ "url": "https://checkout.stripe.com/c/pay/…", "sessionId": "cs_…", "trialDays": 7 }

Redirect the user to url. trialDays is 0 when the user isn't eligible for a trial. If the user already has a paid plan, the change is made in place and the response is { "upgraded": true, "planId": "team" }.

Errors: 422 PLAN_NOT_PURCHASABLE (free or Enterprise), 404 PLAN_NOT_FOUND, 503 BILLING_UNAVAILABLE.

Preview a plan change

POST/v1/subscription/change-previewBearer token

What switching an existing subscription would cost now. Changes nothing.

Takes the same body as checkout (planId, billingPeriod).

Response 200
{
  "inPlace": true,
  "currentPlanId": "pro",
  "newPlanId": "team",
  "billingPeriod": "monthly",
  "creditCents": -1210,
  "chargeCents": 1593,
  "netCents": 383,
  "currency": "usd",
  "renewalDate": "2026-12-01T00:00:00.000Z"
}

creditCents is the unused time on the current plan (negative), chargeCents the new plan for the rest of the period, and netCents what's charged now. { "inPlace": false } means the change can't be made in place; use checkout.

Change plan

POST/v1/subscription/changeBearer token

Switch to another plan.

Request
{ "planId": "free" }

Downgrading to Free schedules the paid plan to end at the end of the period:

Response 200
{
  "subscription": { "planId": "pro", "status": "active", "cancelAtPeriodEnd": true, "currentPeriodEnd": "2026-12-01T00:00:00.000Z" },
  "scheduled": true
}

Errors: 402 CHECKOUT_REQUIRED (moving to a paid plan without a subscription), 404 PLAN_NOT_FOUND, 502 BILLING_ERROR.

Billing portal

POST/v1/subscription/portalBearer token

A Stripe billing portal link for cards and invoices.

Request
{ "returnUrl": "https://www.coaade.com/console/subscription" }
Response 200
{ "url": "https://billing.stripe.com/p/session/…" }

Cancel

POST/v1/subscription/cancelBearer token

Cancel at the end of the current period.

Response 200
{ "subscription": { "cancelAtPeriodEnd": true, "accessUntil": "2026-12-01T00:00:00.000Z" } }

Errors: 404 NO_SUBSCRIPTION, 502 BILLING_ERROR.

Reactivate

POST/v1/subscription/reactivateBearer token

Undo a cancellation before the period ends.

Response 200
{ "subscription": { "cancelAtPeriodEnd": false } }

If the plan has already ended, start a new checkout instead.

On this page