Billing

Create a Stripe Checkout session

Low-level — returns a Checkout URL for entering a card. Prefer POST /api/billing/upgrade in most flows; that handles the plan-switch branches too. Use this when you specifically want a fresh Checkout (e.g. after a portal cancellation). 409s if a subscription already exists.

post/api/billing/checkout

Request

  • Base URL
    https://trydock.ai
  • Auth
    HTTP bearer

Request body

plan'pro' | 'scale'

Target plan. Defaults to pro.

Response

Checkout URL.

urlstring uri required
plan'pro' | 'scale' required

Changes

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