Create an auth session

View as Markdown

Creates a server-side session token for a user. Pass the token to the Vlens iframe or WebView to embed the full verification and contracting UX without exposing your API key to the client. Requires only ApiKey — no admin token.

Authentication

ApiKeystring
Static API key issued to your tenant. Required on every request.

Request

This endpoint expects an object.
phoneNumberstringRequired
The user's registered phone number.
sessionPermissionsobjectOptional
Controls what the user is allowed to do in the session.

Response

Session created. Use data.token to load the Vlens iframe.

dataobject
error_codeinteger or null
error_messagestring or null
error_descriptionslist of objects or null