Skip to content

GuidesVerify

The verification client API

What an end customer’s device calls while they verify: the portal, the widget, Kontiga’s app and the SDKs. One session token in a header, the next screen to follow, every capture answered at once, never a result.

Updated

Ask about this pageRead this page as Markdown

Your own code starts verifications and reads their results with your secret key; it never needs these calls. They are the contract Kontiga’s portal, widget, app and SDKs keep, set out so a page or an app can be checked against it.

The session

  • A device verifies on a session token: kt_vst_ and 64 hex digits. A link’s token, the end of the link’s address, is exchanged for one once, with POST /v1/verify/sessions and link_token; identity_verifications.session_token gives one to your page or app; a start with a publishable key, at a walk-in link or by a handoff code answers one.
  • Send it as Authorization: Bearer <token>, never in an address or a body. The CLI and the MCP tools take it as session.
  • It belongs to one device and works for 30 minutes, renewed while in use. One device sends the captures at a time (active); another follows (continues_elsewhere_screen) until it continues here (POST /v1/verify/session/handoff with kind: here). A token your server gives a native app or SDK takes the verification over at once, so a relaunch with a new token goes on where it was. Another device continues by a handoff code (kt_vho_), which works once, for 10 minutes.
  • Send Kontiga-Client: <platform>/<version>, the platform one of web, app (Kontiga’s app), ios, android, react-native or flutter, such as ios/2026.11.0. Without it the caller is taken as Kontiga’s own portal. A read whose next screen that version cannot show answers 426 client_outdated; a write is always answered as it went.
  • A browser calls from Kontiga’s portal, or from an origin a publishable key lists; any other origin answers 403 origin_not_allowed. A native app sends no origin: its start needs a publishable key with allow_native (set it when you create or change the key).
  • No token, or another credential (a secret key, a token in the address), answers 401 unauthenticated. 401 session_expired is a session token that has ended.
Read the next screen
curl https://api.kontiga.com/v1/verify/session \
  -H "Authorization: Bearer kt_vst_263a4dbe41488fb87214b0032339dbb9f0c8da14c16dfcf13084bf3c2552eca5" \
  -H "Kontiga-Client: web/2026.11.2"
The answer
{
  "object": "verification_session_state",
  "verification_id": "idv_4Hq7Nc2",
  "mode": "live",
  "token_expires_at": "2026-11-26T10:42:40Z",
  "change": 3,
  "preflight": {
    "extra_data": {},
    "session": "idv_4Hq7Nc2",
    "session_id": "idv_4Hq7Nc2",
    "entity_id_state": "front_received_awaiting_back",
    "entity_id_document_type": "id_card",
    "requirement": { "requirement_type": "identity_document", "status": "awaiting_receipt", "flow_order": 100 },
    "screen": {
      "show": "scan_id_document_back_screen",
      "parameters": { "camera": "back", "camera_quality": "ultra", "allow_manual_upload": false, "multipage": false, "title": null, "text": null }
    }
  },
  "return_url": "https://brightwater.example/branch/thanks",
  "live": "/v1/verify/session/live"
}

The flow

  1. GET /v1/verify/session answers the preflight: the screen to show next, its parameters, and what to fix in the last capture.
  2. GET /v1/verify/session/live sends the preflight again after every change, as server-sent events. Each event’s id counts the verification’s changes: reconnect with Last-Event-ID and nothing is missed (an id ahead of the verification starts again from the current preflight), after the retry wait the first event gives. An end event says why the stream closed: session_expired, verification_closed, client_outdated, reconnect (connect again) or unavailable, with state when the verification ended.
  3. POST /v1/verify/session/consent comes before any capture. A capture without it answers 451 no_consent.
  4. POST /v1/verify/session/method chooses the way to verify, when the profile offers more than one.
  5. Then each step the preflight asks for: the ID’s sides, the selfie, the chip, a code, a proof. A capture answers 202 at once and its judgement arrives on the live channel; a code and the chip’s evidence answer 200.
  6. When nothing waits for the person, the preflight says so, and the page or app shows its last screen.
Every route of the contract
RouteWhat it doesReference
GET /v1/verify/sessionThe next screenRead a verification session
GET /v1/verify/session/liveThe next screens, as they changeFollow a verification’s next steps
POST /v1/verify/session/consentAgree, or refuseAgree to a verification
POST /v1/verify/session/methodChoose how to verifyChoose how to verify
POST /v1/verify/session/id_documentOne side of the IDSend a photo
POST /v1/verify/session/livenessThe selfieSend the selfie
POST /v1/verify/session/chip/challengeA challenge for one chip readGet a chip challenge
POST /v1/verify/session/chip/evidenceWhat the chip gaveSend what the chip gave
POST /v1/verify/session/phoneA code to a phoneSend a code to a phone
POST /v1/verify/session/phone/checkThe phone’s codeCheck a phone code
POST /v1/verify/session/emailA code to an email addressSend a code to an email address
POST /v1/verify/session/email/checkThe email’s codeCheck an email code
POST /v1/verify/session/proof_of_addressA proof of addressSend a proof
POST /v1/verify/session/proof_of_fundsA proof of fundsSend a proof of funds
POST /v1/verify/session/aadhaarAn AadhaarSend an Aadhaar
POST /v1/verify/session/zorealContinue with ZOREAL IDContinue with ZOREAL ID
POST /v1/verify/session/handoffContinue on another deviceContinue on another device
POST /v1/verify/sessions/handoff/{code}Take over on this deviceOpen a verification on this device
PATCH /v1/verify/sessionCorrect the details givenCorrect the details
POST /v1/verify/session/cancelStopStop a verification
The live channel
id: 4
event: preflight
data: {"change":4,"preflight":{...},"return_url":"https://brightwater.example/branch/thanks"}

event: end
data: {"reason":"verification_closed","state":"cancelled"}

A page starts a verification itself with POST /v1/verify/sessions and a publishable key: see Start a verification with a publishable key.

The preflight

  • screen.show is the screen to show and screen.parameters how: the camera to open, whether a file may be chosen instead, the methods offered.
  • requirement is the step the screen is for, and entity_id_state where the ID’s capture stands: none_received, front_received_awaiting_back, id_received_awaiting_liveness, completed and the states asking for a side again.
  • extra_data says what to change about the last photo, when it must be taken again. proof_of_address and proof_of_funds carry a proof’s answer: received, or rejected with the reason in words.
  • change counts the verification’s changes; return_url is where the done page goes.
The screens
`screen.show`Shows
consent_screenThe profile’s consent words, before any capture.
method_choice_screenThe ways to verify the profile offers: parameters.methods.
app_handoff_screenKontiga’s app offered for the chip, on a phone’s browser; parameters.required when the profile requires the chip. When it does, every browser, a phone’s or a computer’s, is shown this screen (a QR code to the app on a computer) and sends no ID photo until the chip is read in the app or the device says it cannot be read (not_read), which sends the verification to review.
scan_id_document_front_screen, scan_id_document_back_screenA side of the ID. parameters.state: checking while the photo just sent is being checked: show that it is checking and wait for the next preflight on the live channel.
nfc_capture_screenReading the chip, in an app.
electronic_identity_screenZOREAL ID or Aadhaar: parameters.method, and parameters.state, waiting or checking.
liveness_screenThe selfie.
phone_verification_screen, email_verification_screenA code.
proof_of_address_screen, proof_of_funds_screenA proof, as a photo or a file.
continues_elsewhere_screenOn a device that only follows: the steps done elsewhere, parameters.steps.
completed_screenNothing waits for the person.
No showNothing is asked now: a capture is being checked. Show that it is checking; the next preflight arrives on the live channel.

The method choice, the app’s offer, an electronic identity, a following device and the chip need a client of version 2026.11.0 or later, and the chip a platform that reads one: an older client is answered 426 client_outdated rather than shown a screen it does not know.

What each call answers

Answers
CallAnswer
A start, a link’s token exchanged, a handoff code201, verification_session: the token, expires_at, verification_id, active (this device sends the captures), locale, right_to_left, organisation, brand_kit and live.
GET /v1/verify/session200, verification_session_state: change, preflight, return_url, live, with verification_id (the verification’s one id; the preflight’s session repeats it), status (open, or submitted once nothing waits for the person), mode, token_expires_at and brand_kit.
brand_kitWhat to draw: the organisation’s name, brand_color and accent_color, privacy_url and terms_url, the consent screen’s consent_text (the profile’s words, else Kontiga’s) and consent_link, hide_kontiga, return_url, and is_test.
Consent, the method, an ID side, a proof, an Aadhaar, stoppingstatus (accepted, received, analyzing or cancelled), change and the preflight. A capture answers 202; the same file again within 5 minutes answers 200, duplicate_ignored, and is not taken twice. Once a verification is stopped the preflight shows no screen.
A code sent or checkedstatus (sent, accepted, or failed once the tries are used up), change and the preflight.
The selfie202, verification: received, its token, image_count and video_stored; or 200, duplicate_ignored.
A chip challenge201, chip_challenge: the challenge and expires_at.
The chip’s evidenceread, change and the preflight. Never whether the chip was trusted.
A handoff201, verification_handoff: its kind (qr or sms), the url, expires_at, sent, sent_to (the number’s last two digits) and, for a QR code, qr_png_base64.
ZOREAL ID201, zoreal_sign_in: the url to open, expires_at and, for a QR code, qr_png_base64.

What never comes back

No answer to a device carries the decision, a finding, a score or whether the chip was trusted, and the person is never told the result. Your server hears it by webhook, or reads it with your secret key.

When a verification has ended

  • Every call on it, the link’s exchange and the live channel’s end event say how it ended in details.state (state on the event), so the page shows the right last screen and an SDK knows whether a new token would help.
  • expired: 401 session_expired. The link has expired; a new token would not help. Your server can extend the verification or start a new one.
  • cancelled: 409 verification_closed. It is no longer active.
  • completed: 409 verification_closed. It is already complete, passed or failed alike: the result is never told.
  • A plain 401 session_expired, with no state, is the token alone: unknown, unused for 30 minutes or revoked. Your server gets a new token for the same verification.
  • A start from a walk-in link or a publishable key is always a new person in People, whatever details are typed: nothing a page types names someone already there, and every step is asked for. Its details can be corrected with PATCH /v1/verify/session before consent; a verification your server made keeps the person it named.
  • A publishable key and a walk-in link are public, so a person.reference sent with a publishable key, a walk-in’s identifier and an identifier corrected with PATCH /v1/verify/session are the person’s word, not yours: each is kept as metadata.client_reference, never as the verification’s reference. Check it against your own session before you trust it, or create the verification from your server with your secret key to set a reference you own.
A device's call after the verification was decided
HTTP/1.1 409 Conflict

{
  "error": {
    "code": "verification_closed",
    "message": "This verification is already complete.",
    "details": { "state": "completed" },
    "doc_url": "https://kontiga.com/docs/errors#verification_closed"
  }
}

Limits

  • Per device address: 10 selfies a minute, and 60 calls a minute in all. Above either, 429 rate_limited with Retry-After.
  • A verification keeps up to 6 live channels open at once. Another is 429 rate_limited with Retry-After: close the old stream before opening a new one. A workspace’s devices, and the devices behind one address, also share a bound of open channels; past it the answer is the same, and the preflight read still works.
  • One capture of a verification is taken at a time: another sent meanwhile answers 409 capture_in_progress with Retry-After: 1. Send it again then.
  • A capture may name itself with an Idempotency-Key header, 1 to 255 visible characters. The same key on the same call within 5 minutes answers 200, duplicate_ignored, with the current state, and the file is not taken or checked again: send the same key when you retry after a lost answer.
  • A handoff by text message: one a minute and three a day for a verification, and a few a day to one number. Past them, 429 handoff_limit_reached: the QR code still works.
  • Text messages a device makes Kontiga send, codes and handoffs together, are counted per workspace a day: 50 until the workspace has paid (a card on file or a payment), then 2,000. One number takes 5 codes a day across the workspace. A premium, shared-cost, satellite or other non-geographic number, or one of a country your workspace refuses visitors from, takes none: 400 invalid_input on phone_number.
  • Email codes a device makes Kontiga send are counted per workspace a day too: 200 until the workspace has paid, then 5,000. One address takes 5 codes a day across the workspace, however it is written, and 20 a day across Kontiga. Past them, 429 code_limit_reached.
  • An ID photo is taken once the last one was answered, up to 10 a verification. One sent while the last is still being checked (the preflight says checking) is 409 capture_in_progress with Retry-After: 3, and its file is neither kept nor checked: wait for the next preflight on the live channel rather than sending again. A check that takes longer than 2 minutes no longer holds the next photo back. An Aadhaar is taken one at a time, up to 10, and another file while one is being checked is answered the same way. Past 10, 409 capture_limit_reached: waiting does not help, so the person asks for a new link.
  • A form holds at most 16 parts, each one the route takes: another part is refused at its name.
  • The selfie: 1 to 5 stills of up to 4 MB each, a video of up to 50 MB, the whole request up to 80 MB. The same capture sent again within 5 minutes answers duplicate_ignored with the first one’s answer.
  • Captures go as multipart/form-data: a side of the ID, a proof and an Aadhaar as file, up to 20 MB, a JPEG, PNG or PDF with its type read from its bytes; the selfie as its images and video parts with the rest as JSON text. Every other call takes JSON.
  • A side of the ID taken by camera also sends the camera’s few seconds around the photo as recording, WebM or MP4 up to 10 MB. It is kept as evidence under your retention and decides nothing; a recording of another type or larger refuses the photo with it, so nothing is kept.
  • A code has 6 digits and works for 10 minutes. One is sent a minute, three a day; more than three wrong codes close the step.
  • A chip challenge works once, for 5 minutes; a verification takes 20 a day. A chip that could not be checked just now answers 503 chip_unavailable with Retry-After: the step still waits, so read the chip again on a new challenge.

Errors

What a device can be answered
AnswerMeans
400 invalid_inputA field, or the Kontiga-Client header, is not in the contract’s form: issues names it.
401 unauthenticatedNo session token in Authorization: Bearer, or another credential: send the session token.
401 session_expiredThe token ran out: your server gets a new one for the same verification. With details.state: expired, the verification itself expired. A handoff code used already or past its 10 minutes answers the same: show a new code on the other device.
403 origin_not_allowedA browser origin the publishable key does not list.
403 workspace_suspendedThe workspace is paused for now.
403 walk_in_offThe walk-in link is off.
404 not_foundNo such link, handoff code or verification.
409 verification_closedIt ended: details.state is cancelled or completed.
409 device_not_activeAnother device holds the verification. The person can continue here instead.
409 step_not_waitingA capture for a step that is not waiting for one, or another Aadhaar file while one is being checked.
409 test_mode_recipientA test verification’s code goes only to a member of your workspace: send it to a member’s address or number.
409 capture_in_progressAnother capture of this verification is being taken (Retry-After: 1), or the last ID photo or Aadhaar file is still being checked (Retry-After: 3): the live channel tells when it is done.
409 capture_limit_reachedThe verification has taken all the ID photos or Aadhaar files it keeps (10 of each). No Retry-After: the person asks the organisation for a new link.
409 conflictThe details of a verification your server made cannot be changed from a device; or the verification changed meanwhile: try again.
451 no_consentA capture before consent.
415 invalid_file_typeA file type the route does not take; the message names the ones it does.
413 file_too_large, image_too_large, video_too_large, request_too_largeAbove the limits.
422 invalid_imagesA selfie with no stills, or more than five.
400 invalid_input on phone_numberA number that cannot take a text: enter it with its country code, such as +46 70 123 45 67.
400 invalid_emailAn address that cannot take a code.
400 code_invalidA wrong code.
400 code_expiredThe right code, after its 10 minutes. Ask for a new one.
429 code_limit_reachedToo many codes sent or tried, with retry_after.
410 challenge_expiredA chip challenge used, older than 5 minutes or another verification’s. A value that is not a challenge at all is 400 invalid_input on challenge.
503 chip_unavailableThe chip could not be checked just now: the step still waits. Read it again after Retry-After.
429 rate_limitedToo many calls, with Retry-After.
429 handoff_limit_reachedNo more links by text message for now, with Retry-After: show the QR code.
426 client_outdatedThis client version cannot show the next screen. Only a read or the live channel answers it, and a chip challenge asked by a browser, which reads no chip.
503 unavailableBusy for a moment: try again after Retry-After.

Versions

Within v1, changes are only added: a new field, screen or step, never a changed or removed one. A client that meets a screen it cannot show is told 426 client_outdated, so it never shows a wrong one.

The OpenAPI document, https://api.kontiga.com/openapi.json, gives every route of the tag verify-client its body, its answers with their status, its headers and the live channel’s events. A device’s call takes no server Idempotency-Key; a capture takes its own (5 minutes, the file not taken again), and without it the same file, or the same selfie, within 5 minutes answers duplicate_ignored once its body is read. Each operation lists the refusals it can answer, by status, with their codes.