iFrame Integration
Embedding the verification flow in an iFrame keeps users on your site and gives you full control over the experience.Base URL
Query Parameters
Sizing Recommendations
On desktop, use the recommended 670 × 800 px embed size so all verification steps display without internal scrolling — cramped heights cause scrolling at the camera step, which is where users drop. This is a guideline, not a hard minimum. On mobile (below the575px breakpoint), switch to 100% width and 100% height so the iFrame fills the viewport — this gives the best experience for camera capture and liveness checks.
The UI adapts across three layouts, based on the iFrame’s width:
Required Attributes
Embedding something other than The default allowlist only covers the iFrame’s own
https://ui.idenfy.com? If your iFrame src is the redirect URL (https://ivs.idenfy.com/api/v2/redirect?...) or a custom UI domain, name the final UI origin in the allow list:src origin, so permissions are lost after the cross-origin redirect. With a custom UI domain, use that domain here and in the message origin check below.Listening for Verification Results
When the verification session ends, the iFrame posts amessage event to the parent window. You must listen for this event to know the outcome.
Message Event Fields
All status values are delivered lowercase.
manualStatus will be waiting immediately after the session completes — the final manual review result is delivered asynchronously via webhook. Do not treat waiting — or an unverified status — as a final state.Full HTML Example
Redirect Integration
If you prefer a simpler integration without iFrame embedding, redirect your user to the iDenfy verification page. Your user leaves your site, completes verification, and returns to your redirect URL.Redirect URL
{authToken} with the token from the session creation endpoint.
Why There Is No Web SDK
iDenfy intentionally does not provide a JavaScript Web SDK. The iFrame approach is the recommended integration for web applications.
- Always up to date — your integration automatically uses the latest UI, liveness detection, and document recognition without any code changes on your side.
- Lighter integration — no package to install, no bundle size impact, no dependency management.
- Future-proof — new features, supported documents, and UX improvements are available immediately.
- No version management — you never need to track SDK releases or handle breaking changes.
Next Steps
Set up webhooks
Receive real-time verification results on your server.
Mobile SDKs
Native Android and iOS SDKs for mobile apps.