Skip to main content
After creating a verification session, you need to send your user to the iDenfy verification UI. There are two approaches: embed an iFrame directly in your page, or redirect your user to an iDenfy-hosted page.

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 the 575px 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:
Aim for the full desktop (≥ 992px) or full mobile (≤ 575px) layout — the mixed-card middle works, it just isn’t the richest UI.

Required Attributes

You must add the allow="camera; fullscreen; clipboard-write" and allowfullscreen attributes to the iFrame element. Camera access is required for document capture, and fullscreen is required for 3D liveness detection. Without them, the camera-based checks will fail.
Embedding something other than 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:
The default allowlist only covers the iFrame’s own 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.
Skip the sandbox attribute. Bank verification and Digital ID flows open popups, and sandboxing blocks them. If your security policy requires it, include at least:
allow-popups lets the popup open; allow-popups-to-escape-sandbox keeps the identity provider’s login page working.

Listening for Verification Results

When the verification session ends, the iFrame posts a message 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.
Do not set successUrl, errorUrl, or unverifiedUrl when using the iFrame integration. These parameters cause the iFrame to redirect internally, which breaks the embedded flow. Use the message event instead to handle outcomes.

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

Replace {authToken} with the token from the session creation endpoint.
When using redirect, you can configure successUrl, errorUrl, and unverifiedUrl during session creation. iDenfy will redirect the user back to the appropriate URL after the session ends.

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.
Benefits of the iFrame-only approach:
  • 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.