Skip to main content
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

string
required
Your public key (pk_live_...)

Request Body

string
required
The tenant ID from your application
string
required
URL to return to when the user exits the portal. Must be a valid URL.
object
Optional context stored with the token. Supports userEmail, userName.

Response

string
Signed JWT (valid for 10 minutes)
string
The full portal URL with token — redirect the user here