The Identity User Session API lets you embed the complete Vlens verification and contracting UX inside your own application using an iframe or WebView — without exposing your ApiKey or admin credentials to the client.
A standard session that prompts the user through whatever steps are needed based on their current state (registration, KYC, contract signing). The user’s experience is determined by sessionPermissions.
Authentication: Requires only ApiKey — no admin token.
A session with pre-filled form data. Use this when you have already collected the customer’s information and want to minimize the steps the user must complete.
Authentication: Requires admin bearer token + ApiKey.
RequestFieldsValues is keyed by contract type ID, then by field key. Get the field keys from GetBusinessRequestTypeTemplateFields.
Both session endpoints return a session token in data. Pass this token when initializing the Vlens iframe or WebView:
The allow="camera; microphone" attribute is required for the liveness detection step to function correctly in the browser.