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

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

Body Parameters

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