curl -X PATCH 'https://verification.didit.me/v3/workflows/a1b2c3d4-5678-90ab-cdef-111111111111/' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"workflow_label": "Premium KYC"}'from didit import Didit
# Reads DIDIT_API_KEY.
client = Didit()
result = client.workflows.update(
"11111111-2222-3333-4444-555555555555",
features=[{
"feature": "OCR",
}, {
"feature": "AML",
}],
)
print(result)import Didit from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY.
const didit = new Didit();
const result = await didit.workflows.update("11111111-2222-3333-4444-555555555555", {
features: [{
feature: "OCR",
}, {
feature: "AML",
}],
});
console.log(result);ctx := context.Background()
// Reads DIDIT_API_KEY.
client := didit.NewClient()
result, err := client.Workflows.Update(ctx, "11111111-2222-3333-4444-555555555555", didit.SimpleWorkflowUpdateRequest{
Features: didit.Some([]didit.SimpleWorkflowFeature{{
Feature: "OCR",
}, {
Feature: "AML",
}}),
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", result)import java.util.List;
import me.didit.Didit;
import me.didit.types.SimpleWorkflowFeature;
import me.didit.types.SimpleWorkflowUpdateRequest;
// Reads DIDIT_API_KEY.
Didit client = new Didit();
var result = client.workflows().update("11111111-2222-3333-4444-555555555555", SimpleWorkflowUpdateRequest.builder()
.features(List.of(
SimpleWorkflowFeature.builder()
.feature(SimpleWorkflowFeature.Feature.of("OCR"))
.build(),
SimpleWorkflowFeature.builder()
.feature(SimpleWorkflowFeature.Feature.of("AML"))
.build()))
.build());
System.out.println(result);<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
// Reads DIDIT_API_KEY.
$didit = new DiditClient();
$result = $didit->workflows->update('11111111-2222-3333-4444-555555555555', [
'features' => [[
'feature' => 'OCR',
], [
'feature' => 'AML',
]],
]);
print_r($result->toArray());require "didit"
# Reads DIDIT_API_KEY.
didit = Didit::Client.new
result = didit.workflows.update(
"11111111-2222-3333-4444-555555555555",
features: [{
feature: "OCR",
}, {
feature: "AML",
}]
)
puts result.to_husing System;
using System.Text.Json;
using Didit;
// Reads DIDIT_API_KEY.
using var client = new DiditClient();
var result = await client.Workflows.UpdateAsync("11111111-2222-3333-4444-555555555555", new SimpleWorkflowUpdateRequest
{
Features = new SimpleWorkflowFeature[]
{
new()
{
Feature = "OCR",
},
new()
{
Feature = "AML",
},
},
});
Console.WriteLine(JsonSerializer.Serialize(result));{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workflow_label": "<string>",
"workflow_type": "kyc",
"is_welcome_handoff_enabled": true,
"is_default": true,
"is_archived": true,
"version": 123,
"status": "draft",
"published_at": "2023-11-07T05:31:56Z",
"is_simple_workflow": true,
"is_editable": true,
"workflow_url": "<string>",
"workflow_graph": {},
"features": "<string>",
"total_price": 123,
"min_price": 123,
"max_price": 123,
"special_add_on_prices": {},
"max_retry_attempts": 123,
"retry_window_days": 123,
"session_expiration_time": 123,
"questionnaire": {},
"kyb_role_settings": [
{}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"signature_availability": {
"simple": true,
"aes": true,
"qes": true
},
"is_bank_verification_enabled": true,
"bank_verification_config": {},
"is_geolocation_enabled": true,
"geolocation_config": {}
}{
"detail": "You do not have permission to perform this action."
}{
"detail": "Write request rate limit exceeded. You can make up to 300 requests per minute.",
"reference": "RL-00000000000040008000000000000001",
"limit": 300,
"remaining": 0,
"reset": 1794358860,
"window_seconds": 60
}Update Workflow API: Edit KYC Flow
Update a Didit KYC or KYB workflow programmatically — rename, replace ordered features, or tune thresholds. Pay-per-call, no contracts.
curl -X PATCH 'https://verification.didit.me/v3/workflows/a1b2c3d4-5678-90ab-cdef-111111111111/' \
-H 'x-api-key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"workflow_label": "Premium KYC"}'from didit import Didit
# Reads DIDIT_API_KEY.
client = Didit()
result = client.workflows.update(
"11111111-2222-3333-4444-555555555555",
features=[{
"feature": "OCR",
}, {
"feature": "AML",
}],
)
print(result)import Didit from "@didit-protocol/sdk-node";
// Reads DIDIT_API_KEY.
const didit = new Didit();
const result = await didit.workflows.update("11111111-2222-3333-4444-555555555555", {
features: [{
feature: "OCR",
}, {
feature: "AML",
}],
});
console.log(result);ctx := context.Background()
// Reads DIDIT_API_KEY.
client := didit.NewClient()
result, err := client.Workflows.Update(ctx, "11111111-2222-3333-4444-555555555555", didit.SimpleWorkflowUpdateRequest{
Features: didit.Some([]didit.SimpleWorkflowFeature{{
Feature: "OCR",
}, {
Feature: "AML",
}}),
})
if err != nil {
log.Fatal(err)
}
fmt.Printf("%+v\n", result)import java.util.List;
import me.didit.Didit;
import me.didit.types.SimpleWorkflowFeature;
import me.didit.types.SimpleWorkflowUpdateRequest;
// Reads DIDIT_API_KEY.
Didit client = new Didit();
var result = client.workflows().update("11111111-2222-3333-4444-555555555555", SimpleWorkflowUpdateRequest.builder()
.features(List.of(
SimpleWorkflowFeature.builder()
.feature(SimpleWorkflowFeature.Feature.of("OCR"))
.build(),
SimpleWorkflowFeature.builder()
.feature(SimpleWorkflowFeature.Feature.of("AML"))
.build()))
.build());
System.out.println(result);<?php
require 'vendor/autoload.php';
use Didit\DiditClient;
// Reads DIDIT_API_KEY.
$didit = new DiditClient();
$result = $didit->workflows->update('11111111-2222-3333-4444-555555555555', [
'features' => [[
'feature' => 'OCR',
], [
'feature' => 'AML',
]],
]);
print_r($result->toArray());require "didit"
# Reads DIDIT_API_KEY.
didit = Didit::Client.new
result = didit.workflows.update(
"11111111-2222-3333-4444-555555555555",
features: [{
feature: "OCR",
}, {
feature: "AML",
}]
)
puts result.to_husing System;
using System.Text.Json;
using Didit;
// Reads DIDIT_API_KEY.
using var client = new DiditClient();
var result = await client.Workflows.UpdateAsync("11111111-2222-3333-4444-555555555555", new SimpleWorkflowUpdateRequest
{
Features = new SimpleWorkflowFeature[]
{
new()
{
Feature = "OCR",
},
new()
{
Feature = "AML",
},
},
});
Console.WriteLine(JsonSerializer.Serialize(result));{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workflow_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workflow_label": "<string>",
"workflow_type": "kyc",
"is_welcome_handoff_enabled": true,
"is_default": true,
"is_archived": true,
"version": 123,
"status": "draft",
"published_at": "2023-11-07T05:31:56Z",
"is_simple_workflow": true,
"is_editable": true,
"workflow_url": "<string>",
"workflow_graph": {},
"features": "<string>",
"total_price": 123,
"min_price": 123,
"max_price": 123,
"special_add_on_prices": {},
"max_retry_attempts": 123,
"retry_window_days": 123,
"session_expiration_time": 123,
"questionnaire": {},
"kyb_role_settings": [
{}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"signature_availability": {
"simple": true,
"aes": true,
"qes": true
},
"is_bank_verification_enabled": true,
"bank_verification_config": {},
"is_geolocation_enabled": true,
"geolocation_config": {}
}{
"detail": "You do not have permission to perform this action."
}{
"detail": "Write request rate limit exceeded. You can make up to 300 requests per minute.",
"reference": "RL-00000000000040008000000000000001",
"limit": 300,
"remaining": 0,
"reset": 1794358860,
"window_seconds": 60
}PATCH for partial updates. To rename a workflow, send only workflow_label.
{
"workflow_label": "Premium KYC"
}
features array. This replaces the previous feature order and configuration.
{
"features": [
{
"feature": "OCR",
"config": {
"documents_allowed": {
"USA": {
"DL": {
"enabled": 1,
"sides": 2
}
}
}
}
},
{
"feature": "AML",
"config": {
"aml_score_review_threshold": 70,
"aml_score_approve_threshold": 30
}
}
]
}
Feature config reference
When you sendfeatures in a PATCH, the array replaces the previous feature order and configuration. Include every required config again.
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.
Updating workflow settings
You can patch session-level settings without touching the feature list. Send only the fields you want to change.| Field | Type | Description |
|---|---|---|
is_white_label_enabled | boolean | Enable white-label customization for sessions created with this workflow. |
is_desktop_allowed | boolean | Allow the verification flow to run on desktop browsers. |
is_welcome_handoff_enabled | boolean | Show “Continue on another device” on the phone welcome screen. Set to false to hide the QR code and link. Omit to keep the current setting. |
is_session_reference_enabled | boolean | Show the person being verified a short reference such as S-20481 on the Declined and In review result screens, so they can give it to your support team. You find the session by it in the console. When false, the result screens show no reference. |
max_retry_attempts | integer (0–10) | Maximum retry attempts allowed after a declined verification. 0 blocks the user after the first decline. |
retry_window_days | integer (1–365) or null | Rolling window in days used to count retries (null = all-time limit). |
session_expiration_time | integer (3600–2419200) | Seconds before an unfinished session expires. Minimum 1 hour, maximum 4 weeks. |
{
"is_white_label_enabled": true,
"is_desktop_allowed": true,
"is_session_reference_enabled": true,
"max_retry_attempts": 5,
"retry_window_days": 14,
"session_expiration_time": 86400
}
uuid returned by the list, create, or get endpoint as settings_uuid in this URL.Authorizations
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
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.
1 - 255Body
Update workflow metadata or replace the full linear feature list. STRICT field whitelist: any key not listed here is rejected with a 400.
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.
Response
Workflow updated. The body is the FULL configuration of the resulting version (same raw VerificationSettings shape as GET /v3/workflows/{settings_uuid}/). When the update created a new version (status: "published" sent on a published row) the returned uuid and version differ from the ones you patched — use the returned uuid for subsequent calls.
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.
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 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.
{}
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.
{}