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,
});| Field | Values |
|---|---|
kind | kyc or kyb |
level | l1 to l4 (Levels and checks) |
decision_mode | auto, auto_review (default: the grey zone goes to review), manual, auto_audit (10% of approvals sampled for a second look) |
requirements.checks | Checks added to those of the level |
requirements.validity_days | A shorter validity than the level's |
allowed_countries | ISO alpha-2; a document of another country is declined |
screening_jurisdictions | Sanctions lists screened in addition to the defaults; US (OFAC) is always screened |
accept_reuse, reuse_max_age_days | Accept an attestation the person already holds (Reusable identity) |
four_eyes | Two different reviewers approve a session in review |
review_sla_hours | Target 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
| Check | How |
|---|---|
document | Fields and MRZ read, check digits computed, expiry and consistency with the declared data |
document_authenticity | Signs of a screen photo, a copy, an edit or a crop |
face_match | Selfie against the portrait of the document |
liveness | Passive liveness of the selfie |
duplicate | The same document already used by another customer of your platform |
sanctions, pep | OFAC, UN and the lists of the jurisdictions of the flow |
proof_of_address | Holder and date (three months at most) |
crypto_address | A wallet address the person declares, screened against sanctioned and flagged addresses |
source_of_funds, source_of_wealth, edd_questionnaire | Evidence required, assessed by a reviewer |
company_registry, ubo, key_people_kyc | KYB: 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
- Missing evidence →
resubmission_requested. - A failure established by computation (expired document, invalid MRZ) →
rejected. - A check in review or in error, a mandatory check not run, a sanctions or PEP match, level L4 or
manualmode →review. - Otherwise the decision model reads the signals (no image, no name): high confidence →
approved, otherwisereview.
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.

