Skip to content

GuidesVerify

Verify an identity by API

Start an identity verification from your server for someone in People, someone new, or a party of a case. Send them the link or share it yourself, then act on the result your server receives.

Updated

Ask about this pageRead this page as Markdown

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

Name the person one of three ways
GiveForThen
person_idSomeone already in People.Their steps still valid are reused.
personSomeone your system knows: your reference, or first_name and last_name, with an email or a phone for the link.Found by your reference, then by the email, or added to People.
case_id with party_idA party of a case.The result is on the case, beside its documents.
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.

deliver
ValueWhat happens
emailThe link goes by email, in your brand kit. The default.
smsThe link goes by text message.
linkNothing is sent: share link.url yourself, or show its QR code.

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

  • result is passed, failed or needs_review. decided_by says whether Kontiga’s rules, a person or an expert decided, with the reason in words.
  • Each of steps has its status and what was found, in plain words.
  • id_document holds what was read from the ID. selfie holds the face match with its similarity, and liveness with its liveness_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.redo asks for named steps again, with a reason the person reads. Never give a fraud finding as the reason.
  • identity_verifications.cancel stops one not yet decided; its link stops working.
  • identity_verifications.report gives 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.

When it does not go through

Failures to plan for
AnswerMeansDo
402 insufficient_creditA live start that nothing covers.Add credit, or choose a plan.
409 verification_closedIt is decided, cancelled or expired.Start a new one, or ask for a redo.
identity_verification.expiredThe link ran out before the person finished.Start a new one; nothing was charged.