Verify

Guides

Connect Verify

KYC and KYB — flows, sessions, the checks, the decision and the webhooks.

Connect Verify verifies a person (KYC) or a business (KYB) along a flow, at a level from L1 to L4. Each verification is a session: created by your server, completed by the person on the hosted page, checked in the background, then decided automatically or by a reviewer.

Flows

const flow = await dc.verify.flows.create({
  name: 'Borrower onboarding',
  kind: 'kyc',
  level: 'l2',
  decision_mode: 'auto_review',
  requirements: { checks: ['proof_of_address'], validity_days: 365 },
  allowed_countries: ['US', 'CA'],
  accept_reuse: true,
  review_sla_hours: 4,
});
FieldValues
kindkyc or kyb
levell1 to l4 (Levels and checks)
decision_modeauto, auto_review (default: the grey zone goes to review), manual, auto_audit (10% of approvals sampled for a second look)
requirements.checksChecks added to those of the level
requirements.validity_daysA shorter validity than the level's
allowed_countriesISO alpha-2; a document of another country is declined
screening_jurisdictionsSanctions lists screened in addition to the defaults; US (OFAC) is always screened
accept_reuse, reuse_max_age_daysAccept an attestation the person already holds (Reusable identity)
four_eyesTwo different reviewers approve a session in review
review_sla_hoursTarget review time; review.overdue is set once it is passed

A flow can add checks or shorten validity; it never removes what the level requires. The flow answers effective_requirements, what it actually runs.

Sessions

const session = await dc.verify.sessions.create({
  flow_id: flow.id,
  subject: { reference: 'cus_10442', display_name: 'Emily Carter', country: 'US' },
  expires_in_hours: 24,
});

The answer is the session, with its hosted url and a client_token returned once. With subject.identity_id (a person linked through Connect ID), the answer also says whether an attestation can be reused: reuse.available.

States

created → in_progress → processing → approved · rejected · review · resubmission_requested. A session in review waits for a decision; a session in resubmission_requested goes back to in_progress. expired and cancelled end a session before any decision. An impossible change answers 409 VERIFY_INVALID_TRANSITION.

Decision

await dc.verify.sessions.decide(session.id, {
  decision: 'rejected',
  reasons: [{ code: 'document_expired', message: 'The license expired in 2025' }],
  note: 'Asked the customer for a passport instead',
});

A decision is taken in processing or review. rejected and resubmission_requested need at least one reason. In live mode, approving a session of a linked identity adds a signed attestation to that identity; the session carries its attestation_id.

The checks

CheckHow
documentFields and MRZ read, check digits computed, expiry and consistency with the declared data
document_authenticitySigns of a screen photo, a copy, an edit or a crop
face_matchSelfie against the portrait of the document
livenessPassive liveness of the selfie
duplicateThe same document already used by another customer of your platform
sanctions, pepOFAC, UN and the lists of the jurisdictions of the flow
proof_of_addressHolder and date (three months at most)
crypto_addressA wallet address the person declares, screened against sanctioned and flagged addresses
source_of_funds, source_of_wealth, edd_questionnaireEvidence required, assessed by a reviewer
company_registry, ubo, key_people_kycKYB: registry, beneficial owners, and a KYC of the key people

GET /verify/v1/sessions/:id/checks answers each check: its status, its score, its signals and the versions of the model, the rules and the lists it used.

How a session is decided

  1. Missing evidence → resubmission_requested.
  2. A failure established by computation (expired document, invalid MRZ) → rejected.
  3. A check in review or in error, a mandatory check not run, a sanctions or PEP match, level L4 or manual mode → review.
  4. Otherwise the decision model reads the signals (no image, no name): high confidence → approved, otherwise review.

A sanctions match never approves a session on its own: it always goes to a person.

Webhooks

verify.session.created, .processing, .review, .approved, .rejected, .resubmission_requested, .expired, .cancelled; verify.attestation.issued, .revoked; verify.proof_request.approved, .declined; verify.monitoring.alert.

On this page