Academy · Build · Lesson 8 of 47
The Complete Integration Guide
Get Didit wired into your own product: the SDK your users see, the API your backend calls, and the signed webhook that delivers the verdict you build your logic on.
Chapters
What's covered
Jump straight to the part you need.
0:00What you'll wire upWatch from 0:000:27SDK, API and webhook: the three piecesWatch from 0:270:55The integrate tabWatch from 0:551:28Choosing your platformWatch from 1:281:48The AI setup promptWatch from 1:482:07API keys, one per environmentWatch from 2:072:27Creating a keyWatch from 2:273:12Webhooks overviewWatch from 3:123:25The documentationWatch from 3:253:36Create session: the one required fieldWatch from 3:363:58Vendor data and callback URLWatch from 3:584:23Trying the endpoint liveWatch from 4:235:31Webhooks: why not pollingWatch from 5:315:42Adding a destination and picking eventsWatch from 5:426:18The signing secretWatch from 6:186:34The webhook handler promptWatch from 6:347:41RecapWatch from 7:41What you'll learn
What you'll learn
The points you will be able to act on after this lesson.
- How to create an API key and open your first session
- Which SDK to reach for on web, mobile or server
- Why webhooks beat polling, and how to verify the signature
- How to hand the boring parts to an AI coding tool with the built-in setup prompts
A terminal, and any language with an HTTP client.
Read the full summary
Three moving pieces. The software development kit (SDK) renders the camera, document capture, near-field communication (NFC) read and liveness inside your app. Your backend calls the API. A signed webhook delivers the verdict you build on.
One key per environment, per integration. Keys live in the Manage tab and are shown once at creation. Separate keys mean you can rotate or revoke one without breaking anything else.
Pick your surface. There are builds for web, React Native, iOS, Android and Flutter, and the hosted flow works as a link, iframe, redirect or popup if you would rather not embed anything.
Create session is the one call that matters. Post to it with a workflow ID (the only required field), and you have a session. The same endpoint creates both Know Your Customer (KYC) and Know Your Business (KYB) sessions; the workflow decides which.
Vendor data is your join key. Pass an email or any stable internal identifier and every future session and transaction for that person groups under one profile. It is worth getting right on the first call.
The callback URL controls the return trip. It decides where the user lands after finishing, which is separate from where the authoritative result is delivered.
Try the endpoint from the docs. The documentation has a live request panel, so you can paste a key and a workflow ID and create a real session without writing any code first.
Webhooks beat polling. Polling is slower, burns requests and can skip events entirely. A webhook pushes the decision the instant it is made.
Destinations, events and a signing secret. Add a URL, choose which events it should receive, and Didit issues a one-time signing secret. The endpoint has to be publicly reachable: no localhost, no private IPs.
Verify the signature before trusting the payload. Your handler recomputes the signature over the raw body and compares it against the header. The documented handler prompt implements this for you.
Two prompts do the boring parts. The integrate tab generates a setup prompt carrying your workflow, key and secret, and the docs carry a webhook handler prompt covering signature headers, event types and the payload envelope.
The MCP server can answer your questions. With the Model Context Protocol server connected, an AI tool can read the documentation directly, so technical questions get answered from the real docs rather than guessed at.
Your job becomes review, not typing. With the prompts and the documentation available to the coding tool, most of an integration is generated and your work is checking that it runs correctly.
Inside this lesson
- API keys, one per environment. Keys live in the Manage tab, one per row. The habit worth forming is a separate key per environment and per integration, so you can rotate or revoke one without breaking the others. A key is shown once at creation, so store it then.
- Creating a session. Everything revolves around one call. Post to the session endpoint with a workflow ID (the only required field), and you get back a session. The same endpoint creates both Know Your Customer (KYC) and Know Your Business (KYB) sessions; the workflow decides which is which.
- Choosing your surface. The SDK renders the camera, the document capture, the near-field communication (NFC) read and the liveness UI inside your app. There are builds for web, React Native, iOS, Android and Flutter, and the hosted flow is available as a link, iframe, redirect or popup.
- Receiving the result. Webhooks are the recommended channel, because polling is slower, costs more requests and can skip events. You add a destination, pick which events it should receive, and Didit hands back a one-time signing secret. The endpoint must be publicly reachable.
- Letting AI do the wiring. The console generates a setup prompt carrying your workflow, key and signing secret, and the docs include a webhook handler prompt covering signature headers, event types and the payload envelope. Paste either into an AI coding tool and review the result rather than hand-writing the boilerplate.
- Passing your own identifier. The vendor data field is your stable reference for the person: an email, a user ID, anything unique in your system. It is what groups every future session and transaction under one profile, so it is worth getting right on the first call.
Up next
Up next
Keep going in order, or jump back to the library.
Questions
Common questions
How do I integrate Didit into my app?
How do I create a verification session?
How do I verify a webhook is really from Didit?
Should I poll the API instead of using webhooks?
Which SDK should I use?
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.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- 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