Skip to main content
POST
Creates a signed JWT that the portal uses to identify the tenant during checkout. The React SDK calls this automatically when you invoke redirectToCheckout().

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 after checkout completes
string
The user ID from your application. Used for D2C tenant auto-provisioning.
string
Display name for the tenant. Used when auto-provisioning a new tenant.
string
Pre-selects a plan that includes this feature on the pricing page.
string
Pre-selects a specific plan ID on the pricing page.
object
Additional context passed into the JWT. Supports userEmail, userName, and custom fields.

Response

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