Skip to main content

Developers

The best way to integrate
identity and fraud.

Connect your AI agent, send users to a hosted flow or call one check from your server. Every path uses the same API, the same sandbox and the same webhooks.

MCP serverhttps://mcp.didit.me/mcp

REST API · Web and mobile SDKs · MCP server · Webhooks · Free sandbox

Integration

Two ways to integrate

Use the hosted flow when a person is on the screen. Use the standalone API when your own server already has the image or the data.

  1. 1
    Create a workflow

    Build it in the no-code console. A workflow is the list of checks your user goes through.

  2. 2
    Create a session

    Call POST /v3/session/ with the workflow_id and your own vendor_data reference. You get a session_id, a session_token and a hosted url.

  3. 3
    Send your user

    Share the hosted url, or open it in a web or mobile SDK.

  4. 4
    Read the decision

    Get the status and every check result by signed webhook, or from the decision endpoint.

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"  }'
Ways inHosted linkWebiOSAndroidReact NativeFlutter
Read the docs
  1. 1
    Send the images

    Call POST /v3/id-verification/ from your server with the front and back images and your own vendor_data reference.

  2. 2
    Read the body

    The response holds the status, the name, the document type and number, the dates and the warnings. A check that fails still returns a 200.

  3. 3
    Store the request

    Keep the request_id to find the call in the console.

curl -X POST 'https://verification.didit.me/v3/id-verification/' \  -H "x-api-key: $DIDIT_API_KEY" \  -F 'front_image=@./id_front.jpg' \  -F 'back_image=@./id_back.jpg' \  -F 'vendor_data=user-123'
A sandbox key returns a sample result. Nothing is billed.API reference
QuestionHosted flowStandalone API
Is a user in front of the screen?
Yes
Only with your own capture screens
Do you need the highest completion rate?
Yes, the flows are A/B tested
You manage the user experience yourself
Do you need NFC passport reading?
Yes, with the native SDKs
Not available
Is it batch or backend processing?
Not ideal
Yes
Do you need a custom pipeline?
Limited to workflows
Full flexibility
Do you want the fastest integration?
Minutes, with a verification link
Needs more setup

NFC means reading the chip in a passport or ID card with the phone. A workflow is the set of checks a session runs.

SDKs

An SDK for every platform

An SDK is a ready-made library for your language. Pick yours, copy the install line and open the short guide.

Web

Open the session URL in the browser.
JavaScript

A modal or an inline flow. Works with React, Vue, Angular, Next.js, Nuxt and Svelte.

npm install @didit-protocol/sdk-web
Iframe

Embed the flow inside your own page.

<iframe src="SESSION_URL" allow="camera; microphone; geolocation; clipboard-write; fullscreen; autoplay; encrypted-media; digital-credentials-get"></iframe>
Redirect

Send the user to the hosted page, then back to your callback.

window.location.href = session.url;

Mobile

Native screens, with NFC. Prefer these over a WebView.
iOS

Swift Package Manager or CocoaPods. SwiftUI and UIKit.

https://github.com/didit-protocol/sdk-ios.git
Android

Kotlin, Jetpack Compose and Java. Android 6.0 and later.

implementation("me.didit:didit-sdk:4.15.4")
React Native

Works with Expo through a config plugin. Needs a development build.

npm install @didit-protocol/sdk-react-native
Flutter

One package for iOS and Android.

flutter pub add didit_sdk

Server

Typed calls and webhook checks, wherever your code holds the API key.
Python

Python 3.10 and later. Sync and async.

pip install didit-sdk
Node.js

Node.js 18, Bun, Deno and edge runtimes. TypeScript types.

npm install @didit-protocol/sdk-node
Go

Go 1.22 and later. Standard library only.

go get github.com/didit-protocol/sdk-go
Java

Java 11 and later, and Kotlin. Sync and async.

implementation("me.didit:didit-java:1.0.1")
PHP

PHP 8.1 and later. Any PSR-18 client.

composer require didit-protocol/sdk-php guzzlehttp/guzzle
Ruby

Ruby 3.1 and later. Works with Rails.

gem install didit-sdk
.NET

.NET 8 or .NET Standard 2.0. Async, with dependency injection.

dotnet add package Didit

These seven sign people in with the Authentication product. Each chip opens its quickstart in the docs.

Questions

Questions from developers

How do I go from sandbox to production?
Create a live application in the console and use its API key on your server. Live and sandbox are separate applications with separate keys, so test data never mixes with real verifications.
What does the ID verification API do?
The API runs identity checks and sends the decision to your app by webhook. Checks include documents, liveness, face match and anti-money laundering (AML) screening. You can also fetch the decision at any time.
Which SDKs are available?
Web (JavaScript), iOS, Android, React Native and Flutter for the user flow. Python, Node.js, Go, Java, PHP, Ruby and .NET for your server. There are also integrations for Shopify, WordPress and WooCommerce, Salesforce, Zapier, Okta and Auth0.
Is there a free sandbox?
Yes. Sandbox sessions are never billed. Sandbox scenarios reproduce approved, declined and in-review outcomes with no real people. Each sandbox application gets a daily allowance of test sessions.
How are webhooks secured?
Each webhook is signed with HMAC-SHA256 using your webhook secret. Verify the X-Signature-V2 header, check X-Timestamp and reject anything that does not match.
Are failed webhooks retried?
Yes. Didit retries after a 5xx or 404 response, a timeout or a connection failure. It retries twice, about 1 minute later and then about 4 minutes after that. Use event_id to avoid processing the same event twice.
Can I call one check without a full session?
Yes. The standalone API runs single checks such as face match or AML screening from your server, with no session.
Can my coding agent integrate Didit?
Yes. Paste the integration prompt on this page into your coding agent, or add the MCP server at https://mcp.didit.me/mcp.
How much does it cost?
A full ID check (KYC) costs $0.33 at list. Every price is on the pricing page.
What is the difference between the hosted flow and the standalone API?
In the hosted flow, Didit shows the screens. Your server creates a session, the user completes it and you get a webhook. With the standalone API you build the screens and your server calls one check at a time.
What is the Didit MCP server?
It is a hosted server at https://mcp.didit.me/mcp that lets an AI agent use Didit. You add the URL to a client such as Claude, ChatGPT, Cursor or VS Code and log in with Didit. No API key is needed.
Where does Didit store the data my integration sends?
By default, Didit processes and stores your data in the EU. Each application keeps its data in one location chosen when you create it, and the location cannot change afterwards. Delete a session with the Delete Session API when you no longer need it, and send deletion_instruction privacy_erasure to also purge any retained biometric template for that person.
How do I retry a request without running or billing it twice?
Send an Idempotency-Key header on the write request and reuse the same key on every retry. Didit accepts it on every POST, PUT, PATCH and DELETE under /v3/. Within 24 hours, the same key with the same credential, endpoint and body returns the first response, and nothing runs or is billed a second time. A failed request is not stored, so you can fix it and retry with the same key.
How should my code read Didit API errors?
Branch on the HTTP status first and on the code field when it is present, because the text of a message can change. Error bodies do not share one envelope: most carry detail, standalone APIs usually carry error, and validation errors are keyed by field. A 500 may have no JSON body at all, so handle a body that does not parse.
Does the same API run business verification (KYB)?
Yes. One endpoint, POST /v3/session/, creates both kinds of session, and the workflow's type decides which. A Know Your Customer (KYC) workflow creates a User Verification session and a Know Your Business (KYB) workflow creates a Business Verification session. The response field session_kind says user or business. A workflow's type is set when you create it and cannot be switched afterward.

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.

Start

Start building

Add the MCP server, paste the prompt or create an account and get your sandbox key.

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