Skip to main content

API-First Identity Platform: Integration and Cost

An API-first identity platform runs identity and fraud checks behind one public API, so you compose the checks you need. Didit bills per completed check, full KYC at $0.33, and the sandbox is free and unlimited.

API-First Identity Platform: Integration and Cost

Contents

In this guide

Jump to the part you need.

An API-first identity platform puts identity and fraud checks behind a public API, so you compose the checks you need in your own code instead of buying a fixed package. This page is the integration path we recommend at Didit: get a key, build a workflow, create a session, take the decision. A full KYC check costs $0.33. The caveat is that you own the integration, so webhook verification and idempotency stay your job.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

API-first verification on Didit, from build to decision
DecisionWhat you doWhere it happensPrice
Choose the checksBuild a workflow from a template or from emptyBusiness Console or POST /v3/workflows/Workflow orchestrator included, free
Start a verificationCreate a session for a user or a businessYour server, one callBilled per completed check
Full KYC checkID document plus passive liveness plus face match 1:1 plus device and IPHosted flow, SDK or iframe$0.33
Add screeningAdd AML to the same workflowSame session$0.20 per AML screening
Receive the decisionTake the status.updated webhook, or read the decision endpointYour webhook endpointNo extra charge
Rehearse itRun any workflow with mocked resultsSandbox applicationFree and unlimited sandbox testing

Start free in the sandbox at business.didit.me with no sales call, and read the list prices at didit.me/pricing. The product this guide builds is User Verification. If you work with a coding agent, connect Didit to your assistant through the MCP server.

MCP setup for every client

What changes when the checks are API-first

An API-first platform sells the primitives and lets you arrange them. On Didit that is 25+ composable modules behind one public API: ID verification, passive and active liveness, face match 1:1, face search 1:N, NFC chip reading, AML screening and monitoring, proof of address, age estimation, phone and email verification, and database validation. Didit supports 220+ countries and territories overall, and 4,000+ companies run their checks on it.

The integration itself comes down to five decisions, and each one has a published price or none at all.

Integration decisions, options and price
DecisionOptions you haveWhat it costs
Which checks runThe features in your workflow: OCR, liveness, face match, AML, proof of address, NFCEach module has its own published price, and a full KYC check is $0.33
How steps are orderedA Simple workflow in a fixed order, or a Node-based workflow that branches on an earlier resultWorkflow Orchestrator included, free
Where the person finishes the flowHosted flow URL, a native SDK or an iframeNot a separate line in the price book
How you receive the resultstatus.updated webhook, or the decision endpoint as a fallbackNot a separate line in the price book
How you build against itREST with x-api-key, five SDKs, or the MCP serverSDKs and MCP server included, free

The arrangement step matters as much as the modules. The Workflow Orchestrator is free and gives you two shapes. A Simple workflow runs its steps in a fixed order, which is what most onboarding flows need. A Node-based workflow branches on the result of an earlier step, so a clean ID check can skip a review branch while a document mismatch routes to one. You can build either in the visual editor without writing orchestration code, then call the published workflow from the API.

Fraud is the second reason we build this way. Deepfakes, screen replay, printed copies and synthetic identities change faster than annual contracts do. Passive liveness and active liveness run inside the session, alongside 200+ real-time fraud signals per session, and the decision comes back as structured data your system can act on. When we change what a check looks for, the workflow keeps the same call signature and you keep the same integration.

Developer-first is the third. The verification API is REST over HTTPS with an x-api-key header, the OpenAPI contract is public, and there are five SDKs. The MCP server, hosted at https://mcp.didit.me/mcp with OAuth sign-in, connects an AI assistant to the same API.

Video cover showing how to use Didit with the MCP server from an AI assistant
Didit with MCP: the same API surface, reachable from a coding assistant.

Prerequisites before your first live session

  • A Didit organization. Sign up at business.didit.me with a work email on a company domain to receive the monthly credit, or register programmatically, in which case the organization starts at $0 until you top up.
  • A private place for the API key. Treat it as a server-side secret and never ship it to a browser or a mobile bundle.
  • The two host names straight: https://verification.didit.me takes x-api-key, and https://apx.didit.me takes an Authorization: Bearer JWT. Mixing them is the most common first error.
  • A callback URL for the hosted flow, and an HTTPS endpoint that can answer a webhook within 5 seconds.
  • A published workflow. A session is always created against a workflow_id, and the workflow type decides whether you get a user or a business session.

Six steps from zero to a live decision

This is the order we recommend. Each step is documented, and each one has a fallback so a failure does not block the next.

  1. Register an organization programmatically and keep the sandbox key.
  2. Create a workflow and persist its workflow_id.
  3. Create a session and send the user to the returned URL.
  4. Register a webhook destination and store its signing secret.
  5. Verify the signature on every delivery and apply the decision.
  6. Read the decision endpoint as a fallback.

Step 1: register and keep both API keys

Two calls, no console. The register call emails a 6-character code with a 10-minute lifetime. The password needs at least 8 characters, one uppercase, one lowercase, one digit and one special character.

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 call returns access_token, refresh_token, organization, application.api_key and sandbox_application.api_key. Persist the sandbox key as DIDIT_API_KEY to build for free, because every check is mocked, and the live key as DIDIT_LIVE_API_KEY for later. New keys start with sk_live_ or sk_test_, but keys created before that format have no prefix, so never validate a key by its prefix.

Step 2: create the workflow

The features array is the whole package decision. Ask for AML here and it runs in the same session at $0.20 per screening. Leave it out and you never pay for it.

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 workflow.id. That UUID is what every session points at.

Step 3: create the session

One call starts the verification. vendor_data is your own stable identifier for the person or business, and sending it binds the session to an entity so duplicate detection works across sessions.

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 carries session_id, url and session_token. Redirect the user to url, or open it in the SDK or an iframe. Didit appends ?verificationSessionId= and status= to your callback when the flow finishes. If your application has allowed domains set, an http or https callback must sit on one of those origins or creation fails with 400 on callback. Custom deep-link schemes are always accepted.

Step 4: register the webhook destination

Do this before you send real traffic, so no decision is lost while you build the handler. label and url are required, and there is no wildcard, so list every event family you want.

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/api/webhooks/didit", "subscribed_events": ["status.updated", "data.updated", "user.status.updated", "user.data.updated"], "webhook_version": "v3"}'

Save the returned secret_shared_key as DIDIT_WEBHOOK_SECRET. If you lose it, GET /v3/webhook/destinations/{destination_uuid}/ returns it again.

Step 5: verify the signature and apply the decision

Read the raw request body before you parse JSON. Verify X-Signature-V2, which is HMAC-SHA256 over the sorted canonical JSON, and check that the X-Timestamp is within 300 seconds of now. Compare with a constant-time comparison, and accept a match on the -Previous header too, so a rotated secret does not break delivery during a deploy. De-duplicate on event_id, answer with a 2xx inside 5 seconds, and branch on status using the exact strings: Approved, Declined, In Review, In Progress, Not Started, Expired, Abandoned, Kyc Expired, Resubmitted, Awaiting User.

Step 6: read the decision as a fallback

If a webhook never arrives, or you want to reconcile, fetch the full decision. The key needs the read:sessions privilege.

curl https://verification.didit.me/v3/session/$SESSION_ID/decision/ \
-H "x-api-key: $DIDIT_API_KEY"

Expected output

Treat session_kind as the first field you read, because it tells you which decision shape you have. On user you get plural arrays such as id_verifications[], liveness_checks[], face_matches[], aml_screenings[] and poa_verifications[]. On business you get registry_checks, document_verifications and key_people_checks. Both kinds share status, decision_trace, linked_records, reviews and biometric_retention. A feature that did not run is absent or null, never a placeholder, so never assume a singular V2 field exists.

A verification session overview in the Didit Business Console with its warnings listed
The same decision you receive by webhook, shown in the Business Console with its warnings.
Inputs you send and outputs you receive
FieldDirectionWhat it does
workflow_idInput, requiredUUID of the published workflow. The workflow type decides KYC or KYB, there is no separate KYB endpoint
vendor_dataInput, recommendedYour identifier for the person or business, used for duplicate detection
callbackInputWhere the hosted flow sends the user when it ends
metadata, tagsInputEchoed back in responses and webhooks, not shown to the user, up to 10 tags of 50 characters
expected_detailsInputPrefills expected name, date of birth, nationality or company registry fields, mismatches become decision warnings
session_expiration_timeInputLink lifetime in seconds, from 3600 to 2419200, overriding the workflow setting for this session
session_id, url, session_tokenOutputCreated session identifiers, plus the URL the user opens
session_kind, status, decision_traceOutputWhich decision shape you have, the verdict, and how it was reached

Failure cases and how to recover

Errors you will hit, what they mean and the fix
Status or symptomMeaningRecovery
401 on verification.didit.meThe x-api-key is wrong, malformed, revoked or expiredLog back in with POST /auth/v2/programmatic/login/, then read the application through /auth/v2/organizations/me/ and copy api_key
403 on verification.didit.meNo key header, a scoped key without access to this resource, or a key used from an address outside its IP listUse a key that holds that access in Developers, then API keys
403 with application_deletedThe key's application was deletedDo not retry. Use a key of an application that exists
400 on session createUnknown workflow_id, or a callback outside the allowed domainsRe-read the workflow UUID and move the callback onto an allowed origin
400 with email_undeliverableThe registration address cannot receive a code, including reserved test domainsUse a real inbox you control
404 on a session routeThe session sits outside the scoped key's workflows or statusesUse a key whose limits include that session
429Rate limit, the response carries a wait field in secondsBack off for that long, then retry
Webhook handler over 5 seconds, or 5xx or 404The delivery failedDidit retries twice, after about 1 and 4 minutes, then drops it. Resend from the destination delivery log, and reconcile with the decision endpoint

What is free, what is paid, and where review starts

Sandbox work is free and unlimited on every plan. Nothing in the sandbox is billed, because every check is mocked, so build the whole flow there first. Live checks bill per completed check from prepaid credit, and a check bills when it finishes with a result.

The per-check list prices for the modules this guide uses: full KYC $0.33, ID document alone $0.15, passive liveness $0.10, active liveness $0.15, face match 1:1 $0.05, NFC chip reading $0.15 as an add-on, AML screening $0.20, ongoing AML monitoring $0.07 per person per year, proof of address $0.20, device and IP analysis $0.03, and email verification $0.02. Wallet screening is $0.15 per screening; you can also bring your own screening provider and run it inside Didit. Business verification is priced by country and data tier (Lite, Shareholders, UBOs), from $2.00 per company, and each owner or officer takes a linked full ID check plus person AML billed per person.

Plans: Free is $0 a month with $10 of credit for eligible organizations, meaning the first organization created in the console with a work email on a company domain. Credited usage is not rolled over, and an organization created through the API starts at $0. Growth is $99 a month or $1,128 a year, with $115 of credit and 4 percent off every price. Scale is $299 a month or $3,408 a year, with $350 of credit and 10 percent off every price. Enterprise starts at $15,000 a year. Monthly credit does not roll over, and top-ups last 12 months.

The review boundary is yours to set. Most decisions come back automatically, and an automated decision can enter In Review for a person to handle. The decision record shows who decided through decision_trace, with decided_by set to automatic, manual or investigator, and any hand change appears in status_override next to automatic_status. Pick which statuses your product treats as a pass, and route In Review to your own queue or let the console hold it.

Video cover explaining Didit credits, auto-recharge and volume discounts
How billing works: credit, top-ups and plan discounts, explained in one lesson.

Worked cost example

Take a product that runs 3,000 full KYC checks and 500 AML screenings in a month on Growth, where every price is 4 percent lower.

  • KYC: 3,000 x $0.3168 = $950.40
  • AML: 500 x $0.192 = $96.00
  • Total usage: $950.40 + $96.00 = $1,046.40
  • The plan's $115.00 of credit pays the first $115.00, and a top-up pays $1,046.40 minus $115.00 = $931.40
  • The plan fee of $99.00 is charged separately from usage

At list prices the same month is 3,000 x $0.33 = $990.00 plus 500 x $0.20 = $100.00, so $1,090.00.

If the same product also onboards 100 businesses, the KYB extension runs at the $2.00 minimum per company: 100 x $2.00 = $200.00 for registry retrieval. Registry pricing varies by country and data tier, so treat that $200.00 as a floor rather than a quote. Each owner or officer you verify adds a linked full ID check at $0.33 and person AML at $0.20, so 100 businesses with one owner each is $200.00 + (100 x $0.33) + (100 x $0.20) = $200.00 + $33.00 + $20.00 = $253.00 of KYB-related usage at minimum prices.

Sources

Next step: open the sandbox at https://business.didit.me/, create your organization, and publish your first workflow. No sales call, and the first session is one API call away.

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

What is an API-first identity platform?

An API-first identity platform is a service that exposes identity checks as API calls you arrange yourself, instead of selling one fixed verification package. On Didit you create a workflow that lists the modules you want, then create a session against it and receive a structured decision. The workflow orchestrator, the SDKs and the MCP server are included at no price.

How do I start integrating Didit?

Register an organization, either in the console or with two calls to apx.didit.me, and keep the sandbox API key. Create a workflow, create a session against its workflow_id, and register a webhook destination before real traffic. The full sequence is documented in the Didit Quick Start guide.

What does a full KYC check cost on Didit in 2026?

A full KYC check on Didit is $0.33 at list price: ID document verification at $0.15, passive liveness at $0.10, face match 1:1 at $0.05 and device and IP analysis at $0.03. Growth applies a 4 percent discount, which makes it $0.3168, and Scale applies 10 percent, which makes it $0.297.

What do the Didit plans cost, and what is the minimum commitment?

Self-serve plans start at $0 a month on Free, with $10 of eligible monthly credit for the first organization created in the console with a work email on a company domain. You pay per completed check from prepaid credit, and unused monthly credit does not roll over. Growth is $99 a month, Scale is $299 a month, and annual contracts start on the Enterprise plan at $15,000 a year.

What is the difference between a sandbox key and a live key?

A sandbox key, prefixed sk_test_ on new keys, creates sessions where every check is mocked, so nothing bills and no real person is verified. A live key, prefixed sk_live_, runs real checks against your credit balance. Both are returned by the same verify-email call, and keys issued before the prefix format keep working.

Is sandbox testing limited on Didit?

Sandbox testing is free and unlimited on every Didit plan. Every check is mocked in the sandbox, so no live person is verified and nothing is billed. You can rehearse the full flow, including webhook deliveries, before you switch to a live key.

How do I get a verification decision if I miss the webhook?

Call GET /v3/session/{session_id}/decision/ with a key that holds read:sessions. It returns the same data the webhook carried, including status, decision_trace and the per-feature arrays. Use it as your reconcile path whenever a delivery is missing or your handler failed.

What happens when my webhook endpoint is slow or returns an error?

Didit retries twice, after about 1 and 4 minutes, and then drops the delivery. Answer inside 5 seconds, de-duplicate on event_id, and resend from the destination delivery log when you need to. A handler that takes longer than 5 seconds counts as a failure even if it eventually succeeds.

Can I choose which checks run for each user?

Yes. The checks live in the workflow, and the workflow is a parameter of every session, so you can publish several workflows and pick one per flow or per market. A KYC workflow creates a user session and a KYB workflow creates a business session from the same endpoint. Node-based workflows can branch on an earlier result before later steps run.

Is Didit certified and compliant?

Didit holds SOC 2 Type 2 and is ISO/IEC 27001:2022 certified under certificate ES144068, with GDPR, DORA, MiCA, AMLD6 and eIDAS 2.0 named among the regimes it supports. The SOC 2 Type 2 report was issued on 2026-07-30 and is shared under NDA. Spain's Tesoro, Banco de España and SEPBLAC have attested the method as safer than in-person verification.

Can I connect Didit to Claude or another AI assistant?

Yes. The Didit MCP server is hosted at https://mcp.didit.me/mcp with OAuth sign-in and is free, so an AI assistant connects to the same API from your editor or chat client. For a full end-to-end build, the integration prompt page gives your coding agent one copy-paste recipe.

Do I have to store identity documents myself?

Didit returns the decision and structured fields. Your retention and storage responsibilities depend on your integration and applicable requirements. The decision's biometric_retention object gives the date the live biometric data of that session is deleted.

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.