Onboarding

Check a person or a business before your service takes them on. Your onboarding policy decides how deep the check goes, by the service and the amount. Each case ends with a decision: approved automatically when the result is clean and your policy allows it, otherwise a reviewer decides. Nothing is rejected automatically.

Tiers

TIERDEFAULT FORA PERSONA BUSINESS
1 · identity dataNon-financial services, e.g. holding creditsNational ID number (format and check digit), email (domain accepts mail, not disposable), phone (valid, mobile), ageThe company exists and is active
2 · full KYC / KYBFinancial services and virtual currencyTier 1, sanctions and PEP lists, adverse media, and an ID document with a selfieRegistry checks, sanctions, adverse media, ownership
3 · enhancedA loan, or an amount at or above your thresholdTier 2, court records, offshore leaksA full AML investigation

The defaults follow Israel's AML orders for payment and virtual-currency services (full identification from ₪50,000 in six months). Change them in the app under Settings → Onboarding policy: the tier for each service, the threshold, the minimum age, from which tier the ID document is needed, and which tiers approve a clean result on their own. Your compliance officer sets the real values; Verety applies them.

POST  /api/v1/onboarding

FIELDDESCRIPTION
subjectTypeperson or company. Required.
serviceTypenon_financial, financial, virtual_currency or loan. Required.
amount · currencyThe six-month volume, or the loan. In the policy's currency (ILS by default) when currency is left out; an amount in another currency isn't compared with the threshold.
tierAsk for a deeper tier than the policy gives. Never a lighter one.
personname (required), birthDate (YYYY-MM-DD), nationalId, idCountry (the country that issued it), nationality, email, phone (international format).
companyentityId from search, or country with registrationNumber.
returnUrlFor a person who verifies an ID document: the https address the verification page sends them to when done.
clientRefYour own reference, e.g. your customer id. Unique per account.
purposeWhy the subject is checked, kept with the case.
lawfulBasisMust be true: you have a lawful basis to check this subject, such as their application for your service. Required.

Answers 201 with the case at once, status running. Uses one check; a case that can't start isn't charged.

National ID numbers are validated by format and check digit for Israel, Brazil (CPF), Norway, the Netherlands, France, Germany, Belgium, Singapore, Canada and Mexico (CURP), and by format for the UK and the US; where the number encodes the date of birth, the two must agree. The number is stored encrypted and only ever shown masked (•••••6782). It's never sent to sanctions lists; it rules out namesakes there.

The ID document

From the tier your policy sets (2 by default), a person also verifies an ID document with a selfie. The case carries identityVerification.verificationUrl: send it to the person, or open it in your own app. On their phone they photograph their ID card, passport or driving licence and take a selfie; the document, liveness and face match are checked, and the document's name, date of birth and ID number are compared with what you sent. Israeli ID cards give names in Hebrew only: they are compared with the English name by transliteration. The link works for 7 days.

While the person hasn't finished, a case whose checks are done is awaiting_subject. It's decided when both are done. Verety keeps the outcome, the document's type, country, name and expiry, and its numbers masked; never the images.

GET  /api/v1/onboarding/{caseId}

FIELDDESCRIPTION
statusrunning, awaiting_subject, in_review, decided or failed (the check was given back; start again).
decisionapproved, review (waiting for a reviewer) or rejected; null while running.
riskRatinglow (clean), medium (something notable) or high (a severe finding).
tier · tierReasonThe tier and why, e.g. "financial service of 60,000 ILS, at or above 50,000".
findingsThe notable checks: { title, agent, risk, compliance, unverified, finding }.
identityVerificationstatus (pending, approved, in_review, declined, abandoned, expired), verificationUrl while pending, document, liveness, faceMatch, warnings.
subject{ type, name, country, entityId, person? }; a person's ID number only as nationalIdMasked.
decisionReason · decidedBy · reviewer · decidedAtThe latest decision: by policy or a reviewer, and who.
historyEvery decision, oldest first: { at, status, decision, risk, reason, by, from? }; from is the decision a change replaced.
checkIdThe check behind the case, kept for your records.

GET /api/v1/onboarding lists your cases, newest first: status to filter, limit 1–200 (default 50). Reading cases never uses a check.

POST  /api/v1/onboarding/{caseId}/decision

decision (approved or rejected) and reason. Decides a case in review, or one still waiting for the person. A decided case can be changed: a change needs a reason, and the earlier decision stays in history. A rejection always needs a reason.

Webhooks

Cases send onboarding.updated (the checks are done and the case waits for the person or a reviewer; or it failed) and onboarding.decided to your account's webhook, the one set in the app under Settings → Notifications. Each is tried once, then retried every hour up to 3 times. The body names the case and its outcome, with no personal details: read the case for them.

{ "event": "onboarding.decided", "id": "evt_9d1e…", "createdAt": "2026-12-01T20:41:07.512Z", "case": { "caseId": "onb_5f0c…", "status": "decided", "decision": "approved", "riskRating": "low", "tier": 2, "subject": { "type": "person", "name": "Dana Levi", "country": "IL" }, "identityVerification": { "status": "approved", "completedAt": "2026-12-01T20:40:51.004Z" }, "serviceType": "financial", "clientRef": "wallet-user-42", "findings": [], "decisionReason": "Clean result; approved automatically by the onboarding policy.", "decidedBy": "policy", "decidedAt": "2026-12-01T20:41:07.488Z", "checkId": "9b2f…" } }

Check X-Verety-Signature before you act on the body: sha256= and the hex HMAC-SHA256 of the raw body, keyed with your webhook secret. Answer with a 2xx within 10 seconds.

import { createHmac, timingSafeEqual } from 'node:crypto'; function fromVerety(rawBody, header, secret) { const expected = `sha256=${createHmac('sha256', secret).update(rawBody).digest('hex')}`; return header?.length === expected.length && timingSafeEqual(Buffer.from(header), Buffer.from(expected)); }

Example

curl -X POST -H "x-api-key: vk_live_…" -H "Content-Type: application/json" \ -d '{"subjectType":"person","serviceType":"virtual_currency","amount":20000,"lawfulBasis":true, "clientRef":"wallet-user-42","returnUrl":"https://wallet.example/verified", "person":{"name":"Dana Levi","nationalId":"123456782","idCountry":"IL","birthDate":"1990-05-04", "email":"dana@example.co.il","phone":"+972525551234"}}' \ https://app.verety.ai/api/v1/onboarding curl -H "x-api-key: vk_live_…" https://app.verety.ai/api/v1/onboarding/onb_5f0c… curl -X POST -H "x-api-key: vk_live_…" -H "Content-Type: application/json" \ -d '{"decision":"approved","reason":"Namesake: different date of birth."}' \ https://app.verety.ai/api/v1/onboarding/onb_5f0c…/decision

Errors

STATUSCODEWHEN
400lawful_basis_requiredlawfulBasis isn't true.
400invalid_subject_type · invalid_service_typeNot one of the values above.
400missing_name · invalid_birth_date · missing_company · invalid_amount · invalid_return_urlThe subject or amount can't be read; message says what to send.
400invalid_decision · reason_requiredA decision other than approved or rejected; a rejection or a change without a reason.
402 · 403insufficient_credits …No checks left, or no API access: see Errors.
404not_found · unknown_idNo such case in your account; the company wasn't found.
409duplicate_client_refA case with this clientRef exists. The check is given back.
409not_reviewable · same_decisionThe case is still running or failed; it already has that decision.
503not_startedThe check or the ID verification couldn't be started. Not charged; try again.
ON THIS PAGE