Skip to main content

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.

8 minBuild · Lesson 8 of 47

Chapters

What's covered

Jump straight to the part you need.

0:00What you'll wire upWatch from 0:00
0:27SDK, API and webhook: the three piecesWatch from 0:27
0:55The integrate tabWatch from 0:55
1:28Choosing your platformWatch from 1:28
1:48The AI setup promptWatch from 1:48
2:07API keys, one per environmentWatch from 2:07
2:27Creating a keyWatch from 2:27
3:12Webhooks overviewWatch from 3:12
3:25The documentationWatch from 3:25
3:36Create session: the one required fieldWatch from 3:36
3:58Vendor data and callback URLWatch from 3:58
4:23Trying the endpoint liveWatch from 4:23
5:31Webhooks: why not pollingWatch from 5:31
5:42Adding a destination and picking eventsWatch from 5:42
6:18The signing secretWatch from 6:18
6:34The webhook handler promptWatch from 6:34

What 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
Before you start

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.

Questions

Common questions

How do I integrate Didit into my app?
Three pieces fit together: the SDK renders the capture UI inside your product, your backend calls the API to create a session, and a signed webhook delivers the verdict. The console generates a setup prompt with your own values already filled in.
How do I create a verification session?
Post to the session endpoint with a workflow ID, which is the only required field. Add vendor data to tie the session to a user in your system, and a callback URL to control where the user lands afterwards. The same endpoint serves KYC and KYB.
How do I verify a webhook is really from Didit?
Each webhook destination is issued a one-time signing secret. Your handler recomputes the signature over the raw request body and compares it with the header before trusting the payload. The documented handler prompt implements this for you.
Should I poll the API instead of using webhooks?
No. Polling is slower, burns requests and can miss events entirely. Webhooks push the decision to your endpoint the instant it is made, which is both faster and richer than anything you would get by asking repeatedly.
Which SDK should I use?
Pick the one matching your surface: web, React Native, iOS, Android or Flutter. All of them render the same capture and liveness UI. If you would rather not embed anything, the hosted flow works as a link, iframe, redirect or popup.

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.

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.

Verify your first user today.

Start free

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