Before you start
- A key or a member allowed to write cases (
cases:write): an Owner, Admin or Analyst, or a Developer in test mode. - A verification profile: what the person is asked for, such as an ID document and a selfie. With none named, the workspace’s default is used.
- In test mode nothing is billed. See Test identity verifications.
curl -X GET https://api.kontiga.com/v1/verification_profiles \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/verification_profiles
Start the verification
curl -X POST https://api.kontiga.com/v1/identity_verifications \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"person": {
"reference": "CUST-88412",
"first_name": "Liam",
"last_name": "Byrne",
"email": "liam.byrne@mail.example"
},
"profile_id": "vpr_4Tk9Bm2",
"deliver": "email",
"reference": "LOAN-55120"
}'POST /v1/identity_verifications
The answer is the verification, not_started, with its link: the url the person opens and expires_at, and sent_on, where the link went. qr: true adds qr_png_base64. For the widget or an SDK, mint a session token with identity_verifications.session_token. The person sees your brand kit, in locale or their own language. A live start that nothing covers answers 402 insufficient_credit, with details.reason.
Send the link
In test mode a link goes only to your team members' own email addresses, and no text message is sent: to anyone else nothing goes out and sent_on is null. Open link.url yourself to play the person.
To send it again, on the same channel or another:
curl -X POST https://api.kontiga.com/v1/identity_verifications/idv_6Wn3Rk8/resend \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"channel": "sms"
}'POST /v1/identity_verifications/{verification_id}/resend
A link works for the profile’s lifetime_hours. identity_verifications.extend gives it more time.
Follow it
Subscribe a webhook endpoint to Verify’s events, each signed with Kontiga-Signature: identity_verification.started when the person begins, identity_verification.queued_for_review when a person must decide, and identity_verification.completed with the result. An event carries ids and statuses only; read the verification with your key for the rest. Every event: Following a verification.
curl -X GET https://api.kontiga.com/v1/identity_verifications/idv_6Wn3Rk8 \
-H "Authorization: Bearer $KONTIGA_API_KEY"GET /v1/identity_verifications/{verification_id}
Read the result
resultispassed,failedorneeds_review.decided_bysays whether Kontiga’s rules, a person or an expert decided, with the reason in words.- Each of
stepshas itsstatusand what was found, in plain words. id_documentholds what was read from the ID.selfieholds the face match with itssimilarity, and liveness with itsliveness_score, each from 0 to 100.- The person is never told the result or a finding.
When a person must decide
A verification the rules are unsure about goes to needs_review and onto the review list. A member approves or rejects the step in review, or decides the whole verification. The profile’s decision.when_unsure sets who: your team, experts (an add-on), or accept or reject. See How a result is decided.
curl -X POST https://api.kontiga.com/v1/identity_verifications/idv_6Wn3Rk8/steps/liveness/review \
-H "Authorization: Bearer $KONTIGA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"decision": "approve",
"reason": "live_person",
"note": "The stills show him turning his head as asked."
}'POST /v1/identity_verifications/{verification_id}/steps/{step}/review
Ask again, or stop
identity_verifications.redoasks for named steps again, with a reason the person reads. Never give a fraud finding as the reason.identity_verifications.cancelstops one not yet decided; its link stops working.identity_verifications.reportgives the PDF report in your brand kit.
What is billed
One identity verification, whatever its steps, counted the first time it reaches passed, failed or needs_review. Nothing is counted when it expires or is cancelled before a result, or when every step is reused. Each proof of address or of funds file is billed as Detect bills a file. Test mode never bills. See Pricing.