Skip to main content

Automate Didit KYC in n8n: Step-by-Step Integration Guide

Create a Didit KYC session from n8n, send the hosted link, and write back the result from a verified webhook. Full KYC costs $0.33 per completed check, AML screening costs $0.20, and sandbox testing is free.

Automate Didit KYC in n8n: Step-by-Step Integration Guide

Contents

In this guide

Jump to the part you need.

If your team already runs n8n for onboarding, support or risk operations, Didit fits in as two entry points: an HTTP Request node that creates a session and a Webhook node that receives the decision. A full KYC check costs $0.33 and AML screening $0.20, and the sandbox is free on every plan. The caveat sits in the receiver: it must verify the signature and record the event before it acknowledges delivery, then route on the status and write back safely.

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

Didit on n8n: routes, endpoints and prices
ItemDetail
ResultAny n8n trigger starts a Didit session, and the decision is written back into n8n by webhook or by a decision fetch.
Route 1, API recipeHTTP Request node calls POST https://verification.didit.me/v3/session/ with the x-api-key header.
Route 2, hosted linkPublish the workflow in the Business Console and send its hosted URL from n8n. Automated lookup needs the individual session_id.
Full KYC check$0.33 per completed check: ID $0.15 + passive liveness $0.10 + face match $0.05 + device and IP $0.03.
AML screening$0.20 per check.
SandboxFree and unlimited on every plan, with every check mocked.
Plumbing costDidit MCP server and Workflow Orchestrator are free.

What the integration does

You pick a trigger that already exists in your n8n instance: a form submission, a CRM stage change, an internal command, a schedule. That trigger sends a small JSON body to us and gets back a session URL. The person opens the URL, finishes the hosted flow, and we post the result to an n8n Webhook node. Your workflow then writes the outcome to your database, tags the contact in your CRM, posts a team notification for manual review, or blocks the account.

The same pattern covers user verification (KYC) and business verification (KYB), because POST /v3/session/ is a single endpoint and the workflow type decides which kind of session is created. There is no separate KYB endpoint to learn.

Four paths make up a working build. Optional nodes are labelled.

  1. Trigger to link delivery: your trigger, then HTTP Request (create session), then store session_id on the record, then a Send Email or CRM node (optional) that sends url.
  2. Verifier and receiver: a small server-side function at the public URL you register checks that X-Timestamp is within 300 seconds of its clock and verifies X-Signature over the exact request body bytes. It then validates the parsed event and forwards the four inbox fields to a separately authenticated n8n Webhook. The Postgres node inside n8n is the only writer of the inbox row. A Respond to Webhook node answers 200 for either successful insert outcome and 5xx when durable acceptance fails, and the verifier relays that response to us within five seconds. No business logic runs there.
  3. Processor: a separate n8n workflow that atomically claims pending or expired inbox rows with a lease expiry and a claim token, then switches on webhook_type. status.updated goes to the current-decision fetch, the status Switch and the access policy. data.updated goes to a decision fetch and field refresh and completes the inbox row without entering the status Switch and without opening a review task. It marks each row complete once its writes succeed and the claim token still matches.
  4. Scheduled reconciliation to decision fetch: Schedule Trigger (optional, for sessions you have not resolved), then a database node that lists unresolved sessions plus any session that still governs access, including Approved, then acquire the same per-session lock as the processor, and inside the lock an HTTP Request (GET decision) followed by the same write nodes.
A verification session overview with its warnings in the Didit Business Console
The session an n8n workflow just created, with the warnings a Switch node or a reviewer reads.

Two routes, pick one

Route 1: the API recipe (most control)

Two HTTP nodes and one Webhook node. Best when your n8n workflow owns the business logic: who gets verified, what happens on Declined, how long a session stays open. Everything in this page builds that route.

Didit MCP for AI assistants

Separate from n8n, we host an MCP server at https://mcp.didit.me/mcp with OAuth sign-in, and it is free on every plan. MCP is how AI assistants and agents reach Didit without hand-written HTTP calls. What we publish is the server URL, the OAuth sign-in and the price; setup for each client lives on our MCP page, so read it for the client you actually use rather than assuming one client behaves like another. Keep the API recipe for anything that must land deterministically in your database.

Academy lesson cover titled Use Didit with MCP
The Didit Academy lesson on using Didit with MCP.

Route 2: the hosted link (no code)

Publish a workflow in the Business Console and copy its shareable verification link. n8n sends that link in an email or writes it to a CRM field, and operators review those sessions in the Business Console. There is no automatic write-back. For automated lookup, n8n needs the individual session_id, which you get by creating the session through the API or by capturing and storing it from a verified session webhook; a bare shared link gives n8n no id to call the decision endpoint with.

Prerequisites

What you need before the first run
RequirementWhat exactlyWhere it comes from
Didit planAny plan works. The Free plan gives $10.00 of credit each month to the first organization created with an eligible work email for a company domain. Sandbox testing is free and unlimited on every plan. Phone codes are excluded from Free plan credit.Didit pricing
Didit applicationOne Application inside your Organization. Workflows and API keys are scoped to an Application.Business Console, business.didit.me
API keyThe Primary key, or a new key with only the access that workflow needs. New keys start with sk_live_ or sk_test_ followed by 43 URL-safe characters.Developers, then API keys
Key permissionsSessions need the key attached to the node. Decision reads need read:sessions, and a scoped key can also be limited to certain workflows or statuses, which shows up as a 404 rather than a 403.API authentication
Workflow IDThe workflow UUID. The workflow type decides KYC or KYB.Workflows in the console or POST /v3/workflows/
n8n instanceSelf-hosted or cloud, with the HTTP Request, Webhook, Code, IF or Switch nodes available.Your n8n workspace
Public HTTPS endpointA public HTTPS URL for the verifier function that sits in front of n8n, reachable from the internet, plus the n8n Webhook node URL behind it. n8n also shows a test URL that only listens while you click Test workflow: register the verifier URL with us and use the n8n test URL only for a manual pass in the editor.Your server and the n8n Webhook node
Callback domainIf your Application has allowed domains set, an HTTP or HTTPS callback must match an allowed origin's scheme, host and port, or creation fails with 400. Custom URL schemes are accepted.Application settings, allowed_domains

Step by step

Step 1: build and publish the verification workflow

Sign in to the Didit Business Console, open Workflows in the sidebar and click New workflow. Choose Verifying users, then Start from a template and pick the KYC template. A Simple workflow runs its steps in a fixed order; choose a node-based workflow when a check result needs to determine the next step. For the full KYC check priced below, confirm the template includes ID document verification, passive liveness, face match and device and IP analysis. Publish it and copy its workflow UUID.

Step 2: create the API key and store it in n8n

In the console, select your Application from the dropdown at the top, open Developers, then API keys. Copy the Primary key or create a scoped key. In n8n, open Credentials, add a Header Auth credential with the name x-api-key and the key as the value, and name it something explicit like Didit sandbox key. Never put the key in a Set node, a client-side bundle or a public workflow template: it carries your Application's access.

Step 3: stand up the receiver, then register the destination

We send events to the webhook destination you register, so the verifier has to exist first. Deploy the small server-side function that verifies signatures, give it a public HTTPS URL, and register that URL as the destination, not the n8n Webhook node URL:

curl -X POST https://verification.didit.me/v3/webhook/destinations/ \
-H "x-api-key: $DIDIT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"label":"didit-verifier","url":"https://your-verifier-host/didit","subscribed_events":["status.updated","data.updated"],"webhook_version":"v3"}'

Store the returned secret_shared_key in the verifier's environment, not in an n8n workflow. You can read it again with GET /v3/webhook/destinations/{destination_uuid}/. There is no wildcard: subscribe to every event family you want, and create separate destinations if you fan out to several URLs. Register the deployed verifier URL, not a test URL, because a listener that is not listening will take two retries and then lose the delivery.

Step 4: create the session from n8n

Add an HTTP Request node after your trigger. Method POST, URL https://verification.didit.me/v3/session/, authentication Generic Credential Type with your Header Auth credential, body type JSON:

{
  "workflow_id": "YOUR_WORKFLOW_UUID",
  "vendor_data": "{{ $json.user_id }}",
  "callback": "https://your-app-host/kyc/return",
  "metadata": { "source": "n8n" }
}

The request succeeds and returns session_id and url, plus a session_token. Persist session_id and your internal account reference before you send url, in a column of its own, so an event that arrives right after delivery already maps to the account. On a retry, reuse the stored session for that onboarding attempt if it is still usable. Session webhooks can echo the vendor_data you supplied at creation, so it is a useful second check, but the stored session_id is your primary lookup key.

Step 5: verify the signature and record the event before you answer

Add a Webhook node with method POST on a path such as didit, separately authenticated because the verifier is what faces the internet. Set the response mode so the branch answers at the end rather than on arrival. Reject a malformed or unauthenticated request with 4xx, and return 5xx only when durable acceptance fails. We retry timeouts, 5xx and 404 responses twice, about one and four minutes later, then drop the delivery.

Keep the HMAC check out of n8n. Put a small server-side function at the public URL you registered, in front of the instance, and require separate authentication on the n8n Webhook node that accepts forwarded events. That function reads the original POST bytes, rejects a missing, malformed or stale X-Timestamp more than 300 seconds from its own clock, computes HMAC-SHA256 over those exact bytes with the current secret_shared_key, and compares the decoded digest with X-Signature in constant time. Only after verification does it validate the parsed event, forward the four inbox fields to the authenticated n8n Webhook, and relay the n8n response to us. The Postgres node inside n8n is the only writer of the inbox row.

Handle secret rotation in the same function. For 24 hours after you rotate a destination's signing secret we also send X-Signature-Previous, made with the replaced secret, so during that window also accept it when it matches the digest computed with the previous secret, and drop the old secret when the window closes. The header reference, the canonical-JSON variant X-Signature-V2 and the deprecated Simple variant are on the webhooks page.

Next, a Postgres node (or your database of choice) acts as the durable inbox, and it runs before any business logic:

WITH accepted AS (
  INSERT INTO didit_event (event_id, session_id, webhook_type, status)
  VALUES ($1, $2, $3, $4)
  ON CONFLICT (event_id) DO NOTHING
  RETURNING event_id
)
SELECT EXISTS (SELECT 1 FROM accepted) AS inserted;

Bind the four SQL parameters to the verified event fields. The query ends with SELECT EXISTS (...), so it always returns exactly one row with a boolean, inserted, and the branch always has an item to route. Give event_id a unique constraint. Send both outcomes, inserted = true and inserted = false, to Respond to Webhook with a 200: a duplicate adds no inbox row, and processing is left to the separate inbox workflow. If the insert fails, let the branch fail so we see a 5xx: we retry, and the retry is safe because the unique key is the event id.

Close the branch with a Respond to Webhook node that returns 200 and a small JSON body. Keep the branch to verify, persist and acknowledge within five seconds. Store only the fields the worker needs: event_id, session_id, webhook_type and status, and forward only those four fields from the verifier. Fetch the rest of the decision when the worker needs it. Configure execution history and logs across the receiver, processor and reconciliation workflows so they do not retain full webhook or decision payloads, and trim or switch off execution-data saving for all three. Restrict who can read the identity and screening fields you keep downstream, and set a retention period for them.

Processing runs in a separate n8n workflow. Give the inbox a lease expiry and a claim token. The worker atomically claims pending or expired rows, retries failures, and marks a row complete only after its writes succeed and only while the claim token still matches, so a crashed run leaves the row claimable once the lease expires rather than releasing it. The worker renews or verifies the lease before every side effect, and each database write is guarded by the current claim token. Send each notification or ticket with a stable key for that action to a destination that enforces idempotency. Where the destination cannot deduplicate, do not promise one external message or ticket.

Step 6: route on the status and write back

Branch on webhook_type first. Route status.updated through the current-decision fetch and the team's access policy below, and take the status from the fetched decision, not from the webhook body. Route data.updated through a decision fetch that refreshes only the fields this workflow uses, then complete the inbox row, without entering the status branch and without opening a review task. On the status.updated route only, add a Switch node on {{ $json.status }} and match the strings exactly, including spaces and capitals: Approved, Declined, In Review, In Progress, Not Started, Expired, Abandoned, Resubmitted, Awaiting User, Kyc Expired. Note that Kyc Expired uses a single capital K. Write the rule for each one before you build branches, and treat the mapping below as an example policy for your team, not a universal rule: Approved grants access; Declined withholds it, and any revocation runs under your policy after you confirm the current decision; In Review holds the account with no access change and opens one review task for a reviewer; Resubmitted holds access and asks for the redo; Kyc Expired restricts access under your policy until the person verifies again; Expired, Abandoned and Awaiting User change nothing. A KYC result alone does not establish entitlement to access, so route the outcome through your onboarding or access policy.

Then make every write retry-safe. The event row from step 5 is the inbox that de-duplicates delivery: one inbox row per event_id, and upserts keyed on the session instead of blind inserts. A row can be processed more than once, because an expired lease lets another worker retry it. Have the worker and reconciliation acquire the same per-session lock before fetching the current decision, because a per-event lease does not order two events for the same session. Inside that locked operation, select any access action from the fetched status, apply the team's policy, and condition the write on the fetched session still being the account's active verification session. Do not assume a status only moves forward: a session can move from Approved or Declined to a later status, including Declined and Resubmitted. A duplicate delivery then changes nothing and sends no second email or ticket.

Step 7: reconcile with the decision endpoint

Deliveries can be lost, and a lost first delivery can leave a completed session recorded locally as Not Started. Add a Schedule Trigger, then an HTTP Request node on GET https://verification.didit.me/v3/session/{{ $json.session_id }}/decision/ with the same credential, for every local record that is unresolved, such as Not Started, In Progress, In Review, Resubmitted and KYB Awaiting User, plus any session that still governs access, including Approved. Run reconciliation under the same per-session lock as the worker: acquire the lock, then fetch the current decision with the stored session id, treat it as the source of truth, and select any access action from the fetched status before any access-changing write. The response always carries session_kind, user or business, and you branch on that before reading the feature arrays: a KYB session returns registry_checks and key_people_checks, a KYC session returns id_verifications, liveness_checks, face_matches and the rest. Every feature array is plural, and a feature that did not run is absent or null rather than a placeholder.

Field and event mapping

The verifier's incoming payload and the four inbox fields are different layers. The verifier sees the full webhook body; n8n receives only event_id, session_id, webhook_type and status. A session webhook nests the feature arrays inside a decision object and only sends that object for Approved, Declined, In Review and Abandoned, so n8n never sees it. Decision data comes from GET /v3/session/{session_id}/decision/, which returns the arrays at the top level of the response.

Where each Didit field lands in the n8n workflow
Didit field or eventWhere it appearsWhat to do with it
session_idCreate response and session webhook bodyPrimary lookup key. Store it on your user record and use it for the decision fetch.
urlCreate responseSend it in your own email or in-app message.
vendor_dataEchoed on session webhooks when you supplied it at creationValidate it against your record when present. Do not rely on it as the only key.
statusSession webhook body, and the event context forwarded to n8nEvent context only. Do not branch on the webhook status. The status.updated Switch reads only the status returned by the decision endpoint, after the worker acquires the per-session lock. Exact case-sensitive strings only.
webhook_typeSession webhook bodyRoute status.updated to your onboarding or access policy, and data.updated to a refresh of the fields this workflow uses.
event_idSession webhook bodyUnique key of the durable inbox. Retries reuse it.
X-Signature, X-Signature-Previous, X-TimestampHeaders of the request we send to the verifierVerify in the verifier before any payload reaches n8n, with a 300 second freshness window and a constant-time compare against the decoded digest.
environmentWebhook payload the verifier receives, not one of the four forwarded inbox fieldsConfirm it equals sandbox at the verifier or in the Didit delivery log while testing. Check sandbox_scenario separately.
decision objectSession webhook body only, for Approved, Declined, In Review and Abandoned. Never forwarded to n8n.Do not map it in n8n. Read the arrays below from GET /v3/session/{session_id}/decision/ in the processor.
id_verifications[]Top level of GET /v3/session/{session_id}/decision/Store document type and issuing country for audit.
aml_screenings[]Top level of the GET responseStore match flags and route hits to review.
linked_recordsTop level of the GET responsesame_face, earlier_verifications and network summaries for a fraud branch.
registry_checks[], key_people_checks[]Top level of the GET response when session_kind is businessOptional. Absent or null when that step did not run.
session_kindDecision responseAlways branch on it before reading feature arrays.
transaction.created, transaction.status.updatedWebhook bodyIf you also run Transaction Monitoring, send these to a separate n8n workflow.

A minimal write-back runs in one transaction that first locks the inbox row and confirms the event id, the current claim token and an unexpired lease, then updates the user row keyed on the session you stored at creation, with the fetched status and session_id:

WITH claim AS MATERIALIZED (
  SELECT lease_expires_at
  FROM didit_event
  WHERE event_id = $1 AND claim_token = $2 AND session_id = $4
  FOR UPDATE
)
UPDATE app_user
SET kyc_status = $3, kyc_updated_at = clock_timestamp()
WHERE kyc_session_id = $4
  AND active_kyc_session_id = $4
  AND EXISTS (SELECT 1 FROM claim WHERE lease_expires_at > clock_timestamp())
RETURNING kyc_session_id;

Not every write-back needs the extra columns. Add the document type, the issuing country and the AML match flag only when your policy or your auditor asks for them, and keep barcode payloads and full document data out of your warehouse unless a documented purpose needs them.

The ID document step of a session in the Didit Business Console
The document step of a session in the console: the structured result your write-back node can store, or leave out.

Test with sandbox data

Register through the programmatic endpoints at https://apx.didit.me/auth/v2/programmatic/register/ and verify-email, and save response.sandbox_application.api_key as the key your n8n credential uses. Sandbox sessions mock every check and cost nothing, so you can run the whole workflow end to end before you add credit.

For a deterministic outcome, pass sandbox_scenario when you create the session, using a slug from GET /v1/sandbox/scenarios/. You can also arm or re-arm a scenario after creation with POST /v3/session/{session_id}/sandbox/arm/, as long as the session is still Not Started. Sending sandbox_scenario on a live application is rejected with 400.

Expected success path: the session request succeeds and returns session_id and url, the verifier accepts the signature and forwards the four inbox fields to the authenticated Webhook node, the Postgres node inserts the event once, the separate inbox processor fetches the decision and routes the fetched status, and the last node writes to your system. Two separate checks prove where you are. On the verified request at the public verifier, or in the Didit delivery log, read environment and confirm it equals sandbox, then read sandbox_scenario on its own, because it is null on live sessions and also null on an unarmed sandbox session.

Run three passes before you touch a live key:

  • Approval. Create a session with an approved scenario, finish the hosted flow, and confirm three things: the verified request shows environment as sandbox, the processor routes the fetched status Approved, and your user row flips once. Resend the same delivery from the destination log and confirm the row does not change.
  • Manual review. Create a session that lands in In Review and confirm the account is unchanged with exactly one review task in your system, not one per delivery.
  • Duplicate delivery. Resend the Approved event and confirm the replay adds no inbox row and no processing job: inserted = false, one stored event remains for that event_id, and the CRM shows one note for the session.
Error cases you will hit in n8n and how to fix them
SymptomCauseFix
401 from verification.didit.meKey is wrong, malformed, revoked or expiredRe-fetch the key or copy it again from Developers, then API keys.
403 from verification.didit.meThree different causes: the x-api-key header is missing, the scoped key lacks the permission this route needs (read:sessions for decision reads), or the call comes from an address outside the key's IP listIdentify which one first. Attach the credential, add the permission, or call from an allowed address.
400 naming the callbackThe callback is not on the Application's allowed domainsAdd the origin to allowed_domains or send a callback inside it.
400 on the session callInvalid or stale workflow_idCopy the UUID again from the published workflow.
404 on the decision callSession outside the scoped key's workflows or statuses, or belongs to another ApplicationUse a key from the same Application that created the session, then check the key's workflow and status limits.
429Rate limitRead the wait field in seconds and back off before retrying.
Two CRM notes or two tickets for one personThe same event_id reached the handler twice, because there is no unique key on it or the branch answered before the insertInsert event_id with a unique constraint first, skip the handler on conflict, answer 200 for the duplicate.
We retry, then stop deliveringYour Webhook node answered in over five seconds, or returned 5xx or 404 before the event was storedAnswer 200 only after the signature check and the insert, then resend missed events from the destination delivery log.
Signature check throwsBody bytes changed before hashing, wrong secret, a missing or malformed X-Timestamp, or a clock more than 300 seconds apartHash the original POST bytes with the destination's secret_shared_key, compare the decoded digest with X-Signature in constant time, reject bad timestamps, and accept X-Signature-Previous during rotation.

From sandbox to live

Three things change on the day you go live, and the workflow shape does not. Swap the credential from sandbox_application.api_key to application.api_key. Swap workflow_id for the live workflow UUID, because workflows and keys are scoped to an Application. Confirm that the webhook destination you registered is the one your live application sends to, rotate its signing secret if it ever sat in a shared note, and remove sandbox_scenario from the create call. Fund the organization before running billable checks with the live key.

Disconnect or rotate

To stop the flow, stop delivery at the Didit webhook destination first so we no longer attempt sends, then deactivate the n8n workflow so the endpoint stops accepting events, then revoke the dedicated API key you created for this integration in Developers, then API keys. Removing the n8n credential alone is not enough, because the key stays valid on our side until you revoke it. Rotating the destination signing secret is a different operation: it keeps the integration running and only changes the secret you verify with, and we send the Previous headers for 24 hours after a rotation so a deploy does not drop events. Use rotation when you want a fresh secret, not when you want to disconnect.

What it costs on both ends

Cost of the two sides of the integration
SideWhat is billedPrice
DiditFull KYC check$0.33
DiditAML screening, per check$0.20
DiditProof of address, per check$0.20
DiditBusiness verification, from$2.00 per company for registry retrieval, priced by country and data tier. Person AML $0.20 and linked full KYC $0.33 are billed separately per person.
DiditMCP server and Workflow OrchestratorFree
DiditSandboxFree and unlimited
n8nThe instance itself, self-hosted or an n8n planPriced by n8n; we do not quote it
n8nExecutions to plan forCount session-creation workflow runs, webhook deliveries forwarded to n8n including retries, inbox-processing runs including retries, and scheduled reconciliation runs. A single run can process several rows or fetch several decisions.

Billing on our side is per completed check from prepaid credit. Plan credit is added monthly and does not roll over. Top-ups purchased on or after November 1, 2026 expire after 12 months, and balances purchased before that date do not expire. For the KYC and AML prices in the example below, Growth discounts them by 4% and Scale by 10%. Growth costs $99.00 a month with $115.00 of credit, Scale $299.00 with $350.00 of credit.

Worked cost example

Say an n8n workflow runs 2,000 completed KYC checks a month, and 400 of those people also get an AML screening.

  • List prices: 2,000 x $0.33 = $660.00 for KYC. 400 x $0.20 = $80.00 for AML. Total $740.00.
  • Free plan, when this organization is the first one created with an eligible work email for a company domain and therefore receives the $10.00 monthly credit: $740.00 minus $10.00 = $730.00 taken from top-ups that month.
  • Growth, 4% off these prices: 2,000 x $0.3168 = $633.60. 400 x $0.192 = $76.80. Usage $710.40. The $99.00 monthly fee includes $115.00 of credit, so $99.00 + ($710.40 minus $115.00) = $694.40.
  • Scale, 10% off these prices: 2,000 x $0.297 = $594.00. 400 x $0.18 = $72.00. Usage $666.00. The $299.00 monthly fee includes $350.00 of credit, so $299.00 + ($666.00 minus $350.00) = $615.00.

Nothing above includes an n8n fee, because that is your contract with n8n. Count n8n usage from session-creation workflow runs, webhook deliveries forwarded to n8n including retries, inbox-processing runs including retries, and scheduled reconciliation runs. A single run can process several rows or fetch several decisions. The worked example covers Didit charges only. Didit sandbox checks cost $0.00.

Academy lesson cover explaining Didit credits, auto-recharge and volume discounts
Credits, discounts and top-ups, from the live Didit price feed and the billing lesson.

Sources

Next step: open the sandbox at business.didit.me, create the KYC workflow, and paste the two calls from this page into your n8n instance. No sales call, and the sandbox runs cost nothing while you build.

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

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

How do I connect Didit to n8n?

Two entry points do the work: an HTTP Request node posts to https://verification.didit.me/v3/session/ with your Didit API key in the x-api-key header and returns a hosted session URL, and a Webhook node receives the status.updated event when the person finishes. After those, you verify the signature, record the event so a retry cannot repeat it, route on the status and write back. Copy the payloads from this page or from the integration prompt.

Can I use Didit's MCP server inside n8n?

We host an MCP server at https://mcp.didit.me/mcp with OAuth sign-in, and it is free on every plan. It is the shortest path for an AI assistant to reach your Didit data. Whether your n8n version attaches an MCP client, and how, is an n8n question; the client-by-client setup we document is on the MCP page.

Which n8n nodes do I need for Didit KYC?

The HTTP Request node creates the session and can also fetch the decision, and the Webhook node receives events. Keep the HMAC check in a small server-side function at the public URL you register with us, and require separate authentication on the Webhook node that receives the forwarded inbox fields. A Postgres node is the only writer of the event_id row and runs before anything downstream, and a Respond to Webhook node answers 200 only after that database operation succeeds. A Switch node branches on the status. Optional extras are the Schedule Trigger for reconciliation and an email or team notification node for messages.

How much does it cost to run Didit KYC through n8n?

Our side is $0.33 per completed full KYC check and $0.20 per AML screening, billed per completed check from prepaid credit, and sandbox runs are free. n8n's own plan or server cost is separate and priced by n8n. Count session-creation workflow runs, webhook deliveries forwarded to n8n including retries, inbox-processing runs including retries, and scheduled reconciliation runs.

How do I test in n8n without spending credit?

Use the sandbox application key: the register call requests the code, and the verify-email response returns both a live and a sandbox key. The sandbox key mocks every check. Add a sandbox_scenario from GET /v1/sandbox/scenarios/ to force an outcome, or arm one later with POST /v3/session/{session_id}/sandbox/arm/ while the session is still Not Started. Confirm the verified request shows environment as sandbox before you trust any result.

Why does my Didit webhook fail with a 5xx or never arrive in n8n?

Most often the Webhook node answers before the event is verified and stored, or answers too slowly. We expect a 2xx within five seconds after durable acceptance, and we retry twice, roughly one and four minutes later, before dropping the delivery. Verify the signature, insert event_id, then answer 200, and resend anything you missed from the destination delivery log.

Which status values should the n8n workflow branch on?

Match the exact strings: Approved, Declined, In Review, In Progress, Not Started, Expired, Abandoned, Resubmitted, Awaiting User and Kyc Expired. They are case-sensitive, and Kyc Expired uses a single capital K. In KYB, Awaiting User means the parent session is waiting on key people to finish their own checks.

What stops a retried webhook from creating a second ticket?

The event record in step 5. The verifier forwards the four inbox fields, and the Postgres node inserts event_id under a unique constraint before the branch answers us with a 200, so a delivery replay adds no extra inbox row and no processing job. Downstream writes are upserts keyed on the session rather than blind inserts. A worker retry happens when a lease expires, and suppressing repeated external messages or tickets across those retries needs the destination to enforce a stable per-action idempotency key.

Does the n8n workflow ever store the ID document?

Users upload their document inside the hosted Didit flow, so the file itself does not need to pass through n8n. The verifier forwards only event_id, session_id, webhook_type and status, but the processor and reconciliation fetch full decisions, and those carry structured document results, names and screening hits. Configure execution history and logs on all three workflows so they do not keep full payloads, restrict who can read the fields you retain, and set a retention period for them.

How do I disconnect Didit from n8n?

Stop delivery at the Didit webhook destination first, then deactivate the n8n workflow so the endpoint stops accepting events, then revoke the dedicated API key in Developers, then API keys; removing the n8n credential alone leaves the key valid. Rotating the destination signing secret is not a disconnect, because delivery keeps running with a new secret. We document creating a destination, reading it back and rotating its secret.

Can I run business verification from the same n8n workflow?

Yes. A KYB session comes from the same POST /v3/session/ call with a KYB workflow ID, and the decision returns registry_checks and key_people_checks instead of the KYC arrays; those business arrays are optional, so treat an absent or null value as a step that did not run. Branch on session_kind before reading anything. Registry retrieval starts at $2.00 per company, and person AML at $0.20 and linked KYC at $0.33 are billed per person.

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.