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_entity
POST/v3/workflows/Create from a template, or create and publish from a list of features or a graph
bash
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 test
PUT/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 invalid
POST/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 operators
GET/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 settings
DELETE/v3/workflows/{id}/Only while used is 0. Returns 409 workflow_in_use otherwise
GET/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 keyValuesMeaning
decision_modeautomatic (default), auto_onboard, approve_or_review, manual_allWho makes the final call. auto_onboard onboards users automatically. See Workflows
auto_retry_max0–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_strictnessrelaxed (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_subjectnull (full KYC), person, entityAML-only workflows that ask for a name (or company name) and screen it
capture_deviceany, mobile_only, desktop_onlyWhere capture may run
vpn_policyallow, flag, review, declineHow VPN users are treated
ongoing_aml, adverse_mediatrue or falseMonitoring 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"}}'