Skip to main content

Iframe

Embed verification in an iframe

Show the Didit flow inside your own page. Your user never leaves your site.

<iframe
  src="https://verify.didit.me/u/YOUR_WORKFLOW_ID_BASE64"
  style="width: 100%; height: 700px; border: none;"
  allow="camera; microphone; geolocation;
         clipboard-write; fullscreen; autoplay;
         encrypted-media; digital-credentials-get"
></iframe>

Embed

One tag

Paste the tag where the flow should appear.

The allow attribute is required. Without it the browser blocks the camera and the flow cannot run liveness. Liveness is the check that a real person is in front of the camera.

What each permission is for

cameraDocument and face capture.
microphoneOptional audio during video capture.
geolocationThe location step.
clipboard-writeThe copy buttons.
digital-credentials-getSharing a digital ID from a wallet.
<iframe  src="https://verify.didit.me/u/YOUR_WORKFLOW_ID_BASE64"  style="width: 100%; height: 700px; border: none;"  allow="camera; microphone; geolocation;         clipboard-write; fullscreen; autoplay;         encrypted-media; digital-credentials-get"></iframe>

The iframe posts messages to your page. Listen for didit:completed to update your screen.

Questions

Questions about the iframe

Why does the camera not start inside the iframe?
The allow attribute is missing or incomplete. Copy it exactly as shown. If a reverse proxy sits in front of your site, check that it does not strip the Permissions-Policy header.
Can I embed the flow without a backend?
Yes. Use the UniLink of your workflow as the iframe source. It needs no backend and no API keys.
How does my page know the user finished?
The iframe posts a didit:completed message with the session ID and the status. Use it to update the screen, and trust the webhook on your server for the final decision.
When should I use a session URL instead of a UniLink?
Use a session URL in production. It lets you attach your own user ID and metadata, set a callback per session and track the session on your server.
What size should the verification iframe be?
Didit recommends 960 by 660 pixels on windows 1024px and wider, at most 90% of the window. Between 541px and 1023px, use 500px wide and the height reported in the didit:layout message, capped at 90% of the window height. At 540px and below, show it full screen.
Why does the iframe not load at all?
A Content Security Policy (CSP) on your site is the usual cause. Add https://verify.didit.me to your frame-src directive, for example Content-Security-Policy: frame-src https://verify.didit.me, then check the browser console for remaining errors.
Can the user finish verification on a phone?
Yes. The Didit InContext iframe supports cross-device verification automatically. If the desktop camera is unavailable, the flow shows a QR code, the user completes verification on mobile and the desktop iframe updates with the result. No extra configuration is needed.
Why are postMessage events not reaching my page?
Check that you accept messages from https://verify.didit.me, or your white-label domain, and add the listener before opening the iframe. Event types are prefixed, such as didit:completed, and the payload is nested, so read event.data.data.sessionId rather than event.data.sessionId.
What happens if I leave digital-credentials-get out of allow?
Without digital-credentials-get, the browser refuses wallet requests, so the user cannot share a digital ID from a wallet inside your iframe. Didit recommends the full permission list from the in-context iframe guide.
What should my page do if the connection drops?
The verification page shows a No internet connection screen that closes by itself when the connection returns. If the user chooses Exit Verification, the page sends didit:error with error network_error and then didit:cancelled. Close the iframe when you receive didit:cancelled.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Trusted by EU regulators

    After a year of supervised testing, EU financial regulators confirmed that verifying with Didit is safer than checking an ID in person.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Start

Embed the flow

Create an account, copy your link or create a session, then paste the tag.

Free sandbox. Credit applies to work-email sign-ups.