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.
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.Your server URL to receive cashout lifecycle webhooks (initiated, completed, failed).
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.