Skip to navigation

Decisioning

Watch: KYC Decision Rules: Stop Approving Customers You Can't Explain (3:47)

In this video you will see how approve, decline and review rules are read in order, and where the rule that decided appears on a verification. Everything it covers is also written out below.

Every workflow can carry a decision graph: server-side logic that runs after a verification reaches a terminal state, branches on the verification, entity, identity, screening, and fraud data, and lands on a decision: approve, decline, or review. It’s the difference between “the ID checked out” and “this customer is onboarded.”

You build the graph in the workflow builder (a simple ordered rule list, or an advanced canvas). Decisioning is optional: a workflow with no graph simply completes and reports the raw verification result.

How a run works

When a verification finishes, the engine starts a run:

  1. It gathers the run’s data: the verification result, the resolved entity and global identity, any screening results, and the Device Intelligence signals.
  2. It walks the graph from the start node, evaluating each branch and executing each action.
  3. It lands on a terminal status node, which sets the outcome.
  4. It records the full path it took (the trace) and fires the workflow.run.completed webhook.

Runs are one-per-verification and idempotent, so a retried or re-processed verification never decides twice.

Node types

NodeWhat it does
BranchEvaluates a condition over the field namespace and takes the true or false edge.
ActionA side effect: tag the run, fire a workflow.action webhook, or open a case for an investigator. Actions never stop the flow.
Screening / key-peopleWaits for AML screening (or KYB key-people verification) to resolve before continuing, up to a timeout.
StatusTerminal. Sets the outcome: approve, decline, or review.

Outcomes

A status node’s outcome writes the entity’s disposition (the compliance decision on the person or business), but never overrides the verification’s own result:

OutcomeEntity dispositionMeaning
approveAPPROVEDOnboard the customer.
declineREJECTEDReject the customer.
reviewUNDER_REVIEWA human should look before you act.

The outcome arrives on the workflow.run.completed webhook. What you do with it (grant access, hold the account, notify your ops team) is up to your backend.

Completion and its notification intent are committed together. Delivery retries reuse the event ID and do not reapply an old disposition over a later decision. Use externalUserId to correlate the customer, deduplicate the signed event and read current state before lifting a restriction. Face-reuse findings arrive after verification and can start a separate signal policy; see verification device and face findings.

Field reference

Branch conditions read a closed namespace of fields. Unknown paths are rejected when you publish (so a typo surfaces immediately rather than silently never matching), and a null value fails the comparison closed. Use the exists operator to test presence.

Operators: eq, neq, gt, gte, lt, lte, in, nin, contains, exists. Conditions combine with all (AND), any (OR), and not.

verification.*: the check result

FieldExample values
verification.statusVERIFIED, FAILED, NOT_FOUND, ERROR
verification.reasonCodeselfie_mismatch, document_expired, … (see Errors)
verification.assuranceLevelchip, gov_db, document, record_lookup (how strongly it passed; a run with a workflow is never record_lookup)
verification.country / .idType / .nationality / .gender—
verification.dataMatch / .facialMatchtrue / false
verification.nameMatch / .dateOfBirthMatchtrue / false, null when not compared. Read these when your workflow records identity mismatches instead of failing on them
verification.facialConfidence0–100
verification.facialMatchSourcegov_record, chip, document: which photo the selfie was compared with, null when no comparison ran. A document match used the photo printed on the ID, which is weaker evidence
verification.documentPhotoNoFacetrue when the photo printed on the document was the only photo to compare the selfie with, no face could be read on it, and your workflow sends that case to review. Null unless the checks passed
verification.livenessVideoMissingtrue when the flow ran a liveness check, its recording did not arrive or could not be read, and your workflow sends that case to review. Null unless the checks passed
verification.ageinteger, when the date of birth is known
verification.documentExpired / .documentExpiresInDays—
verification.cameraSuspecttrue when capture-integrity signals flag injection
verification.documentInjectiondetected, clear or not_checked: whether the document was captured live by the device camera rather than fed in by a virtual camera, a looped or generated feed, or a swapped photo. not_checked for an uploaded document, a server submission or a capture that could not be compared. Null when no document capture was judged. Injection attack detected on the ID Verification step (documentInjection) declines a detected capture by default; set it to Review to send it to review instead (no rule needed), or Approve to only record it
verification.poaStatus / .poaNameMatch / .poaDocumentAgeDaysProof-of-Address result
verification.nfcStatus / .nfcAuthentic / .nfcDataMatchNFC chip result
verification.nationalNumberOutcomematched, found, mismatch, not_found, no_number or not_run: the lookup of the national number a passport carries. Null when none ran
verification.bankAccountOutcomepassed, review, failed or not_run: what the bank account step did. Null when the flow had no bank step
verification.nameMatchOutcomeclose_passed or close_review when a name’s match score fell just below the workflow’s threshold (within 10). Null when every name agreed or none was compared

entity.* / identity.*: the person across your org and the network

entity.exists, entity.riskTier (LOW/MEDIUM/HIGH), entity.riskScore, entity.disposition, entity.status, entity.kycProvenance, identity.exists, identity.trustState (VERIFIED/FLAGGED/UNVERIFIED, the cross-org network signal).

screening.*: sanctions / PEP / adverse media / crypto wallets

screening.active, screening.pending, screening.anyMatch, screening.confirmed, screening.sanctions.status, screening.pep.status, screening.adverseMedia.status, screening.wallet.status (null when no wallets are attached), screening.maxMatchScore.

device.* / ip.*: Device Intelligence

device.matchedEntities (other ID numbers seen on the device), device.matchedPeople (other people seen on the device), device.emulator, device.attempts24h (attempts from this device in the last 24 hours), device.recovered (the same physical device back under a new install), device.linkedDeclined (other people declined for fraud on this device), device.sessionDevices (devices behind this session’s photos and submission), device.rooted, device.virtualCamera, device.attestation (verified, failed or unavailable; null when the app did not attest), ip.country, ip.type, ip.datacenter, ip.tor, ip.countryMismatch, ip.timezoneMismatch and ip.expectedMatch (exact, network, operator, country or different; null when the session was created without an expected IP address).

What the workflow’s own Device Intelligence settings decided, all null unless the verification passed: device.review (a finding the workflow sends to review), device.ruleResult (the finding that decided: clear, country_not_allowed, app_integrity_failed, declined_device, virtual_camera, emulator, rooted_device, tor_exit, multiple_devices, expected_ip_mismatch, privacy_network, timezone_mismatch, recovered_device, shared_device, repeated_attempts or ip_country_mismatch) and ip.countryAllowed (whether the geofence allows the IP’s country; null when geofencing is off or the IP has no known country). A finding set to Review sends the verification to review on its own, even when your rules would approve it, so no rule on device.review is needed. A rooted or jailbroken device and a replaced camera feed (virtual_camera) go to review unless you choose otherwise.

email.* / phone.*: contact verification

email.verified, email.disposable, email.freeProvider, email.domain, phone.verified, phone.country, phone.countryMismatch, phone.lineType (mobile, fixed_line, voip, toll_free, and similar; null when the number range is unknown), phone.virtual (true only for a known VoIP range), phone.matchedVerifications (how many other verifications in your organisation verified the same number, a soft reuse signal) and phone.attempts (codes entered before the one that verified).

Where email risk scoring is turned on for your workspace, a verified email also carries email.riskScore (0 to 100), email.riskLevel (low below 30, medium from 30, high from 60), email.matchedVerifications (how many other people in your organisation verified the same inbox, counting jane+x@ and Gmail’s dotted spellings as one; a soft signal, since families share inboxes), email.role (a team mailbox such as info@), email.privacyRelay (Apple Hide My Email, DuckDuckGo and similar, which forward to a real inbox), email.machineMade (the name before the @ looks generated) and email.domainAgeDays (days since the domain was registered; null when the registry does not say). A fact that could not be established is null and adds nothing to the score. The email step can act on the level by itself: set Medium risk and High risk to approve, review or decline in the step’s settings (emailVerification.riskActions). Approve, the default, only records the score. Review sends a passed verification to review even when your rules would approve it, so no rule is needed. Decline fails it with the reason code email_risk_declined. What was chosen is readable as email.riskAction, and email.review is true when it sent the verification to review. In production an address whose domain publishes no mail server is refused before a code is sent, and the applicant corrects it in the same step. Besides the two levels, the email step acts on single findings: Disposable email, Duplicated email (another person in your organisation verified the same inbox), Breached email and Fraud at another organisation, each approve, review or decline. All approve unless you choose otherwise, except Fraud at another organisation, which sends to review. When several apply, the strictest wins, and email.riskActionCause says which one decided. email.crossOrgFraud counts other organisations using Toden that declined someone with the same inbox for fraud; which ones is never shared. Where the breach check is available, and switched on in the email step (a priced add-on), a verified email also carries email.breached, email.breachCount, email.breachFirstYear and email.breachPasswordsExposed. The email step can also ask for work addresses only (a personal email service such as Gmail is refused before a code is sent), send codes of letters and digits, and limit how many codes one address may be sent per hour. The email and phone steps can also decline after the last attempt: when the applicant enters a code wrongly as many times as the step allows (3 by default), the session is declined instead of offering a new code, as some identity providers do. The step is charged, the session’s status becomes declined with the reason code contact_attempts_exceeded, your endpoints receive session.declined, and the applicant is told the verification has ended. Off, the default, the code field is disabled until the applicant requests a new code. The reasons behind a score are returned with it as riskReasons: disposable_domain, disposable_mail_server, new_domain, shared_inbox, linked_to_declined, machine_made, role_address, privacy_relay, cross_org_fraud, no_breach_history, recent_password_breach and long_breach_history (the one reason that lowers a score: years of breach history mean a lasting inbox).

business.* / keyPeople.*: KYB

business.companyStatus, business.nameMatch, business.addressMatch, business.ageYears, keyPeople.anyFlagged, keyPeople.allCleared, keyPeople.cddComplete, keyPeople.kycComplete, keyPeople.kycFailed, keyPeople.corporate, keyPeople.ownershipUnresolved, and more, for business workflows. The key-people roll-up is listed in full in Key people & ownership.

questionnaire.<key>: the answers to any questionnaire the flow asks, keyed by question.

list.<key>: whether the verification is on one of your custom lists: true, false, or null when the verification has nothing of the list’s type.

country.*: your High-risk countries list

country.documentHighRisk, country.ipHighRisk, country.phoneHighRisk, country.anyHighRisk. Null when the country is not known.

The workflow.run.completed webhook

When a run reaches a terminal outcome, you receive:

{
"event": "workflow.run.completed",
"data": {
"runId": "wfr_01j9xyz…",
"workflowId": "wf_AbC123dEf456",
"workflowVersion": 3,
"verificationId": "ver_01j9xyz456",
"entityId": "ent_01j9…",
"outcome": "approve",
"tags": ["network-verified"],
"environment": "PRODUCTION",
"completedAt": "2026-07-12T12:00:00.000Z"
}
}

Related events:

  • workflow.action: fired by a webhook action node mid-graph ({ runId, workflowId, verificationId, entityId, nodeId, note }).
  • workflow.run.failed: the engine could not finish a run (a broken graph or crash loop). This is an engine fault, not a decline, so never treat it as one.
  • verification.status_updated: fires alongside workflow.run.completed, with source: "workflow", whenever the verdict moves the verification’s top-line status (for example from processing to in_review). The same event covers a decision made by a reviewer or by your backend, so one handler can keep your record current whoever decided. See Status changes.

See Webhooks for signing, retries, and the full event list.

Notes

  • The graph is immutable per run: a run is pinned to the workflow version and graph snapshot it started with, so re-publishing never changes an in-flight decision.
  • A screening node waits only for the first resolution; later re-screens are handled by ongoing monitoring, not re-decisioning.
  • For KYB, the key-people gate holds the decision, never the business verification itself. The registry result is terminal the moment it’s done; the onboarding decision waits for the people.