Checkout
Create Portal Token
Mint a short-lived JWT to redirect the user to the billing portal.
POST
Creates a signed JWT for accessing the self-service billing portal — where tenants can view invoices, update payment methods, manage seats, and cancel their subscription.
The tenant must already exist (i.e. have gone through checkout at least once). Returns
404 if the tenant is not found.
Request Headers
Your public key (
pk_live_...)Request Body
The tenant ID from your application
URL to return to when the user exits the portal. Must be a valid URL.
Optional context stored with the token. Supports
userEmail, userName.Response
Signed JWT (valid for 10 minutes)
The full portal URL with token — redirect the user here