For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
HomeAPI Reference
HomeAPI Reference
  • Overview
    • API Overview
  • Vlens API
      • POSTCreate an embedded auth session
      • POSTCreate an invitation with pre-filled data
Dashboard
LogoLogo
Vlens APIIdentity User Session

Create an embedded auth session

||View as Markdown|
POST
https://api.vlenseg.com/api/IdentityUserSession/CreateAuthSession
POST
/api/IdentityUserSession/CreateAuthSession
$curl -X POST https://api.vlenseg.com/api/IdentityUserSession/CreateAuthSession \
> -H "ApiKey: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "phoneNumber": "+201234567890",
> "sessionPermissions": {
> "allowedContractTypeIds": [
> 414
> ],
> "minimalSignatureFlow": true,
> "DigitalIdentityOnly": false
> }
>}'
200Identity User Session_createAuthSession_example
1{
2 "data": "string",
3 "error_code": 1,
4 "error_message": "string",
5 "error_descriptions": null
6}

Create a session token for a user identified by phone number or email. This token is used to launch the Vlens iframe or WebView for that user, embedding the full verification and contracting UX inside your own application.

Authentication: Requires only the ApiKey header — no admin bearer token.

Was this page helpful?
Previous

AML validation

Next

Create an invitation with pre-filled data

Built with

Authentication

ApiKeystring
Static API key issued to your tenant. Obtain from the Vlens dashboard.

Request

This endpoint expects an object.
phoneNumberstring or nullOptional
emailstring or nullOptionalformat: "email"
userPublicKeystring or nullOptional
Optional RSA public key to encrypt the session token.
sessionPermissionsobjectOptional
Controls which features and contract types are available in the session.

Response

Session token. Use this to initialize the Vlens iframe.
datastring or null
error_codeinteger or null
error_messagestring or null
error_descriptionsany or null