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, withPOST /v1/verify/sessionsandlink_token;identity_verifications.session_tokengives 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 assession. - 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/handoffwithkind: 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 ofweb,app(Kontiga’s app),ios,android,react-nativeorflutter, such asios/2026.11.0. Without it the caller is taken as Kontiga’s own portal. A read whose next screen that version cannot show answers426 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 withallow_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_expiredis a session token that has ended.
curl https://api.kontiga.com/v1/verify/session \
-H "Authorization: Bearer kt_vst_263a4dbe41488fb87214b0032339dbb9f0c8da14c16dfcf13084bf3c2552eca5" \
-H "Kontiga-Client: web/2026.11.2"{
"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
GET /v1/verify/sessionanswers the preflight: the screen to show next, its parameters, and what to fix in the last capture.GET /v1/verify/session/livesends the preflight again after every change, as server-sent events. Each event’s id counts the verification’s changes: reconnect withLast-Event-IDand nothing is missed (an id ahead of the verification starts again from the current preflight), after theretrywait the first event gives. Anendevent says why the stream closed:session_expired,verification_closed,client_outdated,reconnect(connect again) orunavailable, withstatewhen the verification ended.POST /v1/verify/session/consentcomes before any capture. A capture without it answers451 no_consent.POST /v1/verify/session/methodchooses the way to verify, when the profile offers more than one.- Then each step the preflight asks for: the ID’s sides, the selfie, the chip, a code, a proof. A capture answers
202at once and its judgement arrives on the live channel; a code and the chip’s evidence answer200. - When nothing waits for the person, the preflight says so, and the page or app shows its last screen.
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.showis the screen to show andscreen.parametershow: the camera to open, whether a file may be chosen instead, the methods offered.requirementis the step the screen is for, andentity_id_statewhere the ID’s capture stands:none_received,front_received_awaiting_back,id_received_awaiting_liveness,completedand the states asking for a side again.extra_datasays what to change about the last photo, when it must be taken again.proof_of_addressandproof_of_fundscarry a proof’s answer:received, orrejectedwith the reason in words.changecounts the verification’s changes;return_urlis where the done page goes.
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
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
endevent say how it ended indetails.state(stateon 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 nostate, 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/sessionbefore consent; a verification your server made keeps the person it named. - A publishable key and a walk-in link are public, so a
person.referencesent with a publishable key, a walk-in’sidentifierand anidentifiercorrected withPATCH /v1/verify/sessionare the person’s word, not yours: each is kept asmetadata.client_reference, never as the verification’sreference. 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.
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_limitedwithRetry-After. - A verification keeps up to 6 live channels open at once. Another is
429 rate_limitedwithRetry-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_progresswithRetry-After: 1. Send it again then. - A capture may name itself with an
Idempotency-Keyheader, 1 to 255 visible characters. The same key on the same call within 5 minutes answers200,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_inputonphone_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) is409 capture_in_progresswithRetry-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_ignoredwith the first one’s answer. - Captures go as
multipart/form-data: a side of the ID, a proof and an Aadhaar asfile, up to 20 MB, a JPEG, PNG or PDF with its type read from its bytes; the selfie as itsimagesandvideoparts 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_unavailablewithRetry-After: the step still waits, so read the chip again on a new challenge.
Errors
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.