Billing
Stripe-backed subscription, checkout, and minute-balance management. These
endpoints live under /billing (not /api). Application endpoints require a
valid Bearer JWT; the Stripe webhook
is called by Stripe and authenticated by signature, not JWT.
Endpoints
| Method | Path | Description |
|---|---|---|
| POST | /billing/checkout | Start a Stripe checkout session. |
| POST | /billing/portal | Open the Stripe customer portal. |
| POST | /billing/webhook | Stripe webhook receiver (signature-authenticated). |
| GET | /billing/info | Get the project's billing status and balance. |
| PATCH | /billing/auto-refill | Configure minute auto-refill. |
| GET | /billing/plans | List subscription plans. |
| GET | /billing/minute-packs | List purchasable minute packs. |