Skip to main content

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.

How API-First Identity Platforms Accelerate Developer Integration and Innovation

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 an API-first integration uses on Didit, with published list prices
What you buildDidit moduleUnit priceNotes
Verification workflowWorkflow OrchestratorFreeBuilt once in the console or by API, versioned
ID document checkID Verification$0.15 per checkID document verification
LivenessPassive Liveness$0.10 per checkActive Liveness is $0.15
Face match 1:1Face Match$0.05 per checkSelfie against the document portrait
Device and IP analysisDevice & IP Analysis$0.03 per checkPart of the full ID check
Full ID checkKYC bundle$0.33 per check0.15 + 0.10 + 0.05 + 0.03
Sanctions and PEP screeningAML Screening$0.20 per check1,300+ lists
Hosted sessionSessions APIBilled per completed checkSandbox free and unlimited
Webhooks, SDKs, MCP serverIncludedFreeNo 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

  1. 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-key header, 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_key for live and sandbox_application.api_key for the sandbox. Save the sandbox key as DIDIT_API_KEY and build against it. New keys start with sk_test_ or sk_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 with email_undeliverable.

  2. 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.

  3. 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_token and the hosted URL. Read that field from the response instead of hardcoding a name: the quick start calls it url, the SDK guide calls it verification_url, and /openapi-25.json is the contract. vendor_data is your own stable person reference, so pass the user ID your backend already owns.

  4. Show the flow to the person

    Pick one surface. On web, the JavaScript SDK @didit-protocol/sdk-web opens 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 to callback; 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 with session_token; native keeps NFC passport reading and camera control that a WebView drops.

  5. 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_key as DIDIT_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.

  6. 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 when X-Timestamp is more than 300 seconds from now. De-duplicate on event_id, answer 2xx inside 5 seconds, and apply the status to your own database.

  7. 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.

  8. 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_KEY for 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.

A session overview in the Didit Business Console with its risk warnings
The same decision you receive by webhook, shown on the session overview in the console.

Inputs and outputs

Every call you make and what it returns
CallInput you supplyOutput you get
POST /v3/workflows/workflow_label, workflow_type, features[]workflow.id, workflow version
POST /v3/session/workflow_id, vendor_data, callbacksession_id, session_token, hosted URL
POST /v3/webhook/destinations/label, url, subscribed_events, webhook_versiondestination UUID, secret_shared_key
Webhook deliverysigned POST to your endpointstatus, decision, vendor_data, event_id
GET /v3/session/{session_id}/decision/session IDV3 decision arrays per completed feature

Failure cases and recovery

Symptoms the docs list, and the fix for each
SymptomCauseRecovery
401 on verification.didit.meKey wrong, malformed, revoked or expiredRe-fetch it through the login and organizations endpoints, or issue a new key in the console
403 on verification.didit.meNo x-api-key header, a scoped key without access to this resource, or a call from outside the key's IP listUse a key that carries that access
403 with application_deletedThe key's application was deletedDo not retry; the application and its keys no longer exist
400 on session creationInvalid workflow_idRe-read workflow.id from the create call
404 on a session routeThe session sits outside the scoped key's workflows or statusesUse a key whose limits include that session
429Rate limitThe response carries a wait field in seconds; back off, then retry
No webhook arrivesHandler slower than 5 seconds, or answered 5xx or 404We retry twice, about 1 and 4 minutes later, then drop the delivery. Resend it from the destination's delivery log
400 email_undeliverable on registerReserved test domain or an address that cannot receive mailUse a real inbox on a company domain

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.

Explainer screen on Didit billing, credits and volume discounts
Credits, auto-recharge and volume discounts, the part of the build that decides your monthly number.

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.

Didit Academy lesson showing the MCP server connected to an AI client
An agent connected to the Didit MCP server, building a KYC workflow from one prompt.

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

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.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alejandro Rosas

Co-founder and CTO

Alejandro Rosas

Alejandro Rosas

Co-founder and CTO

About Didit

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.

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.