Skip to main content

Documentation Index

Fetch the complete documentation index at: https://bytestream.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Owners and admins can manage billing.

Endpoints

MethodEndpointDescription
GET/api/orgs/{id}/billingGet plan, status, usage, limits, and subscription summary
POST/api/orgs/{id}/billing/checkoutCreate Stripe Checkout Session
POST/api/orgs/{id}/billing/portalCreate Stripe Billing Portal Session

Checkout

{
  "plan": "starter"
}
or:
{
  "plan": "team"
}

Plan limit errors

Creation endpoints can return:
{
  "error": "Plan limit reached",
  "code": "PLAN_LIMIT_REACHED",
  "resource": "activeProjects",
  "plan": "free",
  "limit": 2,
  "usage": 2
}
Plan-limited resources include:
  • Humans
  • Agents/integrations
  • Active projects
  • Active issues

Local development

The app uses Stripe environment variables for billing:
STRIPE_SECRET_KEY
STRIPE_WEBHOOK_SECRET
STRIPE_PRICE_STARTER_MONTHLY
STRIPE_PRICE_TEAM_MONTHLY
NEXT_PUBLIC_APP_URL