Open the billing portal
Billing
Open the billing portal
Creates a hosted billing-portal session for the caller’s workspace and returns its URL, where an admin can manage payment methods, view invoices, and change or cancel the subscription. Workspace admin only. Works even for workspaces that have never purchased (a billing customer is created on demand). Returns 503 if billing is not configured.
POST
Open the billing portal
Returns a Stripe redirect URL
Returns{ "url": "..." } for Stripe’s hosted billing portal (manage payment method, upgrade/downgrade, cancel). Redirect the customer there. Admin only.