How API-First Identity Platforms Accelerate Developer Integration and Innovation
Create one workflow, open a session per user, and take the decision from a signed webhook. Didit charges per completed check: $0.33 for a full ID check, $0.20 for AML. The sandbox is free.

Contents
In this guide
Jump to the part you need.
This guide is for engineering teams that want identity checks inside their own app without a sales call. We show the Didit route: create a workflow, open a session, receive a signed webhook. A full ID check costs $0.33 and AML screening $0.20, and you pay per completed check from prepaid credit. The caveat: sandbox checks are mocked, so live tests still gate launch.
Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.
At a glance
We run identity and fraud checks behind one open API covering users, businesses and transactions. The Workflow Orchestrator, the SDKs and the MCP server carry no fee; you pay per completed check. We have 4,000+ companies.
| What you build | Didit module | Unit price | Notes |
|---|---|---|---|
| Verification workflow | Workflow Orchestrator | Free | Built once in the console or by API, versioned |
| ID document check | ID Verification | $0.15 per check | ID document verification |
| Liveness | Passive Liveness | $0.10 per check | Active Liveness is $0.15 |
| Face match 1:1 | Face Match | $0.05 per check | Selfie against the document portrait |
| Device and IP analysis | Device & IP Analysis | $0.03 per check | Part of the full ID check |
| Full ID check | KYC bundle | $0.33 per check | 0.15 + 0.10 + 0.05 + 0.03 |
| Sanctions and PEP screening | AML Screening | $0.20 per check | 1,300+ lists |
| Hosted session | Sessions API | Billed per completed check | Sandbox free and unlimited |
| Webhooks, SDKs, MCP server | Included | Free | No separate fee |
Start free in the sandbox at https://business.didit.me/, no sales call. If you work inside an AI assistant, connect the Didit MCP server instead. Every module price sits on Didit pricing, and the integration steps below match the quick start in the docs.
What you end up with, and the method we recommend
The outcome is a verification flow inside your product. Your backend creates a session for a person, your frontend hands that person to a hosted or native capture screen, and your backend receives a signed decision it can store and act on.
We recommend the documented session flow over raw standalone calls. Your backend calls the Verification API with an API key, the person completes the checks in a Didit-hosted UI or a native SDK, and the result arrives by webhook. We keep the hosted flows A/B tested for completion rate, and the SDKs already handle camera permissions, NFC reading and document capture. Keep the standalone APIs for server-to-server batch work, or for the case where you own the capture UI and want each step called directly.
Prerequisites
- A Didit account, an Organization and an Application. The Free plan gives $10 of monthly credit to the first organization created with an eligible work email for a company domain; phone codes are excluded from that credit.
- A workflow ID, from the console or from the API call in step 2.
- An API key from Developers, API keys in the console, stored server side only.
- A public HTTPS endpoint for webhooks, able to answer inside 5 seconds.
- A stable internal reference for the person, which becomes
vendor_data. - Any HTTP client if you follow the curl examples, plus a package manager for the SDKs.
Steps to integrate an API-first identity platform
-
Create the account and get an API key
Sign up at business.didit.me, create an Organization, then an Application. Keys live under Developers, API keys. The Primary key belongs to the Application; create a separate key for each service or partner so one can be revoked without touching the rest. The Verification API expects it in the
x-api-keyheader, never in a browser or a mobile bundle.The same keys can be issued without touching the console:
curl -X POST https://apx.didit.me/auth/v2/programmatic/register/ \ -H "Content-Type: application/json" \ -d '{"email": "you@yourdomain.com", "password": "StrongP@ss1"}' curl -X POST https://apx.didit.me/auth/v2/programmatic/verify-email/ \ -H "Content-Type: application/json" \ -d '{"email": "you@yourdomain.com", "code": "A3K9F2"}'The verify-email response returns
application.api_keyfor live andsandbox_application.api_keyfor the sandbox. Save the sandbox key asDIDIT_API_KEYand build against it. New keys start withsk_test_orsk_live_plus 43 URL-safe characters; keys created before that format have no prefix and still work, so never validate a key by its prefix. Reserved test domains, and addresses that cannot receive mail, return 400 withemail_undeliverable. -
Create the workflow
A workflow is the ordered list of checks a session runs. Build it from a template, describe it in plain language, or start empty in the console. A Simple workflow runs steps in a fixed order; a node-based workflow branches on results. The same object is created by API, which is the runnable example below:
curl -X POST https://verification.didit.me/v3/workflows/ \ -H "x-api-key: $DIDIT_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "workflow_label": "Standard KYC", "workflow_type": "kyc", "features": [ {"feature": "OCR"}, {"feature": "LIVENESS", "config": {"face_liveness_method": "PASSIVE"}}, {"feature": "FACE_MATCH"}, {"feature": "AML"} ] }'Persist the returned
workflow.id. Every session you open points at it, so you build and version it once. -
Create a session
A session is one person going through one workflow. This is the call your backend makes at signup, at business onboarding or at re-authentication:
curl -X POST https://verification.didit.me/v3/session/ \ -H "x-api-key: $DIDIT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"workflow_id": "$WORKFLOW_ID", "vendor_data": "user-42", "callback": "https://myapp.com/kyc/return"}'The response holds
session_id,session_tokenand the hosted URL. Read that field from the response instead of hardcoding a name: the quick start calls iturl, the SDK guide calls itverification_url, and/openapi-25.jsonis the contract.vendor_datais your own stable person reference, so pass the user ID your backend already owns. -
Show the flow to the person
Pick one surface. On web, the JavaScript SDK
@didit-protocol/sdk-webopens the flow in a modal or inline and works with React, Vue, Angular, Next.js, Nuxt, Svelte and plain JavaScript. A redirect sends the person to the hosted URL and returns them tocallback; the docs point to redirect for cross-device flows and for cases where camera access inside an iframe is a problem. An iframe is the simplest setup, with no npm install, and suits a quick prototype. On iOS, Android, React Native and Flutter, use the native SDK and start withsession_token; native keeps NFC passport reading and camera control that a WebView drops. -
Register a webhook destination
curl -X POST https://verification.didit.me/v3/webhook/destinations/ \ -H "x-api-key: $DIDIT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"label": "Production", "url": "https://myapp.com/webhooks/didit", "subscribed_events": ["status.updated", "data.updated"], "webhook_version": "v3"}'Keep the returned
secret_shared_keyasDIDIT_WEBHOOK_SECRET;GET /v3/webhook/destinations/{destination_uuid}/returns it again. There is no wildcard, so list every event family you want. You can create multiple destinations to fan out to different URLs. -
Verify the signature, then act on the event
Read the raw body before parsing it. Recompute HMAC-SHA256 over the sorted, Unicode-preserved canonical JSON, and compare in constant time with
X-Signature-V2. Reject whenX-Timestampis more than 300 seconds from now. De-duplicate onevent_id, answer 2xx inside 5 seconds, and apply the status to your own database. -
Read the decision as a fallback
curl https://verification.didit.me/v3/session/{session_id}/decision/ \ -H "x-api-key: $DIDIT_API_KEY"V3 returns plural arrays:
id_verifications[],liveness_checks[],face_matches[],aml_screenings[],poa_verifications[]and the rest, because one workflow can carry several steps of the same type. Never assume the singular fields of V2. -
Test in the sandbox, then switch the key
Sandbox checks are mocked and free. Arm a scenario to force a known outcome, run your approval path and your decline path, then swap
DIDIT_API_KEYfor the live key once the organization has credit. An organization created through the API starts at $0, so add credit before that swap.
Expected output
Creating the session returns the identifiers you need plus the hosted URL:
{
"session_id": "uuid",
"session_token": "jwt",
"verification_url": "https://verify.didit.me/...",
"status": "Not Started"
}
When the person finishes, your endpoint receives a signed event. The envelope carries the status and, for Approved, Declined, In Review or Abandoned, the full decision:
{
"event_id": "uuid",
"session_id": "uuid",
"status": "Approved",
"webhook_type": "status.updated",
"created_at": 1627680000,
"timestamp": 1627680000,
"application_id": "uuid",
"environment": "sandbox",
"workflow_id": "uuid",
"workflow_version": 1,
"vendor_data": "user-42"
}
Status values are exact and case-sensitive, including Kyc Expired with a single capital K. A sandbox event also carries sandbox_scenario when you armed one, and it is null on live sessions.

Inputs and outputs
| Call | Input you supply | Output you get |
|---|---|---|
POST /v3/workflows/ | workflow_label, workflow_type, features[] | workflow.id, workflow version |
POST /v3/session/ | workflow_id, vendor_data, callback | session_id, session_token, hosted URL |
POST /v3/webhook/destinations/ | label, url, subscribed_events, webhook_version | destination UUID, secret_shared_key |
| Webhook delivery | signed POST to your endpoint | status, decision, vendor_data, event_id |
GET /v3/session/{session_id}/decision/ | session ID | V3 decision arrays per completed feature |
Failure cases and recovery
| Symptom | Cause | Recovery |
|---|---|---|
| 401 on verification.didit.me | Key wrong, malformed, revoked or expired | Re-fetch it through the login and organizations endpoints, or issue a new key in the console |
| 403 on verification.didit.me | No x-api-key header, a scoped key without access to this resource, or a call from outside the key's IP list | Use a key that carries that access |
403 with application_deleted | The key's application was deleted | Do not retry; the application and its keys no longer exist |
| 400 on session creation | Invalid workflow_id | Re-read workflow.id from the create call |
| 404 on a session route | The session sits outside the scoped key's workflows or statuses | Use a key whose limits include that session |
| 429 | Rate limit | The response carries a wait field in seconds; back off, then retry |
| No webhook arrives | Handler slower than 5 seconds, or answered 5xx or 404 | We retry twice, about 1 and 4 minutes later, then drop the delivery. Resend it from the destination's delivery log |
400 email_undeliverable on register | Reserved test domain or an address that cannot receive mail | Use a real inbox on a company domain |
Paid steps and review boundaries
Creating a workflow is free. Creating a session costs nothing on its own; billing is per completed check. The sandbox is free and unlimited, and every check inside it is mocked, so a thousand test sessions cost nothing.
Two boundaries need a person, not an agent:
- Switching to the live key. That change starts real charges against your credit, so it needs the explicit confirmation of whoever owns the account.
- Any session that lands in In Review. A person makes that decision before you act on it.
Billing stays predictable: usage is paid from the month's plan credit first, then from top-ups. Monthly plan credit does not roll over; top-ups last 12 months. Growth is $99 a month with $115 of credit and 4% off every Didit price. Scale is $299 a month with $350 of credit and 10% off. Enterprise is a custom annual contract from $15,000 a year.
Worked cost example
Take the workflow from step 2: OCR, passive liveness, face match and AML. Per completed check the arithmetic is 0.15 + 0.10 + 0.05 + 0.20 = $0.50.
At 5,000 completed checks a month: 5,000 x $0.50 = $2,500.00 at list price.
On Scale, every Didit price drops 10%: 0.15 x 0.90 = $0.135, 0.10 x 0.90 = $0.09, 0.05 x 0.90 = $0.045, 0.20 x 0.90 = $0.18, which sums to $0.45 per check. 5,000 x $0.45 = $2,250.00, plus the $299 monthly fee.
Run the full ID check instead of the separate steps and the number changes: 0.15 + 0.10 + 0.05 + 0.03 = $0.33 per check, so 5,000 x $0.33 = $1,650.00 with no AML screen on the session.
Add-ons move the number only when you switch them on: NFC chip reading $0.15, Proof of Address $0.20, ongoing AML monitoring $0.07 per person a year, wallet screening $0.15 per screening. Phone codes are the carrier's price for the country and channel plus Didit's $0.02 fee. A published price does not establish production availability, so check the product docs for your countries and methods before you commit to a budget line.

Why the API-first route fits how teams build
The docs build the workflow both ways: from a template or a plain-language description in the console, or with the documented POST /v3/workflows/ call. Both return the workflow ID that every session points at, so a product engineer and a backend engineer can work on the same flow without a translation step. We describe the target as shipping in 5 minutes, or one prompt with your coding agent.
For an agent, the documented path is the integration prompt at docs.didit.me/integration/integration-prompt. It runs inside your repository, reads the code first, proposes only the modules that fit the use case, and stays in the sandbox until you confirm production. The hosted MCP server at https://mcp.didit.me/mcp goes further: it is read-and-write, so an agent can create workflows, open sessions, register webhook destinations and check the credit balance, with your review on each write. It is free, and sign-in is OAuth 2.1 with PKCE, so no key sits in a config file.

Modularity is the other half of that fit. 25+ composable modules sit on one public price list, so an age gate can run Age Estimation at $0.10 without buying an AML suite, while a crypto exchange builds the $0.68 crypto bundle of KYC, AML and wallet screening. A workflow of OCR, passive liveness, face match and AML runs at $0.50 per check; nothing you did not add is billed.
The platform numbers that matter once you are live: 220+ countries and territories, 14,000+ document types, 54 languages in the verification flow and native SDKs, 200+ fraud signals per session, sub-2-second p99 inference, and a 99.99% availability target. Certifications are SOC 2 Type 2 and ISO/IEC 27001:2022, with GDPR, DORA, MiCA, AMLD6 and eIDAS 2.0 alignment stated on the site.
Sources
- Didit docs: Quick start
- Didit docs: API authentication
- Didit docs: Three-product integration prompt
- Didit docs: SDKs and integrations
- Didit docs: Webhooks and HMAC signing
- Didit docs: Sandbox test data and scenarios
- Didit docs: MCP server overview
- Didit pricing page and pricing as JSON, read November 26, 2026
- Didit docs: pricing and billing rules
- Didit MCP setup for every client and integration prompt page
- Didit Business Console
Next step: open the sandbox at https://business.didit.me/, build the workflow from step 2, and run one mocked session end to end. No sales call, and the switch to the live key stays your decision.
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alejandro Rosas
Co-founder and CTO

Questions
Frequently asked questions
How long does it take to integrate an API-first identity platform?
On Didit the documented path is account, workflow, session, webhook. Programmatic account creation takes two calls, register and then verify the emailed code, while the workflow, the session and the webhook destination each take one documented API call. We describe the target as shipping in 5 minutes, or one prompt with your coding agent. There is no sales call in the path, and the sandbox is free and unlimited while you build.
How much does an API-first identity integration cost?
You pay per completed check, from prepaid credit. On Didit a full ID check is $0.33 (ID document $0.15, passive liveness $0.10, face match $0.05, device and IP $0.03), AML screening is $0.20, and the workflow orchestrator, the SDKs and the MCP server cost nothing. The sandbox is free and unlimited.
Do I need a sales call to get an API key?
No. Sign up at business.didit.me with a work email and copy the key from Developers, API keys, or create one with the two programmatic calls in the docs. Every Application gets a Primary key. You can create additional scoped keys for services and partners.
What is the difference between the sandbox key and the live key?
A sandbox key starts with sk_test_ and runs every check as a mock, including armed scenarios such as a declined AML hit. A live key starts with sk_live_ and charges your organization's credit per completed check. Keys issued before the prefix format have no prefix and still work, so never validate a key by its prefix.
How do I receive the verification decision?
Register a webhook destination with the event families you want, and we post a signed event when the session status changes, with the decision included for Approved, Declined, In Review and Abandoned. If an event is lost, read GET https://verification.didit.me/v3/session/{session_id}/decision/. V3 returns plural arrays such as id_verifications[] and aml_screenings[].
What happens if my webhook endpoint is slow or returns an error?
If the handler takes more than 5 seconds or answers 5xx or 404, we retry twice, roughly 1 and 4 minutes later, then drop the delivery. You can resend it from the destination's delivery log. Answer 2xx as soon as you hold the raw body, and process the event idempotently on event_id.
How do I verify a Didit webhook signature?
Recompute an HMAC-SHA256 over the sorted, canonical JSON body with the destination's secret_shared_key and compare it in constant time with the X-Signature-V2 header. Reject the request when X-Timestamp is more than 300 seconds from now. During a secret rotation, also accept a match on X-Signature-V2-Previous, which is sent for 24 hours.
Can an AI assistant build the integration for me?
Yes. The integration prompt at docs.didit.me/integration/integration-prompt runs in your repository, inspects the code, proposes only the modules that fit, and stays in the sandbox until you confirm production. The hosted MCP server at https://mcp.didit.me/mcp lets an assistant create workflows, sessions and webhook destinations after an OAuth sign-in, and it is read-and-write, so keep tool-call review on.
Does sandbox testing cost anything?
No. Sandbox testing is free and unlimited on every Didit plan and every check is mocked. The Free plan adds $10 of monthly credit for the first organization created with an eligible work email for a company domain, phone verification codes are excluded from that credit, and unused monthly credit does not roll over.
Can I buy only the checks I need?
Yes. We price each module on its own: ID Verification $0.15, passive liveness $0.10, face match $0.05, AML screening $0.20, NFC chip reading $0.15, and a workflow runs only the steps you add. That is why a plain document check costs $0.15 while the full ID check costs $0.33.
How many countries does Didit cover?
We state 220+ countries and territories, 14,000+ document types and 54 languages in the verification flow and native SDKs. A published price does not establish production availability, so check the product docs for the countries and methods you need before launch.
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


