API Reference
Create Session
Mint a widget session and get the embeddable URL.
POST
Description
Creates a widget session for a user. Returns asession_token (JWT) and a widget_url that you embed as an iframe. The session is valid for the duration specified in expires_at.
The widget handles OTP email verification, KYC (Onfido), bank linking (Plaid), and cashout initiation internally.
The widget also checks whether the user has any outstanding session disclosures. Cashout-specific disclosures are enforced when a cashout is submitted. See Disclosure Agreements.
Configuration
Header Parameters
Your ZBD project API key (production scope).
Content Type
Body Parameters
User’s email address. Required when
access_token is not supplied.Optional HTTPS server URL to receive widget webhook events.
Optional publisher reference for the session.
Optional key-value metadata to attach to the session.
Existing access token. When supplied,
email is not required and OTP is skipped.