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
/v1/plansNo authActive plans with prices, trial length and features.
[
{
"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.
/v1/plans/comparisonNo authThe full plan comparison table, grouped into categories of features with a value per plan.
/v1/plans/faqsNo authPricing FAQs: [{ "id", "question", "answer" }].
Get the current subscription
/v1/subscriptionBearer tokenThe signed-in user's plan, status and billing period.
{
"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 } }
}| Field | Meaning |
|---|---|
status | active, trialing, past_due, canceled and similar Stripe statuses. A trial or a renewal being retried keeps the plan. |
trialEndsAt | When the trial ends and the first charge happens. null outside a trial. |
trialEligible | The user has never had a paid subscription, so checkout would start a free trial |
cancelAtPeriodEnd | The plan ends at currentPeriodEnd |
viaTeam | The plan comes from someone else's Team seat and is read-only for this user |
customDomains | Verified custom domains, which disconnect if the plan ends |
An account with no subscription returns "subscription": null and "trialEligible": true.
Start checkout
/v1/subscription/checkoutBearer tokenCreate a Stripe Checkout session for a paid plan.
Prop
Type
{ "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
/v1/subscription/change-previewBearer tokenWhat switching an existing subscription would cost now. Changes nothing.
Takes the same body as checkout (planId, billingPeriod).
{
"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
/v1/subscription/changeBearer tokenSwitch to another plan.
{ "planId": "free" }Downgrading to Free schedules the paid plan to end at the end of the period:
{
"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
/v1/subscription/portalBearer tokenA Stripe billing portal link for cards and invoices.
{ "returnUrl": "https://www.coaade.com/console/subscription" }{ "url": "https://billing.stripe.com/p/session/…" }Cancel
/v1/subscription/cancelBearer tokenCancel at the end of the current period.
{ "subscription": { "cancelAtPeriodEnd": true, "accessUntil": "2026-12-01T00:00:00.000Z" } }Errors: 404 NO_SUBSCRIPTION, 502 BILLING_ERROR.
Reactivate
/v1/subscription/reactivateBearer tokenUndo a cancellation before the period ends.
{ "subscription": { "cancelAtPeriodEnd": false } }If the plan has already ended, start a new checkout instead.