Overview
This guide explains how to collect a full verification (selfie + identity document) along with an additional identity document (e.g., residence permit) using the iDenfy API and web redirect. Common use case: Non-resident verification requiring both a primary ID document and a residence permit.Choosing a Method
Recommendation: Use Method 1 if you need automatic data extraction and comparison between documents.
Method 1: Two Separate Sessions
Generate two sessions with the sameclientId, chain them using redirect URLs, and compare the webhook results.
Step 1: Generate Both Sessions
Create the identity verification session first. Set its redirect URLs to point to the second sessionβs redirect URL.Use the
authToken from the document session response as DOCUMENT_TOKEN in the identity sessionβs redirect URLs. This chains the two sessions so the user is automatically redirected after completing the first verification.Step 2: Send the User to Verification
Step 3: Handle Webhooks and Compare Data
You will receive two separate webhooks β one for each session. Use theclientId to link them and compare extracted data.
User Journey
- User clicks verification link
- Opens identity verification (selfie + ID)
- Completes identity verification
- Automatically redirected to document verification (residence permit)
- Uploads additional document
- Redirected to your success URL
- Two webhooks received β compare data to validate the same person
Method 2: Additional Steps
Use this when you do not need data extraction from the additional document.Setup
Contact iDenfy support to configure an additional step in your environment (e.g.,RESIDENCE_PERMIT).
Generate Session
Webhook Result
The additional document is stored only β no automatic data extraction. You will need to manually review or process the document image from
fileUrls.