API reference
Workflows
Create, edit, simulate, publish and A/B test workflows.
GET
/v3/workflows/[{uuid, workflow_label, features[]}]GET
/v3/workflow-templates/The templates, including aml_person and aml_entityPOST
/v3/workflows/Create from a template, or create and publish from a list of features or a graphbash
curl -X POST https://{{HOST}}/v3/workflows/ -H "x-api-key: sk_..." -H "Content-Type: application/json" \
-d '{"workflow_label":"Standard KYC","features":[{"feature":"OCR"},{"feature":"LIVENESS"},{"feature":"FACE_MATCH"},{"feature":"AML"}]}'Create from a template (settings-based, no graph):
bash
curl -X POST https://{{HOST}}/v3/workflows/ -H "x-api-key: sk_..." -H "Content-Type: application/json" \
-d '{"workflow_label":"Name screening","template":"aml_person","config":{"decision_mode":"approve_or_review"}}'Features include OCR, LIVENESS, FACE_MATCH, AML, PROOF_OF_ADDRESS, DATABASE_VALIDATION, IP_ANALYSIS, EMAIL_VERIFICATION, PHONE_VERIFICATION. See GET /v3/workflow-catalog/ for the full list.
GET
/v3/workflows/{id}/graph/Draft, published version, history, validation and A/B testPUT
/v3/workflows/{id}/graph/Save a draft: {graph: {nodes: [{id, type, config, x, y}], edges: [{from, to, branch}]}}POST
/v3/workflows/{id}/publish/{note}. Returns 422 with the problems if the graph is invalidPOST
/v3/workflows/{id}/simulate/{sample: {"document.country": "NGA", "aml.sanctions_hit": true}}PUT
/v3/workflows/{id}/ab-test/{enabled, variants: [{key, workflow_id, weight}]}GET
/v3/workflow-catalog/Node types, condition fields and operatorsGET
/v3/workflows/{id}/One workflow, with decision_mode, aml_subject, features, config and used (number of sessions)PATCH
/v3/workflows/{id}/Rename or change settings: {workflow_label, description, config}. config is merged into the current settingsDELETE
/v3/workflows/{id}/Only while used is 0. Returns 409 workflow_in_use otherwiseGET
/v3/workflows/{id}/embed/The workflow's link for your key's mode, plus embed.button, embed.inline and embed.iframe code#Settings that matter most
config key | Values | Meaning |
|---|---|---|
decision_mode | automatic (default), auto_onboard, approve_or_review, manual_all | Who makes the final call. auto_onboard onboards users automatically. See Workflows |
auto_retry_max | 0–5 (default 2) | With auto_onboard: how many times a user may redo a step they can fix before the session goes to review |
ai_detection_strictness | relaxed (ML ≥ 0.95), balanced (≥ 0.90, default), strict (≥ 0.75) | AI-generated / deepfake face check. The ML score alone never holds a session: it also needs an injected or virtual camera, generator metadata or a C2PA AI label, a failed colour flash or failed liveness. With liveness and colour flash passed, a high score is only a warning. The decision's checks.ai_face shows the score, the threshold and the signs |
aml_subject | null (full KYC), person, entity | AML-only workflows that ask for a name (or company name) and screen it |
capture_device | any, mobile_only, desktop_only | Where capture may run |
vpn_policy | allow, flag, review, decline | How VPN users are treated |
ongoing_aml, adverse_media | true or false | Monitoring and negative-news screening |
bash
curl -X PATCH https://{{HOST}}/v3/workflows/wf_.../ -H "x-api-key: sk_..." -H "Content-Type: application/json" \
-d '{"workflow_label":"Retail onboarding","config":{"decision_mode":"manual_all"}}'