Skip to main content

Identity Verification (KYC)

How to Build a Conditional KYC Questionnaire in Didit

Didit conditional questionnaires are built in Advanced Mode: branch nodes route users by their answers, paths rejoin at a shared step, answers return on the session decision payload, $0.10 per completed check, and the form is.

How to Build a Conditional KYC Questionnaire in Didit

Contents

In this guide

Jump to the part you need.

A conditional questionnaire in Didit is built in Advanced Mode of the Questionnaire Builder: you place question nodes on a canvas, add branch nodes, and send each user down a different set of questions based on what they already answered. It fits onboarding where the follow-up depends on the answer, source of funds being the classic case. Custom Questionnaires cost $0.10 per completed check. The main caveat: there is no standalone submission API, answers are collected inside a Didit session.

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

Conditional KYC questionnaires in Didit at a glance
QuestionAnswer
Where you build itBusiness Console, Questionnaires tab, Advanced Mode (visual node-based editor)
How answers are submittedSession-only. There is no standalone submission API: the form renders inside the hosted Didit flow, bound to a workflow through the QUESTIONNAIRE feature
What routes a userBranch nodes that test an earlier answer with operators such as equals, contains and in
How paths convergeConnect the end of every path to the same shared step node
PriceCustom Questionnaires $0.10 per completed check, a separate line from any identity or AML check the same session runs
How answers come backquestionnaire_responses[] on the decision payload of the session
How review is triggeredA custom status rule sets the questionnaire status to In Review and emits the CUSTOM_STATUS_RULE_TRIGGERED warning
How it reaches a workflowQUESTIONNAIRE feature with config.questionnaire_uuid, then POST /v3/session/

Start free in the sandbox at https://business.didit.me/ (no sales call). If you build with an AI assistant, connect Didit through the MCP server at https://didit.me/developers/mcp/. The unit prices used below are on https://didit.me/pricing/ and the form reference is in the questionnaires documentation.

What Advanced Mode adds to a questionnaire

The Questionnaire Builder has two modes. Simple Mode is a drag-and-drop form for flat data collection: labels, required fields, placeholders, publish. Advanced Mode is a visual node-based editor on an infinite canvas, and it is the mode that supports complex forms with conditional logic, branching paths and custom rules, plus multi-language content and manual review routing. Drag a node from the palette, and when you drag from a node handle into empty space the editor creates and connects a new node in one move.

Advanced Mode questionnaire graph with question nodes connected to branch nodes on a canvas
Advanced Mode in the Questionnaire Builder: question nodes on a canvas, wired to branch nodes that send each user down a different path.

Branch nodes are the routing step. A branch tests a value from an earlier answer against a condition and gives you one outgoing edge per outcome. The operators you will use most are equals for an exact match, contains for a partial match inside longer text, and in for a value inside a list of accepted values. Conditions can also be applied as conditional visibility on individual fields, so a question only appears when the answer that makes it relevant has already been given.

Three things keep a branching form maintainable: you rejoin the paths at a shared step instead of duplicating the tail of the form, you translate every user-facing label once per language, and you attach custom status rules so an answer can move the result to In Review without any code. Keyboard shortcuts (undo, redo, delete) and scroll-to-zoom keep a large graph workable.

Prerequisites

  • A Didit organization. The Free plan includes $10.00 of monthly credit and the sandbox is free and unlimited.
  • An API key from the Business Console, sent as the x-api-key header.
  • A workflow, created in the Console or with POST /v3/workflows/.
  • A decision on which answers change the path. Write the branch conditions before you touch the canvas.
  • As a design recommendation, decide before you build where a user should land when an answer matches none of your branch conditions. The Console documentation describes branch nodes with one outgoing edge per outcome; it does not describe a dedicated catch-all fallback branch.

Build the branching questionnaire, step by step

  1. Open Advanced Mode. In the Business Console, open the Questionnaires tab, create a questionnaire, and switch to Advanced Mode. You get the node graph canvas rather than the flat form list.
  2. Add the first question node. Drag a question node onto the canvas and configure the label, the field type and whether it is required. This is the question the branch will read, for example source_of_funds.
  3. Add a branch node after it. Drag a branch node onto the canvas and connect the question node handle to it. The branch node is the fork in the graph.
  4. Write each condition. On the branch node, pick the answer to test, the operator and the value. One condition reads source_of_funds equals crypto. Another can read source_of_funds in [salary, savings, pension]. Add one edge per outcome.
  5. Build the questions on each path. Drag from the branch node handle into empty space to create and connect the node you need, then keep going. The crypto path might ask for the exchange name and the wallet type; the salary path might ask for the employer name only.
  6. Rejoin the paths at one shared step. Connect the last node of each path to the same downstream node, so the questions every user must answer are authored once.
  7. Add custom status rules. A rule such as if source_of_funds = 'crypto' set status to In Review is configured in the Console, not in your code. The rule fires whenever an answer matches it.
  8. Translate and publish. Fill in the user-facing labels for each language you support. Publishing creates the version that new sessions will use; a draft stays editable.
  9. Attach it to the workflow. In the workflow graph, add a QUESTIONNAIRE feature node, select the questionnaire, and confirm the value that lands in config.questionnaire_uuid. Publish the workflow version.

Rejoin the branch paths into a shared step

Drag from the last node of each path to the input of one node placed after the fork. Every path then lands on the same node, and everything after it is authored and translated once. Keep the fork as narrow as your rules require and rejoin as early as they allow, because a duplicated tail is where a typo or a missing translation survives in one copy and not the other.

Attach the questionnaire to a workflow with the API

Questionnaires are session-only. You cannot post an answer set to an endpoint. The form is designed in the Console, bound to a workflow through the QUESTIONNAIRE feature, and rendered inside the hosted flow. Plan for that when you estimate integration work: the questionnaire adds a Console step and one workflow feature, not a new endpoint to build and secure. The documented end-to-end shape, including the questionnaire steps, is in the questionnaire integration prompt (raw Markdown: integration playbook).

First, find the questionnaire id:

curl -X GET "https://verification.didit.me/v3/questionnaires/?limit=50&offset=0" \
-H "x-api-key: YOUR_API_KEY"

Expected response shape (fields from the API reference, values shortened):

{
  "count": 1,
  "next": null,
  "previous": null,
  "results": [
    {
      "uuid": "per-version-id",
      "questionnaire_id": "group-id",
      "questionnaire_group_id": "group-id",
      "version": 4,
      "status": "published",
      "is_editable": false,
      "question_types": ["..."]
    }
  ]
}

Then create the session with the workflow that carries the questionnaire:

curl -X POST 'https://verification.didit.me/v3/session/' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"workflow_id": "YOUR_WORKFLOW_ID",
"vendor_data": "user-1234",
"callback": "https://yourapp.com/post-kyc"
}'

Send the user to session.url, or mount the Web or Mobile SDK. The result arrives either by GET /v3/session/{sessionId}/decision/ or on the session.status.updated webhook. Under the decision payload, questionnaire_responses[] holds one entry per questionnaire node, and each entry carries status, answers (an array of question_id, question_label and value pairs) and warnings.

questionnaire_group_id vs questionnaire_uuid

Every row in the questionnaires list is one version of a questionnaire group. questionnaire_group_id is the stable identifier shared by every version of that questionnaire. uuid is the identifier of that one version, and it is the path id you use with GET, PATCH and DELETE /v3/questionnaires/{questionnaire_uuid}/.

When you attach a questionnaire to a workflow, the value goes in config.questionnaire_uuid on the QUESTIONNAIRE feature. Pass the questionnaire group identifier there when you want the workflow to follow the form as it changes: a workflow that references the group identifier resolves to the latest published version automatically, so a new published version is picked up by new sessions without editing the workflow. Workflows are versioned separately, and a session always references the workflow version it was created with.

List questionnaires and find the latest published version

GET https://verification.didit.me/v3/questionnaires/ returns questionnaires newest first. The OpenAPI contract for this endpoint describes a limit and offset envelope (count, next, previous, results) with a default page size of 50, while an older prompt on the same docs page says every row comes back in one response. Treat that as a documentation inconsistency and implement one way: send limit and offset and follow next until it is null. That loop reads every row under either behaviour, so you do not have to detect which one you hit.

Two fields save you follow-up calls: version is the integer version number and status is either draft or published, so you can tell a draft row from a published one without opening it. question_types aggregates the form-element types present, excluding section headers and separators, which is enough to label a picker card without opening each questionnaire. is_editable: true marks a draft that can still be patched in place.

Custom status rules and manual review

A custom status rule maps an answer to a questionnaire status. The status enum per questionnaire_responses[].status is Not Started, In Progress, Approved, In Review, Declined, Abandoned and Kyc Expired. Match these strings exactly, including spaces and capitalisation.

When an answer trips a rule, Didit emits a warning under LogWarningChoices.QUESTIONNAIRE with the code CUSTOM_STATUS_RULE_TRIGGERED, and its additional_data carries the rule id and the matched answer. That is how a reviewer sees why a session was routed. Reviewers then open the session in the Console and approve, decline or request a resubmission, or you move it with PATCH /v3/session/{sessionId}/update-status/. The status strings themselves are documented in verification statuses, and the reviewer workflow is in manual review.

Didit Console verification list with sessions marked Approved, Declined and In Review
The Console review queue: sessions your custom status rule routed to In Review wait here for a reviewer to approve, decline or request a resubmission.

Failure cases and recovery

What goes wrong and what to do about it
What you seeWhat it meansRecovery
questionnaire_responses[] is emptyThe user abandoned the form; the session status reflects AbandonedHandle it per your retention policy and create a new session if you want a retry
Status In Review with CUSTOM_STATUS_RULE_TRIGGEREDAn answer crossed your manual review ruleSurface the matched answers in your reviewer view, then decide in the Console or via the update-status endpoint
Status DeclinedAn answer crossed a decline rule, for example a declared sanctioned-country residenceDo not approve. Record the rule id from additional_data
HTTP 401Missing or malformed x-api-keySend the key as the header value, not as a body field
HTTP 403The key cannot list questionnaires for this applicationThe response body is the canonical permission envelope; use a key scoped to the right application
HTTP 429Rate limitedBack off and retry, respecting Retry-After
A branch that never firesThe condition operator or value does not match the answer formatRe-read the branch node, check whether the answer is a string or a list, and test the path in the sandbox

Inputs and outputs

What you send and what you get back
FieldDirectionWhere it lives
config.questionnaire_uuidInputQUESTIONNAIRE feature on the workflow
workflow_idInputPOST /v3/session/ body
vendor_dataInputPOST /v3/session/ body, your user reference
callbackInputPOST /v3/session/ body, your webhook URL
questionnaire_responses[].statusOutputDecision payload, driven by your custom status rules
questionnaire_responses[].answers[]OutputDecision payload, one entry per question with question_id, question_label, value
questionnaire_responses[].warnings[]OutputDecision payload and webhooks
additional_dataOutputInside a CUSTOM_STATUS_RULE_TRIGGERED warning: rule id and matched answer

Custom Questionnaires are billed at $0.10 per completed check, and that line is separate from every other check the same session runs. Identity checks are billed on their own lines and only when they complete: the full ID check is $0.33 (ID document verification $0.15, passive liveness $0.10, face match 1:1 $0.05, device and IP analysis $0.03), and AML screening is $0.20 per check. A branch the user never takes completes nothing, so it adds nothing to the bill. That is the practical argument for routing: you pay for the path taken, not for the graph.

Review is a boundary, not a charge on the questionnaire line. Manual review is handled after a questionnaire status is routed to In Review: a reviewer opens the session in the Console and approves, declines or requests a resubmission, or you move it with PATCH /v3/session/{sessionId}/update-status/. Growth takes 4% off Didit prices and Scale takes 10%, and plan credit is added monthly and does not roll over.

Worked cost example

Take 5,000 completed sessions a month. Every session runs the full ID check at $0.33 and one questionnaire at $0.10. Fifteen percent of users answer that their source of funds is crypto, and that path adds AML screening at $0.20.

  • Per session at list price: $0.33 + $0.10 = $0.43
  • 5,000 x $0.43 = $2,150.00
  • Crypto path: 5,000 x 15% = 750 sessions, 750 x $0.20 = $150.00
  • Total at list price: $2,150.00 + $150.00 = $2,300.00 per month

On Scale, with 10% off Didit prices: ID check $0.297, questionnaire $0.09, AML $0.18.

  • Per session: $0.297 + $0.09 = $0.387
  • 5,000 x $0.387 = $1,935.00
  • 750 x $0.18 = $135.00
  • Total: $1,935.00 + $135.00 = $2,070.00 per month, plus the $299.00 monthly plan fee

Sources

Next step: open the sandbox at https://business.didit.me/, create a questionnaire in Advanced Mode, run one session through each branch, and read the decision payload before you touch production. No sales call needed.

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 does conditional branching work in a Didit KYC questionnaire?

You build the form in Advanced Mode, the visual node-based editor, and place a branch node after the question whose answer decides the route. The branch tests that answer against a condition, and each outgoing edge leads to a different set of question nodes. The paths can then rejoin at a single shared step.

Do I need code to build a branching questionnaire?

No. The graph, the conditions, the translations and the custom status rules are all configured in the Business Console. Code enters only when you attach the questionnaire to a workflow and create sessions through the API or SDK.

What does a conditional questionnaire cost?

Custom Questionnaires are $0.10 per completed check, and that price is separate from any identity or AML check the same session runs. On top of it you pay for the checks the user actually completes, for example $0.33 for a full ID check and $0.20 for AML screening. Growth takes 4% off Didit prices and Scale takes 10%.

Can I submit questionnaire answers through the API directly?

No. Questionnaires are session-only. There is no standalone submission endpoint; the form is bound to a workflow through the QUESTIONNAIRE feature and the answers are collected inside the hosted Didit flow. You read them back from the decision payload.

What is the difference between questionnaire_group_id and questionnaire_uuid?

questionnaire_group_id is the stable id shared by every version of a questionnaire, and a workflow that references it resolves to the latest published version automatically. uuid identifies one specific version and is the path id for GET, PATCH and DELETE /v3/questionnaires/{questionnaire_uuid}/.

Does the list questionnaires endpoint paginate?

The OpenAPI contract describes a limit and offset envelope with a default page size of 50, while older prompt text in the same docs says all rows come back in one response. Send limit and offset and follow next until it is null, which works under either behaviour.

How do I send a questionnaire answer to manual review?

Add a custom status rule in the Console, for example if source_of_funds equals crypto then set the status to In Review. When it fires, the questionnaire response carries the CUSTOM_STATUS_RULE_TRIGGERED warning and its additional_data holds the rule id and the matched answer.

Where do the questionnaire answers appear after the session?

In questionnaire_responses[] on the decision payload from GET /v3/session/{sessionId}/decision/ or on the session.status.updated webhook. Each entry has the questionnaire status, an answers array of question id, label and value pairs, and any warnings.

How do I rejoin two branch paths into one shared step?

Connect the last node of each path to the input of one node placed after the fork. Every path then continues through the same questions, so you author and translate the tail of the form once instead of once per route.

What happens if a user abandons the questionnaire?

questionnaire_responses[] comes back empty and the session status reflects Abandoned. Handle it under your retention policy, and create a new session if you want the user to try again.

Can I edit a published questionnaire?

Published versions are immutable for new sessions, and a draft that reports is_editable: true can still be patched in place with PATCH /v3/questionnaires/{questionnaire_uuid}/. A workflow that references the questionnaire group resolves to the latest published version, so publishing a new version changes what new sessions use without any workflow edit.

Can I use branching questionnaires in KYB as well as KYC?

Yes. Questionnaires are built for custom KYC and KYB form collection, and the answers come back in the same questionnaire_responses[] structure on the decision payload of the session that carried them.

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.