Skip to main content
POST

Description

Creates a widget session for a user. Returns a session_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

string
required
Your ZBD project API key (production scope).
string
Content Type

Body Parameters

string
required
User’s email address. Required when access_token is not supplied.
string
Optional HTTPS server URL to receive widget webhook events.
string
Optional publisher reference for the session.
object
Optional key-value metadata to attach to the session.
string
Existing access token. When supplied, email is not required and OTP is skipped.