Hosted flow
The hosted verification flow
Your backend creates a session. Didit shows the screens. You get a webhook.
curl -X POST https://verification.didit.me/v3/session/ \
-H "x-api-key: $DIDIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"workflow_id": "your-workflow-id"}'
KYC Integration Options: Redirect Link vs iFrame vs Native SDK · 3 min · YouTube
Session
Create a session
One call from your server, in cURL or with a server SDK.
curl -X POST https://verification.didit.me/v3/session/ \ -H "x-api-key: $DIDIT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "workflow_id": "'"$DIDIT_WORKFLOW_ID"'", "vendor_data": "internal-user-id", "callback": "https://myapp.com/done" }'
workflow_id is the one required field. The server SDKs read your key from DIDIT_API_KEY. Treat session_token as a secret.
Optional fields
| Field | What it does |
|---|---|
vendor_data | Your own user ID. Didit returns it with every result and links the session to that person, or to that company for KYB. |
callback | The page Didit sends the user to after the flow. |
callback_method | initiator (the default), completer or both. Use both when a user starts on a computer and finishes on a phone. |
metadata | Any JSON you want back. Didit repeats it on webhooks. |
language | A two-letter language code for the screens, such as es. |
contact_details | The email and phone of the user, and whether Didit emails them. |
expected_details | The data you expect. Didit checks it against the document. For KYB it fills in the company name, registry country and registration number. |
Show it
Four ways to show the flow
Pick the one that fits your app. Each one takes the URL or the token from the session.
A modal on top of your page, or inline inside it.
DiditSdk.shared
.startVerification({ url })Native screens in your mobile app, with NFC.
startVerification( token: sessionToken)
callback_method to both. WebView guideResult
Read the decision
The status tells you where a session stands. The decision holds the detail.
The 10 session statuses
Awaiting User applies to company checks, while Didit waits for an owner or an officer to verify.
status.updated to your server. This is the recommended way.GET /v3/session/{sessionId}/decision/ returns the full decision at any time.id_verifications, liveness_checks and face_matches.The callback URL
https://yourapp.com/verification-complete?verificationSessionId=abc123&status=ApprovedAfter the flow, Didit sends the user to your callback with verificationSessionId and status in the address. Use it to show the right screen. Trust the webhook or the decision endpoint for the result.
Questions
Questions about the hosted flow
What is the hosted verification flow?
What happens if I create a session twice for the same user?
Do I need to show a consent notice?
Where does my API key go?
How do I get the result?
Can I use the hosted flow in a mobile app?
How long does a verification link stay valid?
Which languages can the hosted flow show?
Where does the user go when they finish?
Can I check the user's data against what I already know?
Can I attach my own data to a session?
Which statuses can a session have?
What if I already collected biometric consent?
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.
Your obligations · 3 regions
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.
- 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.
Didit Academy
Learn Didit, one short video at a time
Start
Create your first session
Create an account, copy the request and run it with your sandbox key.
Free sandbox. Credit applies to work-email sign-ups.