Each session token is short-lived and should be generated immediately before starting the verification process.
Get Session ID
To get a session ID, your application’s server must make an API request to the GET /liveness/session endpoint.For security, best practice is to fetch the session token from a protected server, never on the client.
Referring Session ID
When using Face Match alongside Verisoul’s platform, you can optionally pass areferring_session_id
parameter in your session request.
This parameter should be the session ID from the user’s current interaction with Verisoul’s platform, before they begin the Face Match verification. By providing this context, Verisoul can make more informed risk assessments during the verification process.
Passing a referring session ID provides several benefits:
- Enhanced risk assessment capabilities for Face Match
- Access to referring session signals during verification
- Better detection of impersonation attempts and verification link sharing