Skip to main content
POST
cURL
Use this endpoint to create workflows through the API without building workflow graph nodes yourself. Send a features array in the order users should complete the checks. Didit converts it into a node-based workflow internally and adds the final status step automatically. This POST /v3/workflows/ endpoint creates simple, linear workflows only — a flat features list. For branching, conditional routing, Document AI, and decline/decision nodes, use the node graph format documented below (it powers the visual builder in the console and the Didit MCP workflow tools). See Workflow Feature Configs for every config field accepted by each feature.

Basic KYC workflow

Questionnaire workflow

First create the questionnaire with POST /v3/questionnaires/. Then use the returned questionnaire_id as questionnaire_uuid.
Feature order matters. For example, put OCR before FACE_MATCH, NFC, DATABASE_VALIDATION, or user AML checks that depend on document data.

Feature config reference

Each features[] item has this shape:
The exact config object depends on the feature. Review the full field list, defaults, required settings, value ranges, and examples in Workflow Feature Configs. For OCR, omit config.documents_allowed, send null, or send {} to allow every supported document type. Include it only when you want to restrict the workflow to specific countries or document types. For QUESTIONNAIRE, config.questionnaire_uuid is required.

Optional workflow settings

You can include any of these top-level fields when creating a workflow to control session behavior. They are all optional and fall back to the workflow defaults when omitted.

Branching & node-based workflows (graph)

A linear features list can’t express “if X then Y.” For conditional branching (decline on a status, route on an extracted field, gate a step on a match), a Document AI request step, or terminal decline/decision nodes, Didit workflows use a node graph — the same structure the console’s visual builder produces.
The simplest way to build a graph workflow is the Didit MCP — ask an agent in plain language (“after ID verification, if the profession is ≈ ‘Software Engineer’, add a proof-of-funds step”) and it constructs, validates, and saves the graph for you. The structure below is what those tools (and the console) produce.

Graph shape

A graph is { start_node, nodes }. nodes is a map of node id → node. Edges are implicit: each node points forward via next (unconditional) and/or branches[].goto (conditional). start_node must be a feature node. Branches are evaluated in order, first match wins; an empty rules: [] is the catch-all “else” (keep it last). session_status: "Determine" auto-decides from the combined feature outcomes.
Every branch node must have an explicit else branch — a branch with rules: [] that routes sessions matching none of the conditions. Don’t rely on the branch node’s next as the fallback: a bare next renders as an ambiguous edge in the builder and is easy to omit. When you send a branch node with a next and no else branch, the API converts that next into an explicit else branch for you (so { …, "branches": [<conditions>], "next": "liveness" } is saved as branches: [<conditions>, { "id": "else", "rules": [], "goto": "liveness" }]). Build the else yourself to be explicit; the conversion is a safety net, not a substitute.

Branch rules & operators

Each rule compares a field to a value with an operator:
  • Fields name a feature outcome (kyc.status, aml.status, document_ai.status, face_match.score, …) or an extracted value (kyc.full_name, kyc.age, kyc.nationality, kyc.extra_fields.profession, a Document-AI field document_ai.<key>, expected_details.*). A branch may only read a field whose feature has run on every path reaching it.
  • Operators: equals, not_equals, greater_than(_or_equals), less_than(_or_equals), contains, not_contains, in, not_in, is_empty, is_not_empty, regex, and fuzzy_match (string fields only; requires a score 0–100 — a similarity threshold, e.g. profession ≥ 80% similar to “Software Engineer”).

Branch on why NFC did not run

After an NFC node, use nfc.skip_reason with equals or in to route sessions by why the chip read did not happen. The field has these seven stable values:
  • USER_SKIPPED
  • DOCUMENT_WITHOUT_CHIP
  • CHIP_CERTIFICATE_UNAVAILABLE
  • DEVICE_WITHOUT_NFC
  • INTEGRATION_WITHOUT_NFC_ACCESS
  • MRZ_KEY_UNAVAILABLE
  • JPKI_UNAVAILABLE
See NFC skip reasons for what each value means. When NFC succeeds, nfc.skip_reason is null, so neither an equals nor an in rule for a skip reason matches. The field also resolves for gate-skipped NFC nodes. This includes cases where no NFC report or warning exists, and cases where allow_nfc_skip is false but the document or device gate prevents NFC from running. You can therefore route these sessions without relying on an nfc_verifications[] entry.
Sessions stored before NFC capability became tri-state can have has_device_nfc_support: false. An older web session may therefore resolve to DEVICE_WITHOUT_NFC instead of INTEGRATION_WITHOUT_NFC_ACCESS.
This graph uses equals for a user skip, in for gate or capability skips, and an explicit else for successful NFC. The branch comes after the NFC node, and every destination points forward to a terminal node:
To express “NFC was not performed for any known reason,” use in with all seven values. Keep an explicit else branch for successful NFC (nfc.skip_reason: null) and any future value that your graph does not yet recognize.

Document AI (e.g. proof of funds)

A DOCUMENT_AI feature node requests one or more documents and extracts named fields:
Each configured field becomes a branchable value document_ai.<key>, and the step’s outcome is document_ai.status. Set "is_full_name": true on the field that holds the document holder’s full name. Its extracted value is compared against the verified identity’s full name (the OCR/ID-verification name, or the session’s expected details), and document_ai_name_mismatch_action decides what happens on a mismatch below document_ai_name_match_score_threshold. The flag is optional — a document may mark no field — and at most one field per document may set it. See Workflow feature configs → Document AI for every Document AI config field.

Endpoints & draft lifecycle

Graph editing is per-application and uses the console/management endpoints (user-Bearer + read:workflows/write:workflows). A graph can only be edited on a draft version, so the lifecycle is create-draft → set graph → publish:

Validation warnings

The validate endpoint answers { "is_valid": true, "graph": …, "warnings": [] }. A warning is advisory: the graph is valid, it saves and it publishes with warnings present. Each entry carries the branch node and arm it is about, so a builder can point at the exact condition:
An invalid graph answers 400 with errors and a best-effort warnings list. Only errors block a save.

Worked example: route Software Engineers to proof of funds

After ID verification: if it was declined, decline the session; if the holder’s profession ≈ “Software Engineer” (≥80% similar), request a proof-of-funds document; then make a final decision.
The final node uses session_status: "Determine", which auto-decides (approve / decline / in-review) from whatever features actually ran on the session — so both the proof-of-funds path and the else path resolve correctly without any branch reading document_ai.status (which doesn’t exist on the path that skips Document AI). Remember: a branch may only read a field whose feature ran on every path reaching it. Send it as { "graph": <above> } to the …/workflow-graph/ endpoint (validate first). To build a new workflow from scratch use the MCP’s didit_workflow_set_graph; to modify an existing workflow use didit_workflow_edit_graph (small ops, preserves the existing nodes and allow-lists). See the Didit MCP.

Authorizations

x-api-key
string
header
required

Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.

Headers

Idempotency-Key
string

Optional retry-safety key you choose for one operation, up to 255 characters (a UUID works). A request repeated with the same key, endpoint, query and body is answered with the first response, same status and same body, and runs and bills nothing a second time. The same key with another endpoint, query or body returns 409 idempotency_key_reused, and while the first request is still running, 409 idempotency_key_in_progress with Retry-After. A failed request (any 4xx or 5xx) is not stored, so you can send it again with the same key. Keys belong to your application, whether you call with an API key or an access token. See Retries and idempotency.

Required string length: 1 - 255

Body

application/json

Create a simple linear workflow. The API converts this feature list into a node-based workflow graph internally. STRICT field whitelist: any key not listed here (including workflow_type) is rejected with a 400.

features
object[]
required

Verification features in execution order. The API links each item to the next one and adds one final status node automatically.

Minimum array length: 1
workflow_label
string
default:ID Verification

Display name for the workflow (max 50 characters). Defaults to "ID Verification" when omitted — always set it so workflows stay distinguishable.

Maximum string length: 50
Example:

"Standard KYC"

is_default
boolean

Set this workflow as the default for new sessions.

status
enum<string>

Omit this field to create a published workflow ready for sessions. Use draft only when you want to save without publishing.

Available options:
draft,
published
is_white_label_enabled
boolean
default:false

Enable white-label customization for sessions created with this workflow.

is_desktop_allowed
boolean
default:false

Allow the verification flow to run on desktop browsers.

is_welcome_handoff_enabled
boolean
default:true

Show “Continue on another device” on the hosted verification welcome screen. Set to false to hide the QR code and link from the phone welcome.

is_session_reference_enabled
boolean
default:false

On Declined and In review results, the person being verified sees a short reference to the session, such as S-20481, shown on one line. This is the session number as the console shows it, so your support team can find the session in the console by typing it. When false, the result screens show no reference. Applies to the hosted flow and the SDKs.

max_retry_attempts
integer
default:3

Maximum retry attempts allowed after a declined verification. 0 blocks the user after the first decline.

Required range: 0 <= x <= 10
retry_window_days
integer | null
default:7

Rolling window in days used to count retries. null enforces an all-time limit.

Required range: 1 <= x <= 365
face_liveness_max_attempts
integer
default:3

Maximum liveness submissions per session. Default 3: one initial attempt plus two retries. This value is also copied into generated liveness and age-estimation workflow nodes unless the feature-level config overrides it.

Required range: 1 <= x <= 3
face_match_max_attempts
integer
default:3

Maximum face-match submissions per session. Default 3: one initial attempt plus two retries. This value is also copied into generated face-match workflow nodes unless the feature-level config overrides it.

Required range: 1 <= x <= 3
session_expiration_time
integer
default:604800

Seconds before an unfinished session expires. Minimum 1 hour (3600), maximum 4 weeks (2419200).

Required range: 3600 <= x <= 2419200

Response

Workflow created. The response body is the FULL workflow configuration — the same raw VerificationSettings serialization returned by GET /v3/workflows/{settings_uuid}/ (~190 fields: every feature toggle, threshold, action and the generated workflow_graph), not the compact list item. Store the uuid (also exposed as workflow_id) so you can reference it from later session-creation calls. Note: features is a " + "-joined string and prices are JSON numbers.

The fields below are typed; the object also carries every other column of the workflow configuration (feature toggles, thresholds, warning actions, allowed documents, callbacks) as additional properties. Fields that do not apply to the workflow_type are null. For a workflow built from a workflow_graph, face_match_score_decline_threshold and face_match_score_review_threshold report the thresholds its Face Match step applies: the step's own values, or the defaults 30 and 60 when the step sets none (the step's config in workflow_graph states the same values). When the workflow has several Face Match steps with different thresholds, read each step's config.

uuid
string<uuid>

Per-version identifier (settings_uuid). Every version of a workflow has its own.

workflow_id
string<uuid>

Stable identifier shared by every version of the workflow. Sessions created with it use the latest published version.

workflow_label
string

Display name of the workflow.

workflow_type
enum<string> | null

Workflow template. null for graph workflows created without a template.

Available options:
kyc,
kyb,
adaptive_age_verification,
biometric_authentication,
address_verification,
questionnaire_verification,
email_verification,
phone_verification,
null
is_welcome_handoff_enabled
boolean

Whether the hosted phone welcome screen offers the QR code and link to continue on another device.

is_default
boolean

Whether this is the application's default workflow.

is_archived
boolean

Archived workflows cannot start new sessions.

version
integer

Version number within the workflow.

status
enum<string>

Draft versions are editable; published versions are immutable and used for new sessions.

Available options:
draft,
published
published_at
string<date-time> | null

When this version was published. null for drafts.

is_simple_workflow
boolean

true when the workflow has no custom workflow_graph.

is_editable
boolean

true only for draft versions.

workflow_url
string<uri>

Public URL that starts a session with this workflow.

workflow_graph
object | null

Graph structure of the workflow (nodes and edges). null for simple workflows.

features
string

Enabled features joined with " + ", for example "OCR + LIVENESS".

total_price
number | null

Price per session; for graph workflows the most expensive path.

min_price
number | null

Price of the cheapest path through the workflow.

max_price
number | null

Price of the most expensive path through the workflow.

special_add_on_prices
object | null

Organization-specific add-on prices, or null when none are set.

max_retry_attempts
integer

Retries allowed after a declined verification.

retry_window_days
integer | null

Days during which the retries are allowed.

session_expiration_time
integer

Seconds before an unfinished session expires.

questionnaire
object | null

The questionnaire attached to the workflow, or null.

kyb_role_settings
object[]

Per-role verification settings for KYB key people.

created_at
string<date-time>
updated_at
string<date-time>
signature_availability
object

Which E-signature levels can sign right now. Check it before you set signature_level. Returned on kyc, kyb and graph workflows.

is_bank_verification_enabled
boolean

Whether a simple KYC or KYB workflow runs Bank verification. It runs after the contact steps (and Location verification) and before database validation, AML and IP analysis. Bank verification is not generally available yet: turning it on is refused wherever it is not enabled.

bank_verification_config
object

Bank verification settings of a simple workflow, with the same keys a BANK_VERIFICATION node takes (for example bank_countries and bank_method_order). Unknown keys are dropped. Every key is optional and an absent key keeps its default, so {} means all defaults. See Bank verification settings.

Example:
is_geolocation_enabled
boolean

Whether a simple KYC workflow runs Location verification. It runs after the contact steps and before Bank verification and database validation. Business (KYB) workflows cannot run it.

geolocation_config
object

Location verification settings of a simple workflow, with the same keys a GEOLOCATION node takes (for example is_geolocation_geofencing_enabled and geolocation_max_attempts). Unknown keys are dropped. Every key is optional and an absent key keeps its default, so {} means all defaults.

Example:
Last modified on November 28, 2026