# The verification client API

> Kontiga is document fraud detection by Bynn Intelligence for insurers, letting agents, lenders and HR screening teams: every document is compared with a proprietary library of more than 300 million original documents, gathered over 20 years.

Documentation index: https://kontiga.com/llms.txt

Section: Guides. URL: https://kontiga.com/docs/guides/verify-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 December 1, 2026

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**

```bash
curl https://api.kontiga.com/v1/verify/session \
  -H "Authorization: Bearer kt_vst_263a4dbe41488fb87214b0032339dbb9f0c8da14c16dfcf13084bf3c2552eca5" \
  -H "Kontiga-Client: web/2026.11.2"
```

**The answer**

```json
{
  "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

| Route | What it does | Reference |
| --- | --- | --- |
| `GET /v1/verify/session` | The next screen | [Read a verification session](https://kontiga.com/docs/portal#read-a-verification-session) |
| `GET /v1/verify/session/live` | The next screens, as they change | [Follow a verification's next steps](https://kontiga.com/docs/portal#follow-a-verifications-next-steps) |
| `POST /v1/verify/session/consent` | Agree, or refuse | [Agree to a verification](https://kontiga.com/docs/portal#agree-to-a-verification) |
| `POST /v1/verify/session/method` | Choose how to verify | [Choose how to verify](https://kontiga.com/docs/portal#choose-how-to-verify) |
| `POST /v1/verify/session/id_document` | One side of the ID | [Send a photo](https://kontiga.com/docs/portal#send-a-photo-of-the-id) |
| `POST /v1/verify/session/liveness` | The selfie | [Send the selfie](https://kontiga.com/docs/portal#send-the-selfie) |
| `POST /v1/verify/session/chip/challenge` | A challenge for one chip read | [Get a chip challenge](https://kontiga.com/docs/portal#get-a-chip-challenge) |
| `POST /v1/verify/session/chip/evidence` | What the chip gave | [Send what the chip gave](https://kontiga.com/docs/portal#send-what-the-chip-gave) |
| `POST /v1/verify/session/phone` | A code to a phone | [Send a code to a phone](https://kontiga.com/docs/portal#send-a-code-to-a-phone) |
| `POST /v1/verify/session/phone/check` | The phone's code | [Check a phone code](https://kontiga.com/docs/portal#check-a-phone-code) |
| `POST /v1/verify/session/email` | A code to an email address | [Send a code to an email address](https://kontiga.com/docs/portal#send-a-code-to-an-email-address) |
| `POST /v1/verify/session/email/check` | The email's code | [Check an email code](https://kontiga.com/docs/portal#check-an-email-code) |
| `POST /v1/verify/session/proof_of_address` | A proof of address | [Send a proof](https://kontiga.com/docs/portal#send-a-proof) |
| `POST /v1/verify/session/proof_of_funds` | A proof of funds | [Send a proof of funds](https://kontiga.com/docs/portal#send-a-proof-of-funds) |
| `POST /v1/verify/session/aadhaar` | An Aadhaar | [Send an Aadhaar](https://kontiga.com/docs/portal#send-an-aadhaar) |
| `POST /v1/verify/session/zoreal` | Continue with ZOREAL ID | [Continue with ZOREAL ID](https://kontiga.com/docs/portal#continue-with-zoreal-id) |
| `POST /v1/verify/session/handoff` | Continue on another device | [Continue on another device](https://kontiga.com/docs/portal#continue-on-another-device) |
| `POST /v1/verify/sessions/handoff/{code}` | Take over on this device | [Open a verification on this device](https://kontiga.com/docs/portal#open-a-verification-on-this-device) |
| `PATCH /v1/verify/session` | Correct the details given | [Correct the details](https://kontiga.com/docs/portal#correct-the-persons-details) |
| `POST /v1/verify/session/cancel` | Stop | [Stop a verification](https://kontiga.com/docs/portal#stop-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](https://kontiga.com/docs/identity-verifications#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_screen` | The profile's consent words, before any capture. |
| `method_choice_screen` | The ways to verify the profile offers: `parameters.methods`. |
| `app_handoff_screen` | Kontiga'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_screen` | A 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_screen` | Reading the chip, in an app. |
| `electronic_identity_screen` | ZOREAL ID or Aadhaar: `parameters.method`, and `parameters.state`, `waiting` or `checking`. |
| `liveness_screen` | The selfie. |
| `phone_verification_screen`, `email_verification_screen` | A code. |
| `proof_of_address_screen`, `proof_of_funds_screen` | A proof, as a photo or a file. |
| `continues_elsewhere_screen` | On a device that only follows: the steps done elsewhere, `parameters.steps`. |
| `completed_screen` | Nothing waits for the person. |
| No `show` | Nothing 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

| Call | Answer |
| --- | --- |
| A start, a link's token exchanged, a handoff code | `201`, `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/session` | `200`, `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_kit` | What 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, stopping | `status` (`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 checked | `status` (`sent`, `accepted`, or `failed` once the tries are used up), `change` and the `preflight`. |
| The selfie | `202`, `verification: received`, its token, `image_count` and `video_stored`; or `200`, `duplicate_ignored`. |
| A chip challenge | `201`, `chip_challenge`: the `challenge` and `expires_at`. |
| The chip's evidence | `read`, `change` and the `preflight`. Never whether the chip was trusted. |
| A handoff | `201`, `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 ID | `201`, `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

| Answer | Means |
| --- | --- |
| `400 invalid_input` | A field, or the `Kontiga-Client` header, is not in the contract's form: `issues` names it. |
| `401 unauthenticated` | No session token in `Authorization: Bearer`, or another credential: send the session token. |
| `401 session_expired` | The 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_allowed` | A browser origin the publishable key does not list. |
| `403 workspace_suspended` | The workspace is paused for now. |
| `403 walk_in_off` | The walk-in link is off. |
| `404 not_found` | No such link, handoff code or verification. |
| `409 verification_closed` | It ended: `details.state` is `cancelled` or `completed`. |
| `409 device_not_active` | Another device holds the verification. The person can continue here instead. |
| `409 step_not_waiting` | A capture for a step that is not waiting for one, or another Aadhaar file while one is being checked. |
| `409 test_mode_recipient` | A test verification's code goes only to a member of your workspace: send it to a member's address or number. |
| `409 capture_in_progress` | Another 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_reached` | The 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 conflict` | The details of a verification your server made cannot be changed from a device; or the verification changed meanwhile: try again. |
| `451 no_consent` | A capture before consent. |
| `415 invalid_file_type` | A 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_large` | Above the limits. |
| `422 invalid_images` | A selfie with no stills, or more than five. |
| `400 invalid_input` on `phone_number` | A number that cannot take a text: enter it with its country code, such as +46 70 123 45 67. |
| `400 invalid_email` | An address that cannot take a code. |
| `400 code_invalid` | A wrong code. |
| `400 code_expired` | The right code, after its 10 minutes. Ask for a new one. |
| `429 code_limit_reached` | Too many codes sent or tried, with `retry_after`. |
| `410 challenge_expired` | A 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_unavailable` | The chip could not be checked just now: the step still waits. Read it again after `Retry-After`. |
| `429 rate_limited` | Too many calls, with `Retry-After`. |
| `429 handoff_limit_reached` | No more links by text message for now, with `Retry-After`: show the QR code. |
| `426 client_outdated` | This 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 unavailable` | Busy 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.
