Skip to content

ReferenceEnd customers

Portal

What the end customer’s side calls: the portal, the widget and the verification app all use these, and so can a front end of your own. The link is the only credential: a request’s token, or a walk-in link’s address word and the session it starts. None of the end customer’s calls needs a key or an account. A plain fetch of a link, by a mail scanner or a chat preview, changes nothing; the person’s own actions open it, pass its gate, upload, answer and send. Nothing here ever shows the person what the checks found.

Updated

Ask about this pageRead this page as Markdown
  • A request’s link is https://collect.kontiga.com/r/{token}. The token is everything after /r/.
  • Every call answers the request as the person sees it: who is asking and why, each requirement with its slots (one per document or answer asked for), what is in, what is missing, and the gate.
  • The count counts items: required and done are the required items, optional ones are counted apart in counts. Send is possible once every required item is in and none is asked for again.
  • A link that no longer works answers its state (expired, cancelled, completed), and a workspace that cannot take documents right now answers unavailable, each with the page to show. A withdrawn request carries the reason the team gave the person, as cancel_reason.
  • Before a code gate is passed, the request names no one: request_id, first_name and collection_name are empty, so a forwarded link shows the brand and the purpose alone.
  • The brand’s logo is the image’s address on the portal’s host (/api/portal/v1/portal/brand_assets/{kit}/{upload}), public and kept by the browser: a new image is a new address. Null when the kit has none, and the page shows the brand’s two letters.
  • Refusals come in the person’s language (the session’s, the request’s, or the browser’s), with the same code and details whatever the language.
A request, as the person sees it
{
  "object": "portal_request",
  "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
  "request_id": "rqs_4Mb9Kt2",
  "state": "open",
  "brand": {
    "kit_id": "bk_4Hm7Rw2",
    "name": "Brightwater Lending",
    "monogram": "BL",
    "logo": null,
    "accent": "#1E4D6B",
    "highlight": "#14374F",
    "powered_by_kontiga": true,
    "reply_to": "applications@brightwater.example",
    "support": {
      "email": "help@brightwater.example",
      "phone": "+31 20 794 1180",
      "url": null,
      "address": null
    },
    "privacy_url": "https://brightwater.example/privacy",
    "terms_url": null,
    "what_next": "Brightwater Lending reads your documents within one working day and writes to you by email.",
    "texts": {
      "welcome": "Upload what Brightwater Lending asked for. It takes a few minutes, and you can stop and come back.",
      "done": "Thank you. Brightwater Lending has everything it asked for.",
      "expired": "This link has expired. Please ask Brightwater Lending for a new one."
    }
  },
  "purpose": "for your personal loan application",
  "collection_name": "Personal loan",
  "first_name": "Lotte",
  "expires_at": "2026-12-05T23:59:00Z",
  "completed_at": null,
  "gate": {
    "kind": "code",
    "passed": true,
    "contacts": [
      {
        "channel": "sms",
        "masked": "+31 6 •• •• •4 18"
      },
      {
        "channel": "email",
        "masked": "l•••@example.com"
      }
    ],
    "sent_to": null,
    "resend_in_seconds": 0,
    "tries_left": 5,
    "locked_until": null
  },
  "items": [
    {
      "id": "rqm_5Kw2Hd8",
      "kind": "document",
      "title": "Payslips, last two months",
      "instructions": "Your two most recent monthly payslips, as PDFs from your employer or clear photos of the paper copies.",
      "accepted": "A PDF or a photo (JPEG, PNG, HEIC, HEIF or WebP), up to 64 MB",
      "required": true,
      "strictness": "advise",
      "status": "to_do",
      "slots": [
        {
          "item_id": "itm_2Cw8Lr5",
          "state": "accepted",
          "label": "September 2026",
          "on_file": {
            "title": "Payslip, September 2026",
            "at": "2026-11-24T19:41:00Z",
            "reused": false
          },
          "redo": null
        },
        {
          "item_id": "itm_2Cw8Ls6",
          "state": "not_started",
          "label": "October 2026",
          "on_file": null,
          "redo": null
        }
      ],
      "have": 1,
      "needed": 2,
      "files": [],
      "redo": null,
      "question": null,
      "identity": null,
      "restrictions": {
        "pdf": true,
        "images": true,
        "camera_only": false,
        "words": "A PDF or a photo (JPEG, PNG, HEIC, HEIF or WebP), up to 64 MB",
        "max_files": 1
      },
      "asked": null
    },
    {
      "id": "rqm_9Tn4Bq2",
      "kind": "question",
      "title": "Monthly rent or mortgage payment",
      "instructions": "What you pay for your home each month.",
      "required": true,
      "status": "done",
      "slots": [
        {
          "item_id": "itm_6Lp1Vx3",
          "state": "accepted",
          "label": "Monthly rent or mortgage payment",
          "on_file": null,
          "redo": null
        }
      ],
      "have": 1,
      "needed": 1,
      "question": {
        "answer": "1450",
        "input": "amount",
        "currency": "EUR",
        "help": "In euros, before any housing benefit."
      }
    }
  ],
  "item_count": 5,
  "required": 5,
  "done": 4,
  "counts": {
    "required": 5,
    "required_in": 4,
    "optional": 0,
    "optional_in": 0,
    "to_come": 1,
    "needs_redo": 0,
    "reused": 1
  },
  "can_send": false,
  "missing": [
    "Payslip, October 2026"
  ],
  "locale": "en",
  "locale_chosen": false,
  "more_time_asked": false,
  "contacts": [
    {
      "channel": "sms",
      "masked": "+31 6 •• •• •4 18"
    },
    {
      "channel": "email",
      "masked": "l•••@example.com"
    }
  ],
  "run": null,
  "contact_needed": false,
  "follow_up": null,
  "conversation": []
}
Reads only

GET/v1/portal/links/{token}

The request as its party sees it, from the link: who is asking and why, the checklist with what each item asks for, what was sent and what is missing, the due date and the access gate. A link that no longer works says so, and so does a workspace that cannot take documents right now.

Who may
Anyone, with no account yet
CLI
kontiga portal get <token>
MCP tool
get_portal_request
Returns
The request as the party sees it: the brand kit, the items, the gate and the state of the link.

Parameters

  • tokenstringRequired

    The link’s token, the part of the link after /r/. In the path.

curl -X GET https://api.kontiga.com/v1/portal/links/mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc

GET /v1/portal/links/{token}

Response, 200 OK
{
  "object": "portal_request",
  "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
  "request_id": "rqs_4Mb9Kt2",
  "state": "open",
  "brand": {
    "kit_id": "bk_4Hm7Rw2",
    "name": "Brightwater Lending",
    "monogram": "BL",
    "logo": null,
    "accent": "#1E4D6B",
    "highlight": "#14374F",
    "powered_by_kontiga": true,
    "reply_to": "applications@brightwater.example",
    "support": {
      "email": "help@brightwater.example",
      "phone": "+31 20 794 1180",
      "url": null,
      "address": null
    },
    "privacy_url": "https://brightwater.example/privacy",
    "terms_url": null,
    "what_next": "Brightwater Lending reads your documents within one working day and writes to you by email.",
    "texts": {
      "welcome": "Upload what Brightwater Lending asked for. It takes a few minutes, and you can stop and come back.",
      "done": "Thank you. Brightwater Lending has everything it asked for.",
      "expired": "This link has expired. Please ask Brightwater Lending for a new one."
    }
  },
  "purpose": "for your personal loan application",
  "collection_name": "Personal loan",
  "first_name": "Lotte",
  "expires_at": "2026-12-05T23:59:00Z",
  "completed_at": null,
  "gate": {
    "kind": "code",
    "passed": true,
    "contacts": [
      {
        "channel": "sms",
        "masked": "+31 6 •• •• •4 18"
      },
      {
        "channel": "email",
        "masked": "l•••@example.com"
      }
    ],
    "sent_to": null,
    "resend_in_seconds": 0,
    "tries_left": 5,
    "locked_until": null
  },
  "items": [
    {
      "id": "rqm_5Kw2Hd8",
      "kind": "document",
      "title": "Payslips, last two months",
      "instructions": "Your two most recent monthly payslips, as PDFs from your employer or clear photos of the paper copies.",
      "accepted": "A PDF or a photo (JPEG, PNG, HEIC, HEIF or WebP), up to 64 MB",
      "required": true,
      "strictness": "advise",
      "status": "to_do",
      "slots": [
        {
          "item_id": "itm_2Cw8Lr5",
          "state": "accepted",
          "label": "September 2026",
          "on_file": {
            "title": "Payslip, September 2026",
            "at": "2026-11-24T19:41:00Z",
            "reused": false
          },
          "redo": null
        },
        {
          "item_id": "itm_2Cw8Ls6",
          "state": "not_started",
          "label": "October 2026",
          "on_file": null,
          "redo": null
        }
      ],
      "have": 1,
      "needed": 2,
      "files": [],
      "redo": null,
      "question": null,
      "identity": null,
      "restrictions": {
        "pdf": true,
        "images": true,
        "camera_only": false,
        "words": "A PDF or a photo (JPEG, PNG, HEIC, HEIF or WebP), up to 64 MB",
        "max_files": 1
      },
      "asked": null
    },
    {
      "id": "rqm_9Tn4Bq2",
      "kind": "question",
      "title": "Monthly rent or mortgage payment",
      "instructions": "What you pay for your home each month.",
      "required": true,
      "status": "done",
      "slots": [
        {
          "item_id": "itm_6Lp1Vx3",
          "state": "accepted",
          "label": "Monthly rent or mortgage payment",
          "on_file": null,
          "redo": null
        }
      ],
      "have": 1,
      "needed": 1,
      "question": {
        "answer": "1450",
        "input": "amount",
        "currency": "EUR",
        "help": "In euros, before any housing benefit."
      }
    }
  ],
  "item_count": 5,
  "required": 5,
  "done": 4,
  "counts": {
    "required": 5,
    "required_in": 4,
    "optional": 0,
    "optional_in": 0,
    "to_come": 1,
    "needs_redo": 0,
    "reused": 1
  },
  "can_send": false,
  "missing": [
    "Payslip, October 2026"
  ],
  "locale": "en",
  "locale_chosen": false,
  "more_time_asked": false,
  "contacts": [
    {
      "channel": "sms",
      "masked": "+31 6 •• •• •4 18"
    },
    {
      "channel": "email",
      "masked": "l•••@example.com"
    }
  ],
  "run": null,
  "contact_needed": false,
  "follow_up": null,
  "conversation": []
}
Changes data

POST/v1/portal/sessions/opened

Tells Kontiga the page was shown to a person. A plain fetch of the link, by a mail scanner or a chat preview, changes nothing.

Who may
Anyone, with no account yet
CLI
kontiga portal open <token>
MCP tool
mark_portal_opened
Returns
The request, opened.

Parameters

  • tokenstringRequired

    The link’s token. Call it when the page is shown to a person, not when it is fetched.

curl -X POST https://api.kontiga.com/v1/portal/sessions/opened \
  -H "Content-Type: application/json" \
  -d '{
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc"
  }'

POST /v1/portal/sessions/opened

Response, 200 OK
{
  "object": "portal_request",
  "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
  "request_id": "rqs_4Mb9Kt2",
  "state": "open",
  "brand": {
    "kit_id": "bk_4Hm7Rw2",
    "name": "Brightwater Lending",
    "monogram": "BL",
    "logo": null,
    "accent": "#1E4D6B",
    "highlight": "#14374F",
    "powered_by_kontiga": true,
    "reply_to": "applications@brightwater.example",
    "support": {
      "email": "help@brightwater.example",
      "phone": "+31 20 794 1180",
      "url": null,
      "address": null
    },
    "privacy_url": "https://brightwater.example/privacy",
    "terms_url": null,
    "what_next": "Brightwater Lending reads your documents within one working day and writes to you by email.",
    "texts": {
      "welcome": "Upload what Brightwater Lending asked for. It takes a few minutes, and you can stop and come back.",
      "done": "Thank you. Brightwater Lending has everything it asked for.",
      "expired": "This link has expired. Please ask Brightwater Lending for a new one."
    }
  },
  "purpose": "for your personal loan application",
  "collection_name": "Personal loan",
  "first_name": "Lotte",
  "expires_at": "2026-12-05T23:59:00Z",
  "completed_at": null,
  "gate": {
    "kind": "code",
    "passed": true,
    "contacts": [
      {
        "channel": "sms",
        "masked": "+31 6 •• •• •4 18"
      },
      {
        "channel": "email",
        "masked": "l•••@example.com"
      }
    ],
    "sent_to": null,
    "resend_in_seconds": 0,
    "tries_left": 5,
    "locked_until": null
  },
  "items": [
    {
      "id": "rqm_5Kw2Hd8",
      "kind": "document",
      "title": "Payslips, last two months",
      "instructions": "Your two most recent monthly payslips, as PDFs from your employer or clear photos of the paper copies.",
      "accepted": "A PDF or a photo (JPEG, PNG, HEIC, HEIF or WebP), up to 64 MB",
      "required": true,
      "strictness": "advise",
      "status": "to_do",
      "slots": [
        {
          "item_id": "itm_2Cw8Lr5",
          "state": "accepted",
          "label": "September 2026",
          "on_file": {
            "title": "Payslip, September 2026",
            "at": "2026-11-24T19:41:00Z",
            "reused": false
          },
          "redo": null
        },
        {
          "item_id": "itm_2Cw8Ls6",
          "state": "not_started",
          "label": "October 2026",
          "on_file": null,
          "redo": null
        }
      ],
      "have": 1,
      "needed": 2,
      "files": [],
      "redo": null,
      "question": null,
      "identity": null,
      "restrictions": {
        "pdf": true,
        "images": true,
        "camera_only": false,
        "words": "A PDF or a photo (JPEG, PNG, HEIC, HEIF or WebP), up to 64 MB",
        "max_files": 1
      },
      "asked": null
    },
    {
      "id": "rqm_9Tn4Bq2",
      "kind": "question",
      "title": "Monthly rent or mortgage payment",
      "instructions": "What you pay for your home each month.",
      "required": true,
      "status": "done",
      "slots": [
        {
          "item_id": "itm_6Lp1Vx3",
          "state": "accepted",
          "label": "Monthly rent or mortgage payment",
          "on_file": null,
          "redo": null
        }
      ],
      "have": 1,
      "needed": 1,
      "question": {
        "answer": "1450",
        "input": "amount",
        "currency": "EUR",
        "help": "In euros, before any housing benefit."
      }
    }
  ],
  "item_count": 5,
  "required": 5,
  "done": 4,
  "counts": {
    "required": 5,
    "required_in": 4,
    "optional": 0,
    "optional_in": 0,
    "to_come": 1,
    "needs_redo": 0,
    "reused": 1
  },
  "can_send": false,
  "missing": [
    "Payslip, October 2026"
  ],
  "locale": "en",
  "locale_chosen": false,
  "more_time_asked": false,
  "contacts": [
    {
      "channel": "sms",
      "masked": "+31 6 •• •• •4 18"
    },
    {
      "channel": "email",
      "masked": "l•••@example.com"
    }
  ],
  "run": null,
  "contact_needed": false,
  "follow_up": null,
  "conversation": []
}
Reads only

GET/v1/portal/samples

Test mode: a link to every sample request, each with what it shows (the checklist, the code first, an expired, withdrawn or finished request), to try the portal end to end. With no key, Kontiga’s own samples; with a secret test key, your workspace’s test requests. A publishable key never lists them: it sits in a public page.

Who may
Anyone, with no account yet
CLI
kontiga portal samples
MCP tool
list_portal_samples
Returns
A link to each sample request, with its party, its case and what it shows.

No parameters.

curl -X GET https://api.kontiga.com/v1/portal/samples

GET /v1/portal/samples

Response, 200 OK
{
  "items": [
    {
      "request_id": "rqs_7Lc2Wq5",
      "url": "https://collect.kontiga.com/r/tS4kQ9vM2wL7xR8nB3dH6pZ1",
      "path": "/r/tS4kQ9vM2wL7xR8nB3dH6pZ1",
      "workspace_name": "Brightwater Lending",
      "person_name": "Lina Haugen",
      "party_role": "Applicant",
      "case_title": "Personal loan, sample",
      "collection_name": "Personal loan",
      "state": "sent",
      "shows": "The checklist",
      "runs": null
    },
    {
      "request_id": "rqs_3Hd8Kv1",
      "url": "https://collect.kontiga.com/r/pX7nB2kR9vL4mQ8wT3dS6hZ5",
      "path": "/r/pX7nB2kR9vL4mQ8wT3dS6hZ5",
      "workspace_name": "Brightwater Lending",
      "person_name": "Lina Haugen",
      "party_role": "Applicant",
      "case_title": "Mortgage application, sample",
      "collection_name": "Mortgage application",
      "state": "sent",
      "shows": "The code first",
      "runs": null
    },
    {
      "request_id": "rqs_5Nf1Tb9",
      "url": "https://collect.kontiga.com/r/zH3kW8qN5vR2mL9xT4bS7dP1",
      "path": "/r/zH3kW8qN5vR2mL9xT4bS7dP1",
      "workspace_name": "Brightwater Lending",
      "person_name": "Lina Haugen",
      "party_role": "Applicant",
      "case_title": "Car finance, sample",
      "collection_name": "Car finance",
      "state": "expired",
      "shows": "The expired page",
      "runs": null
    }
  ],
  "next_cursor": null
}

Called with a secret test key, from your server, the samples are your workspace’s own test requests; called with no key, those of Kontiga’s sample workspace. A publishable key is refused with key_scope_denied: it sits in a public page, and the samples are working links. A live key is refused with live_key. Each sample keeps one link however often it is listed.

Change the language

Changes data

PUT/v1/portal/request/locale

Shows the portal in another of its 12 languages. The choice is kept on the request for the messages that follow, unless the customer set the language.

Who may
Anyone, with no account yet
CLI
kontiga portal language <token> --locale <en|pt|es|ar|zht|zhs|fr|de|ja|hi|ru|sv>
MCP tool
set_portal_language
Returns
The request, in the language chosen.

Parameters

  • tokenstringRequired

    The link’s token.

  • localeenumRequired

    One of the portal’s 12 languages.

curl -X PUT https://api.kontiga.com/v1/portal/request/locale \
  -H "Content-Type: application/json" \
  -d '{
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
    "locale": "de"
  }'

PUT /v1/portal/request/locale

Response, 200 OK
{
  "object": "portal_request",
  "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
  "request_id": "rqs_4Mb9Kt2",
  "state": "open",
  "locale": "de",
  "locale_chosen": true
}

Give a way to be reached

Changes data

PUT/v1/portal/request/contact

Gives the request an email address or a phone number, or both, when the party has neither: the team’s questions and the link again go there. Asked at the start of the visit.

Who may
Anyone, with no account yet
CLI
kontiga portal contact <token> [--email <address>] [--phone <+number>]
MCP tool
set_portal_contact
Returns
The request, with the contact kept on it.

Parameters

  • tokenstringRequired

    The link’s token.

  • emailemail

    An email address the team can write to. At most 255 characters.

  • phonestring

    A phone number in the international form, such as +31 6 1234 5678.

curl -X PUT https://api.kontiga.com/v1/portal/request/contact \
  -H "Content-Type: application/json" \
  -d '{
    "token": "jT6mQ3vR8kL2xW9nB4dS7hZ5",
    "email": "jens.dekker@example.com"
  }'

PUT /v1/portal/request/contact

Response, 200 OK
{
  "object": "portal_request",
  "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
  "request_id": "rqs_4Mb9Kt2",
  "state": "open",
  "contact_needed": false,
  "contacts": [
    {
      "channel": "email",
      "masked": "j•••@example.com"
    }
  ]
}

List the party's messages

Reads only

GET/v1/portal/messages

Every message the request’s party was sent, as they received it: the request, the reminders, the asks from the case, the codes, the identity message and a workflow’s emails and texts, each with its subject, text and HTML, the sender, the language and its delivery.

Who may
Anyone, with no account yet
CLI
kontiga portal messages <token>
MCP tool
list_portal_messages
Returns
The party’s messages, newest first, each as it was rendered.

Parameters

  • tokenstringRequired

    The link’s token.

curl -X GET "https://api.kontiga.com/v1/portal/messages?token=mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc"

GET /v1/portal/messages

Response, 200 OK
{
  "items": [
    {
      "id": "msg_1Rc6Pv3",
      "kind": "reminder",
      "channel": "email",
      "sent_at": "2026-11-26T08:00:20Z",
      "delivery": "opened",
      "from": "Brightwater Lending <brightwater-lending@mail.kontiga.com>",
      "reply_to": "applications@brightwater.example",
      "to": "l•••@example.com",
      "locale": "en",
      "subject": "Reminder: Brightwater Lending is still waiting for 1 document",
      "text": "Hello Lotte,\n\nWe are still waiting for your payslip for October 2026. Open your link to upload it; it takes a couple of minutes.\n\nhttps://collect.kontiga.com/r/mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc\n\nBrightwater Lending",
      "html": "<!doctype html><html>…</html>",
      "origin": "A reminder"
    }
  ],
  "next_cursor": null
}

The access gate

A collection may ask for a one-time code before the checklist opens. The code has six digits and goes to the phone or the email already on the request, never to another. Until the gate is passed, the request answers with no items.

The request’s gate.kind names the gate: link (the link alone opens it), code (the one-time code below) or identity (the person verifies first, through portal.identity_gate). gate.passed says whether this visit is past it.

Send a one-time code

Changes data

POST/v1/portal/gate/code

Sends a six-digit code to the phone or the email on the request, for a collection that asks for one. A new code is allowed 60 seconds after the last.

Who may
Anyone, with no account yet
CLI
kontiga portal send-code <token> --channel <sms|email>
MCP tool
send_portal_code
Returns
The request, with where the code went and when a new one may be asked for.

Parameters

  • tokenstringRequired

    The link’s token.

  • channelenumRequired

    Where the code goes: the phone or the email on the request. One of sms, email.

curl -X POST https://api.kontiga.com/v1/portal/gate/code \
  -H "Content-Type: application/json" \
  -d '{
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
    "channel": "sms"
  }'

POST /v1/portal/gate/code

Response, 200 OK
{
  "object": "portal_request",
  "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
  "request_id": "rqs_4Mb9Kt2",
  "state": "open",
  "gate": {
    "kind": "code",
    "passed": false,
    "contacts": [
      {
        "channel": "sms",
        "masked": "+31 6 •• •• •4 18"
      },
      {
        "channel": "email",
        "masked": "l•••@example.com"
      }
    ],
    "sent_to": {
      "channel": "sms",
      "masked": "+31 6 •• •• •4 18"
    },
    "resend_in_seconds": 60,
    "tries_left": 5,
    "locked_until": null
  },
  "items": []
}

Enter the one-time code

Changes data

POST/v1/portal/gate/code/verify

Opens the checklist with the six-digit code. Five wrong tries void a code; three voided codes close the link for an hour.

Who may
Anyone, with no account yet
CLI
kontiga portal verify-code <token> --code <000000>
MCP tool
verify_portal_code
Returns
The request with its checklist, or how many tries are left.

Parameters

  • tokenstringRequired

    The link’s token.

  • codestringRequired

    The six-digit code the person received.

curl -X POST https://api.kontiga.com/v1/portal/gate/code/verify \
  -H "Content-Type: application/json" \
  -d '{
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
    "code": "482913"
  }'

POST /v1/portal/gate/code/verify

Response, 200 OK
{
  "object": "portal_request",
  "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
  "request_id": "rqs_4Mb9Kt2",
  "state": "open",
  "gate": {
    "kind": "code",
    "passed": false,
    "sent_to": {
      "channel": "sms",
      "masked": "+31 6 •• •• •4 18"
    },
    "resend_in_seconds": 12,
    "tries_left": 4,
    "locked_until": null
  },
  "items": []
}

The sample shows a wrong code: four tries are left. The right code answers the request with its checklist, as portal.link does.

  • A code is good for 10 minutes. A new one may be asked for 60 seconds after the last (cooldown_active), at most five a day per request (code_sends_used).
  • A wrong code answers code_invalid with details.tries_left. The fifth wrong try voids the code (code_voided), and the code is refused after that even when it is right. A code past its 10 minutes answers code_expired.
  • Three voided codes close the gate for an hour (gate_locked, with details.locked_until), and the team that sent the request is told.
  • A right code opens the checklist for this session, and for 24 hours on the same device when it sends its visitor_id at the start. A phone that takes over with a handoff keeps it too.

Files and answers

Each file is checked at once, while the person is still there, and answered in plain words: got it, what to fix, or that it is still being checked. A file of the wrong type, too large, protected by a password or unreadable is refused and not kept. Where the requirement allows it, the person may keep a file the check had a problem with, with a note for the team.

  • A file takes three calls. portal.upload answers an address to PUT the file’s bytes to, straight into the workspace’s storage, valid 5 minutes, with the headers the PUT must carry; it needs the file’s MD5 in base64 as checksum, and takes its SHA-256 as sha256. The PUT sends the bytes. portal.finalize then names the upload and answers the file with its check, within 10 seconds. The CLI and the MCP tool make the three calls in one.
  • The type is read from the file itself, whatever it was declared as: a PDF or a photo (JPEG, PNG, HEIC or HEIF). A file is at most 64 MB, a PDF at most 50 pages. An item takes the kinds of file and the number of files its requirement sets (restrictions: pdf, images, max_files, 1 to 10; words says it in the request’s language). A type that is never taken or that the item does not take, or a size over 64 MB, is refused at the upload with unsupported_type or too_large, before any byte is sent.
  • A file refused at the finalize answers answer refused with its reason (unsupported_type, too_large, too_many_pages, password_protected, unreadable_file, duplicate_file, too_many_files) and its message, and is not kept.
  • problem comes with the message to show and, where keeping is offered, can_keep; such a file counts for its item only once kept. still_checking never holds the person back: the answer reaches the page on the live channel when it comes.
  • A finalize is safe to repeat. A second call for an upload already filed answers the same file and the request, as the first did, so an answer lost on a phone’s connection never asks for the file again. While the first call is still reading the file, a second gets upload_in_progress (409) with Retry-After. A file that could not be read just now (a busy moment) is file_check_busy (503) with Retry-After, and nothing is refused: call again.
  • upload_not_found (422): the upload is not this item’s, or is past its hour; choose the file again. upload_not_received (409): the bytes have not arrived yet. item_done (409): the item needs nothing more. identity_step (409): an identity item takes its photos in its own step.
  • Every write of a session (POST, PUT) takes an Idempotency-Key: a repeat with the same key within 24 hours answers the first answer again.
  • An item that is a question takes no file: its restrictions is null.
  • file_not_found (422) and cannot_keep (409) for keep and remove; invalid_answer (422) with the field for an answer that fails its question’s type, as the API refuses it for a member.
  • Every call names one of the session’s own items. Another party’s item, on the same case or not, is item_not_found (404).

Upload a file

Changes data

POST/v1/portal/items/{item_id}/uploads

Uploads one file for an item and answers in seconds with the instant check: got it, what to fix in plain words, or that it is still being checked. A file of the wrong type, too large, protected by a password or unreadable is refused and not kept.

Who may
Anyone, with no account yet
CLI
kontiga portal upload <token> <item_id> <file> [--part <front|back|selfie>] [--document <passport|card|licence>] [--capture-method <upload|camera|autocapture|manual_camera>] [--visitor-id <id>]
MCP tool
upload_portal_file
Returns
The file with the instant check’s answer, and the request as it now stands. The API’s own call answers the presigned PUT (PortalUploadTarget); portal.finalize answers this.

Parameters

  • tokenstringRequired

    The link’s token.

  • item_idid (itm_)Required

    The slot the file is for, from the requirement’s slots. In the path.

  • file_namestringRequired

    The file’s name. At most 255 characters.

  • content_typestringRequired

    The file’s type, such as application/pdf or image/jpeg. At most 120 characters.

  • byte_sizeintegerRequired

    The file’s size in bytes.

  • checksumstring

    The file’s MD5 in base64. The address to PUT the bytes to takes these bytes only.

  • sha256string

    The file’s SHA-256 in base64, when the device computes it.

  • partenum

    For an identity item: the front, the back, or the selfie. One of front, back, selfie.

  • documentenum

    For an identity item: the kind of document. One of passport, card, licence.

  • capture_methodenum

    How the file was taken: picked from the device, a photo, an automatic capture, or a photo taken by hand in the camera view. One of upload, camera, autocapture, manual_camera.

  • visitor_idid (vis_)

    The device’s visitor id, when the page has one.

curl -X POST https://api.kontiga.com/v1/portal/items/itm_2Cw8Ls6/uploads \
  -H "Content-Type: application/json" \
  -d '{
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
    "file_name": "payslip-october-2026.pdf",
    "content_type": "application/pdf",
    "byte_size": 184320,
    "checksum": "kQ3vT1mL8wR2nB6dH4pZ9w==",
    "capture_method": "upload"
  }'

POST /v1/portal/items/{item_id}/uploads

Response, 201 Created
{
  "object": "portal_upload",
  "upload_id": "upl_3c8e1f6a9b2d4e7c8a1b3d5f7e9c2a4b",
  "item_id": "itm_2Cw8Ls6",
  "upload": {
    "url": "https://kontiga-eu-west-1.s3.eu-west-1.amazonaws.com/uploads/ws_8a1f/3c8e1f6a?X-Amz-Expires=300&X-Amz-Signature=5d2e",
    "method": "PUT",
    "headers": {
      "Content-Type": "application/pdf",
      "Content-MD5": "kQ3vT1mL8wR2nB6dH4pZ9w==",
      "If-None-Match": "*"
    },
    "expires_at": "2026-11-26T09:49:10Z"
  },
  "file": null
}

Use a file anyway

Changes data

POST/v1/portal/items/{item_id}/keep

Keeps a file the instant check had a problem with, where the requirement allows it, with an optional note for the team, after a change of name for example.

Who may
Anyone, with no account yet
CLI
kontiga portal keep <token> <item_id> --file-id <pfl_id> [--note <text>]
MCP tool
keep_portal_file
Returns
The request, with the file kept and marked for the team.

Parameters

  • tokenstringRequired

    The link’s token.

  • item_idid (itm_)Required

    The slot. In the path.

  • file_idid (pfl_)Required

    The file to keep, from the upload’s answer.

  • notestring

    A note for the team, in the person’s own words. At most 500 characters.

curl -X POST https://api.kontiga.com/v1/portal/items/itm_2Cw8Ls6/keep \
  -H "Content-Type: application/json" \
  -d '{
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
    "file_id": "pfl_8Rd3Mw6",
    "note": "My employer pays on the 25th, so this is the latest one I have."
  }'

POST /v1/portal/items/{item_id}/keep

Response, 200 OK
{
  "object": "portal_request",
  "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
  "request_id": "rqs_4Mb9Kt2",
  "state": "open",
  "done": 5,
  "can_send": true,
  "missing": [],
  "items": [
    {
      "id": "rqm_5Kw2Hd8",
      "kind": "document",
      "title": "Payslips, last two months",
      "instructions": "Your two most recent monthly payslips, as PDFs from your employer or clear photos of the paper copies.",
      "accepted": "A PDF or a photo (JPEG, PNG, HEIC, HEIF or WebP), up to 64 MB",
      "required": true,
      "strictness": "advise",
      "status": "done",
      "slots": [
        {
          "item_id": "itm_2Cw8Lr5",
          "state": "accepted",
          "label": "September 2026",
          "on_file": {
            "title": "Payslip, September 2026",
            "at": "2026-11-24T19:41:00Z",
            "reused": false
          },
          "redo": null
        },
        {
          "item_id": "itm_2Cw8Ls6",
          "state": "not_started",
          "label": "October 2026",
          "on_file": null,
          "redo": null
        }
      ],
      "have": 2,
      "needed": 2,
      "files": [
        {
          "id": "pfl_8Rd3Mw6",
          "file_name": "payslip-october-2026.pdf",
          "byte_size": 184320,
          "at": "2026-11-26T09:44:10Z",
          "label": "October 2026",
          "part": null,
          "answer": "problem",
          "reason": "wrong_period",
          "message": "This payslip is for August 2026. We need the one for October 2026.",
          "can_keep": true,
          "kept": true,
          "note": "My employer pays on the 25th, so this is the latest one I have.",
          "item_id": "itm_2Cw8Ls6"
        }
      ],
      "redo": null,
      "question": null,
      "identity": null,
      "restrictions": {
        "pdf": true,
        "images": true,
        "camera_only": false,
        "words": "A PDF or a photo (JPEG, PNG, HEIC, HEIF or WebP), up to 64 MB",
        "max_files": 1
      },
      "asked": null
    }
  ]
}

Remove a file

Changes data

DELETE/v1/portal/items/{item_id}/documents/{file_id}

Removes a file before Send: one the instant check had a problem with, to try again, or one sent by mistake.

Who may
Anyone, with no account yet
CLI
kontiga portal remove-file <token> <item_id> --file-id <pfl_id>
MCP tool
remove_portal_file
Returns
The request, without the file.

Parameters

  • tokenstringRequired

    The link’s token.

  • item_idid (itm_)Required

    The slot. In the path.

  • file_idid (pfl_)Required

    The file to remove, before Send. In the path.

curl -X DELETE "https://api.kontiga.com/v1/portal/items/itm_2Cw8Ls6/documents/pfl_8Rd3Mw6?token=mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc"

DELETE /v1/portal/items/{item_id}/documents/{file_id}

Response, 200 OK
{
  "object": "portal_request",
  "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
  "request_id": "rqs_4Mb9Kt2",
  "state": "open",
  "done": 4,
  "can_send": false,
  "missing": [
    "Payslip, October 2026"
  ],
  "items": [
    {
      "id": "rqm_5Kw2Hd8",
      "kind": "document",
      "title": "Payslips, last two months",
      "instructions": "Your two most recent monthly payslips, as PDFs from your employer or clear photos of the paper copies.",
      "accepted": "A PDF or a photo (JPEG, PNG, HEIC, HEIF or WebP), up to 64 MB",
      "required": true,
      "strictness": "advise",
      "status": "to_do",
      "slots": [
        {
          "item_id": "itm_2Cw8Lr5",
          "state": "accepted",
          "label": "September 2026",
          "on_file": {
            "title": "Payslip, September 2026",
            "at": "2026-11-24T19:41:00Z",
            "reused": false
          },
          "redo": null
        },
        {
          "item_id": "itm_2Cw8Ls6",
          "state": "not_started",
          "label": "October 2026",
          "on_file": null,
          "redo": null
        }
      ],
      "have": 1,
      "needed": 2,
      "files": [],
      "redo": null,
      "question": null,
      "identity": null,
      "restrictions": {
        "pdf": true,
        "images": true,
        "camera_only": false,
        "words": "A PDF or a photo (JPEG, PNG, HEIC, HEIF or WebP), up to 64 MB",
        "max_files": 1
      },
      "asked": null
    }
  ]
}

Answer a question

Changes data

PUT/v1/portal/items/{item_id}/answer

Saves the answer to a question of the checklist. It is saved on every change, so nothing is lost if the person leaves.

Who may
Anyone, with no account yet
CLI
kontiga portal answer <token> <item_id> --answer <text>
MCP tool
answer_portal_question
Returns
The request, with the answer saved.

Parameters

  • tokenstringRequired

    The link’s token.

  • item_idid (itm_)Required

    The question’s slot. In the path.

  • answerstringRequired

    The answer as typed. An amount is in the currency the question names. At most 500 characters.

curl -X PUT https://api.kontiga.com/v1/portal/items/itm_6Lp1Vx3/answer \
  -H "Content-Type: application/json" \
  -d '{
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
    "answer": "1450"
  }'

PUT /v1/portal/items/{item_id}/answer

Response, 200 OK
{
  "object": "portal_request",
  "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
  "request_id": "rqs_4Mb9Kt2",
  "state": "open",
  "items": [
    {
      "id": "rqm_9Tn4Bq2",
      "kind": "question",
      "title": "Monthly rent or mortgage payment",
      "instructions": "What you pay for your home each month.",
      "required": true,
      "status": "done",
      "slots": [
        {
          "item_id": "itm_6Lp1Vx3",
          "state": "accepted",
          "label": "Monthly rent or mortgage payment",
          "on_file": null,
          "redo": null
        }
      ],
      "have": 1,
      "needed": 1,
      "question": {
        "answer": "1450",
        "input": "amount",
        "currency": "EUR",
        "help": "In euros, before any housing benefit."
      }
    }
  ]
}

Continue on a phone

Changes data

POST/v1/portal/handoffs

An address to open on a phone, to take the photos there: a code to scan, or, for an identity verification, a text message to a number the person types. It works once, for 10 minutes, and never skips the access gate for anyone who did not pass it. Text messages: one a minute and three a day per verification.

Who may
Anyone, with no account yet
CLI
kontiga portal handoff <token> <item_id> [--kind <qr|sms>] [--phone-number <+number>]
MCP tool
create_portal_handoff
Returns
The address the code holds and when it stops working.

Parameters

  • tokenstringRequired

    The link’s token.

  • item_idid (itm_)Required

    The slot to take the photos for.

  • kindenum

    A code to scan, or a text message to a number the person types (identity verification only). One of qr, sms.

  • phone_numberstring

    The number to text, with kind sms.

curl -X POST https://api.kontiga.com/v1/portal/handoffs \
  -H "Content-Type: application/json" \
  -d '{
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
    "item_id": "itm_2Cw8Ls6",
    "kind": "qr"
  }'

POST /v1/portal/handoffs

Response, 201 Created
{
  "object": "portal_handoff",
  "url": "https://collect.kontiga.com/h/Vq4Lm8Rk2Tw9?item=itm_2Cw8Ls6",
  "expires_at": "2026-11-26T09:58:00Z",
  "sent_to": null
}

Send everything

Changes data

POST/v1/portal/request/send

Sends the checklist to the customer once every required item is in. An item asked for again blocks it.

Who may
Anyone, with no account yet
CLI
kontiga portal send <token>
MCP tool
send_portal_request
Returns
The request, completed.

Parameters

  • tokenstringRequired

    The link’s token.

curl -X POST https://api.kontiga.com/v1/portal/request/send \
  -H "Content-Type: application/json" \
  -d '{
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc"
  }'

POST /v1/portal/request/send

Response, 200 OK
{
  "object": "portal_request",
  "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
  "request_id": "rqs_4Mb9Kt2",
  "state": "completed",
  "completed_at": "2026-11-26T09:47:30Z",
  "done": 5,
  "can_send": false,
  "missing": []
}

Send is refused with items_missing (409, details.missing the items) while a required item is not in or is asked for again. After Send nothing is removed: the files are the team’s.

Changes data

POST/v1/portal/request/link_again

Sends a new link to the same request, to the email or the phone already on it and never to another, so the person can come back later. At most 3 times an hour.

Who may
Anyone, with no account yet
CLI
kontiga portal link-again <token> --channel <sms|email>
MCP tool
send_portal_link_again
Returns
The request; the new link is on its way.

Parameters

  • tokenstringRequired

    The link’s token.

  • channelenumRequired

    The email or the phone already on the request. One of sms, email.

curl -X POST https://api.kontiga.com/v1/portal/request/link_again \
  -H "Content-Type: application/json" \
  -d '{
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
    "channel": "email"
  }'

POST /v1/portal/request/link_again

Response, 200 OK
{
  "object": "portal_request",
  "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
  "request_id": "rqs_4Mb9Kt2",
  "state": "open",
  "contacts": [
    {
      "channel": "email",
      "masked": "l•••@example.com"
    }
  ],
  "link_sent": {
    "channel": "email",
    "masked": "l•••@example.com",
    "at": "2026-11-26T09:48:00Z"
  }
}

Ask for more time

Changes data

POST/v1/portal/request/more_time

On an expired link: tells the case owner the person needs more time, at most once a day.

Who may
Anyone, with no account yet
CLI
kontiga portal more-time <token>
MCP tool
ask_portal_more_time
Returns
The request; the customer has been told.

Parameters

  • tokenstringRequired

    The expired link’s token.

curl -X POST https://api.kontiga.com/v1/portal/request/more_time \
  -H "Content-Type: application/json" \
  -d '{
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc"
  }'

POST /v1/portal/request/more_time

Response, 200 OK
{
  "object": "portal_request",
  "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
  "request_id": "rqs_4Mb9Kt2",
  "state": "expired",
  "more_time_asked": true
}
  • The link again goes to the request’s own email or phone, never to one typed, at most 3 times an hour (code_sends_used, 429, with Retry-After); a channel with nothing on file is contact_missing.
  • More time is asked on an expired link only (not_expired, 409, otherwise). The team is told at most once a day; more_time_asked says so.
  • A way to be reached is given only while the request has neither an email nor a phone (contact_present, 409). The language is one of the workspace’s (language_not_offered, 422), kept on the request for the messages that follow unless the team set one.
  • A reply answers one of the team’s messages to this party (message_not_found, 422, for any other) or starts a new question; it lands in the party’s conversation.

Reply to the team

Changes data

POST/v1/portal/conversation/replies

Answers a question the team asked on the case, or asks them something back, in the party’s own words. A reply to a clarification closes it; the reply lands on the case’s timeline and in its conversation with the party.

Who may
Anyone, with no account yet
CLI
kontiga portal reply <token> --text <words> [--reply-to <msg_id>]
MCP tool
reply_portal_conversation
Returns
The request, with the reply in its conversation.

Parameters

  • tokenstringRequired

    The link’s token.

  • reply_toid (msg_)

    The team’s message this answers. Left out, it is a new question to the team.

  • textstringRequired

    The reply, in the person’s own words. At most 2,000 characters.

curl -X POST https://api.kontiga.com/v1/portal/conversation/replies \
  -H "Content-Type: application/json" \
  -d '{
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
    "reply_to": "msg_5Hq2Wr8",
    "text": "No, it was a one-off bonus for a project that finished in August."
  }'

POST /v1/portal/conversation/replies

Response, 201 Created
{
  "object": "portal_request",
  "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
  "request_id": "rqs_4Mb9Kt2",
  "state": "open",
  "conversation": [
    {
      "id": "msg_5Hq2Wr8",
      "at": "2026-11-25T15:10:00Z",
      "from": "team",
      "kind": "clarify",
      "author": "Elif Kaya",
      "text": "Your September payslip shows a bonus of €850. Is that paid every year?",
      "item": {
        "id": "itm_2Cw8Lr5",
        "title": "Payslip, September 2026"
      },
      "reply_to": null,
      "delivery": "opened",
      "open": false
    },
    {
      "id": "msg_5Hq2Ws1",
      "at": "2026-11-26T09:46:20Z",
      "from": "party",
      "kind": "reply",
      "author": "Lotte de Vries",
      "text": "No, it was a one-off bonus for a project that finished in August.",
      "item": {
        "id": "itm_2Cw8Lr5",
        "title": "Payslip, September 2026"
      },
      "reply_to": "msg_5Hq2Wr8",
      "delivery": null,
      "open": false
    }
  ]
}

Identity verification

An identity item, or a workflow’s identity step, asks for consent first, then the document’s sides and a selfie. Each capture is answered with what to fix, if anything; the verification’s result is never shown to the person. The next screen comes as a preflight, and the session’s live channel pushes it after every change, so the page, the widget, the app and the SDKs move on without asking again.

Agree to the verification

Changes data

POST/v1/portal/identity/consent

The person agrees, or not, to have their identity verified, before any photo is taken, on the words and the link of the workspace’s verification profile. Agreeing is recorded with its time; saying no stops the verification and tells the team.

Who may
Anyone, with no account yet
CLI
kontiga portal consent <token> --gives-consent <true|false> [--item-id <itm_id>] [--node-id <step id>]
MCP tool
give_portal_identity_consent
Returns
The request, with the answer on the verification.

Parameters

  • tokenstringRequired

    The link’s token.

  • item_idid (itm_)

    The identity item, on a checklist.

  • node_idstring

    Or the identity step, in a workflow. At most 128 characters.

  • gives_consentbooleanRequired

    Whether the person agrees. No stops the verification and tells the team.

curl -X POST https://api.kontiga.com/v1/portal/identity/consent \
  -H "Content-Type: application/json" \
  -d '{
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
    "item_id": "itm_4Nx7Lc2",
    "gives_consent": true
  }'

POST /v1/portal/identity/consent

Response, 200 OK
{
  "object": "portal_request",
  "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
  "request_id": "rqs_4Mb9Kt2",
  "state": "open",
  "items": [
    {
      "id": "rqm_1Vd7Kc4",
      "kind": "identity",
      "title": "Your identity",
      "status": "to_do",
      "identity": {
        "document": "card",
        "consent": {
          "text": "I agree that Brightwater Lending checks my identity document and a selfie to confirm who I am.",
          "link": "https://brightwater.example/privacy",
          "given_at": "2026-11-26T09:45:02Z",
          "refused_at": null
        },
        "preflight": {
          "extra_data": {},
          "session": "idv_6Wk3Qn8",
          "session_id": "idv_6Wk3Qn8",
          "entity_id_state": "none_received",
          "entity_id_document_type": "id_card",
          "requirement": {
            "requirement_type": "identity_document",
            "status": "awaiting_receipt",
            "flow_order": 100
          },
          "screen": {
            "show": "scan_id_document_front_screen",
            "parameters": {
              "camera": "back"
            }
          }
        }
      }
    }
  ]
}

Read the verification's next step

Reads only

GET/v1/portal/items/{item_id}/preflight

The identity verification’s next step, in the copied preflight’s shape: the screen to show (consent, the front, the back, the selfie, done), its parameters, the requirement it is for, and the feedback on the last photo.

Who may
Anyone, with no account yet
CLI
kontiga portal preflight <token> <item_id>
MCP tool
get_portal_preflight
Returns
The screen to show next, with its parameters and the feedback on the last image.

Parameters

  • tokenstringRequired

    The link’s token.

  • item_idid (itm_)Required

    The identity item. In the path.

curl -X GET "https://api.kontiga.com/v1/portal/items/itm_4Nx7Lc2/preflight?token=mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc"

GET /v1/portal/items/{item_id}/preflight

Response, 200 OK
{
  "object": "preflight",
  "extra_data": {},
  "session": "idv_6Wk3Qn8",
  "session_id": "idv_6Wk3Qn8",
  "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
    }
  }
}

Capture an identity document

Changes data

POST/v1/portal/steps/{node_id}/captures

Sends one capture for a workflow’s identity step: the front or back of the document, or the selfie. It answers in seconds with what to fix, if anything, in plain words; the verification’s result is never shown to the person.

Who may
Anyone, with no account yet
CLI
kontiga portal capture <token> <node_id> <file> --part <front|back|selfie> --document <passport|card|licence> [--capture-method <upload|camera|autocapture|manual_camera>] [--visitor-id <id>]
MCP tool
capture_portal_identity
Returns
The capture with the instant check’s answer, and the request as it now stands.

Parameters

  • tokenstringRequired

    The link’s token.

  • node_idstringRequired

    The workflow’s identity step. At most 128 characters. In the path.

  • partenumRequired

    The front, the back, or the selfie. One of front, back, selfie.

  • documentenumRequired

    The kind of document. One of passport, card, licence.

  • file_namestringRequired

    The capture’s file name. At most 255 characters.

  • content_typestringRequired

    The capture’s type, such as image/jpeg. At most 120 characters.

  • byte_sizeintegerRequired

    The capture’s size in bytes.

  • capture_methodenum

    How it was taken. One of upload, camera, autocapture, manual_camera.

  • visitor_idid (vis_)

    The device’s visitor id, when the page has one.

curl -X POST https://api.kontiga.com/v1/portal/steps/id-1/captures \
  -H "Content-Type: application/json" \
  -d '{
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
    "part": "front",
    "document": "card",
    "file_name": "front.jpg",
    "content_type": "image/jpeg",
    "byte_size": 912384,
    "capture_method": "autocapture"
  }'

POST /v1/portal/steps/{node_id}/captures

Response, 201 Created
{
  "object": "portal_upload",
  "file": {
    "id": "pfl_2Bt9Hx5",
    "file_name": "front.jpg",
    "byte_size": 912384,
    "at": "2026-11-26T09:45:40Z",
    "label": "Front",
    "part": "front",
    "answer": "problem",
    "reason": "glare",
    "message": "Light is reflecting off the card. Tilt it a little away from the light and take the photo again.",
    "can_keep": false,
    "kept": false,
    "note": null,
    "item_id": null
  },
  "request": {
    "object": "portal_request",
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
    "request_id": "rqs_4Mb9Kt2"
  }
}

Read a verification session

Reads only

GET/v1/verify/session

An identity verification’s session read again by the device that holds it: the next screen, the brand kit and consent, whether anything still waits, when the token ends, and where its live channel is. With the portal’s token it names the checklist’s identity item or the workflow’s identity step; with a session token it names neither. A verification that is finished, stopped or expired is refused in plain words.

Who may
The end customer, with the verification's session
CLI
kontiga portal session <token> [--item-id <itm_id>] [--node-id <step id>]
MCP tool
get_portal_verification_session
Returns
With the portal’s token: the place’s session (its brand kit, link, expiry, language, the next screen, its live channel). With a session token: the device’s own state (object verification_session_state: change, preflight, return_url, live, verification_id, status, mode, token_expires_at, brand_kit).

Parameters

  • tokenstringRequired

    The session’s token.

  • item_idid (itm_)

    The identity item it belongs to.

  • node_idstring

    Or the workflow’s identity step. At most 128 characters.

curl -X GET "https://api.kontiga.com/v1/verify/session?item_id=itm_4Nx7Lc2" \
  -H "Authorization: Bearer mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc"

GET /v1/verify/session

Response, 200 OK
{
  "object": "verification_session",
  "session_id": "ses_idv_6Wk3Qn8",
  "status": "open",
  "item_id": "itm_4Nx7Lc2",
  "node_id": null,
  "url": "https://verify.kontiga.com/s/ses_idv_6Wk3Qn8",
  "expires_at": "2026-11-27T09:45:00Z",
  "locale": "en",
  "brand_kit": {
    "name": "Brightwater Lending",
    "logo": null,
    "brand_color": "#14374F",
    "accent_color": "#1E4D6B",
    "privacy_url": "https://brightwater.example/privacy",
    "terms_url": null,
    "consent_text": "I agree that Brightwater Lending checks my identity document and a selfie to confirm who I am.",
    "consent_link": "https://brightwater.example/privacy"
  },
  "preflight": {
    "extra_data": {},
    "session": "idv_6Wk3Qn8",
    "session_id": "idv_6Wk3Qn8",
    "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
      }
    }
  },
  "live": "/v1/verify/session/live",
  "session_token": "kt_vst_4f1c9a7e2b6d8053c1e7a94b2d6f0c38e5a1b7d9f2c4e6a8b0d3f5a7c9e1b2d4",
  "token_expires_at": "2026-11-26T10:15:00Z"
}

A device reads the same with its session token (kt_vst_) in Authorization: Bearer and names neither an item nor a step. Its answer is verification_session_state: change, preflight, return_url and live, with verification_id (the verification’s one id), status, mode, token_expires_at and brand_kit. The client API guide gives every answer.

Follow a verification's next steps

Reads only

GET/v1/verify/session/live

An identity verification’s live channel, as server-sent events: the next screen (the preflight) when the stream opens and after every change, a capture judged, consent given, a step done, so the page, the widget, the app and the SDKs move on without asking again.

Who may
The end customer, with the verification's session
CLI
kontiga portal session-live <token> [--item-id <itm_id>] [--node-id <step id>] [--last-event-id <change>]
MCP tool
follow_portal_verification
Returns
The preflights pushed after last_event_id, oldest first; the stream itself keeps sending after every change.

Parameters

  • tokenstringRequired

    The session’s token.

  • item_idid (itm_)

    The identity item.

  • node_idstring

    Or the workflow’s identity step. At most 128 characters.

  • last_event_idstring

    Resume after this event.

curl -X GET "https://api.kontiga.com/v1/verify/session/live?item_id=itm_4Nx7Lc2" \
  -H "Authorization: Bearer mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc"

GET /v1/verify/session/live

Response, 200 OK
{
  "events": [
    {
      "id": "4",
      "at": "2026-11-26T09:45:41Z",
      "preflight": {
        "extra_data": {},
        "session": "idv_6Wk3Qn8",
        "session_id": "idv_6Wk3Qn8",
        "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
          }
        }
      }
    },
    {
      "id": "5",
      "at": "2026-11-26T09:46:05Z",
      "preflight": {
        "extra_data": {},
        "session": "idv_6Wk3Qn8",
        "session_id": "idv_6Wk3Qn8",
        "entity_id_state": "id_received_awaiting_liveness",
        "entity_id_document_type": "id_card",
        "requirement": {
          "requirement_type": "liveness",
          "status": "awaiting_receipt",
          "flow_order": 300
        },
        "screen": {
          "show": "liveness_screen",
          "parameters": {}
        }
      }
    }
  ],
  "last_event_id": "5"
}

Workflow steps

A request that runs a workflow walks the person through its steps one at a time: a screen, a form, a consent, the location, a place on a map, the identity step or a redirect. Only the step the person is on can be answered. The request’s run says where they are, how many steps there are, and whether the run waits on a member or on time.

Answer a workflow step

Changes data

POST/v1/portal/steps/{node_id}/submit

Answers the step of the request’s workflow the person is on (a screen, a form, a consent, the location, a place on a map, the identity step or a redirect) and moves the run to its next step. Only the current step can be answered.

Who may
Anyone, with no account yet
CLI
kontiga portal submit-step <token> <node_id> [--action <confirm|cancel|submit|decline|granted|denied|success|skip|submitted|redirect>] [--form-data <json>] [--signature <full name>] [--items <json>] [--location <json>] [--place <json>]
MCP tool
submit_portal_step
Returns
The request, with the run on its next step, waiting on a background step, or at its end.

Parameters

  • tokenstringRequired

    The link’s token.

  • node_idstringRequired

    The step the person is on. At most 128 characters. In the path.

  • actionenum

    What the person did on it: confirm, submit, decline, grant or deny the location, and so on. One of confirm, cancel, submit, decline, granted, denied, success, skip, submitted, redirect.

  • form_datarecord

    A form’s answers, by field key.

  • signaturestring

    A consent’s drawn signature, as a data URL. At most 1,001 characters.

  • itemsrecord

    A checklist step’s answers, by item.

  • locationobject

    The device’s location, for a location step: latitude, longitude and accuracy in metres, as the browser gives them.

  • placeobject

    The place chosen on a map step: type point with lat and lng, or area with its coordinates, and its address, as portal.places found it.

curl -X POST https://api.kontiga.com/v1/portal/steps/form-income/submit \
  -H "Content-Type: application/json" \
  -d '{
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
    "action": "submit",
    "form_data": {
      "employer": "Noordhaven Logistics B.V.",
      "gross_monthly_income": "4250"
    }
  }'

POST /v1/portal/steps/{node_id}/submit

Response, 200 OK
{
  "object": "portal_request",
  "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
  "request_id": "rqs_4Mb9Kt2",
  "state": "open",
  "run": {
    "workflow_id": "wf_3Hp9Ld2",
    "workflow_name": "Personal loan intake",
    "title": "Apply for a personal loan",
    "subtitle": "Brightwater Lending",
    "status": "step",
    "waits_on": null,
    "total": 5,
    "step": {
      "id": "form-income",
      "type": "form",
      "label": "Your income"
    },
    "processing": null,
    "done": [
      {
        "id": "consent-1",
        "type": "consent",
        "label": "Consent"
      },
      {
        "id": "id-1",
        "type": "identity",
        "label": "Your identity"
      }
    ],
    "ahead": 2,
    "left": null
  }
}

Find a place

Reads only

GET/v1/portal/places

The addresses a map step’s search finds for what the person typed, or the nearest address to a point on the map. Kontiga looks them up itself, so the page calls no map service.

Who may
Anyone, with no account yet
CLI
kontiga portal places <token> [--query <text>] [--lat <latitude>] [--lng <longitude>]
MCP tool
find_portal_places
Returns
Up to five addresses, nearest or best first, each with its point.

Parameters

  • tokenstringRequired

    The link’s token.

  • querystring

    What the person typed. At most 120 characters.

  • latnumber

    Or a point’s latitude, for the nearest address. At least -90, at most 90.

  • lngnumber

    The point’s longitude. At least -180, at most 180.

curl -X GET "https://api.kontiga.com/v1/portal/places?token=mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc&query=Keizersgracht+21"

GET /v1/portal/places

Response, 200 OK
{
  "items": [
    {
      "id": "plc_1",
      "label": "Keizersgracht 214",
      "address": "Keizersgracht 214, 1016 DZ Amsterdam",
      "lat": 52.3731,
      "lng": 4.8848
    },
    {
      "id": "plc_2",
      "label": "Keizersgracht 241",
      "address": "Keizersgracht 241, 1016 EA Amsterdam",
      "lat": 52.3737,
      "lng": 4.8853
    }
  ],
  "next_cursor": null
}

Live changes

The link’s own live channel, as server-sent events: each change the person should see at once, with the request as it now stands. A page reads the link again every few seconds only while the channel is down.

  • The first event is request_changed with the request as it is now. After that, one event a change: handoff_connected when a phone opened a handoff made in this session (its item_id), else item_updated when items or their files changed (item_ids names each, item_id the first), else request_changed for anything else the page shows.
  • The channel opens once the code gate is passed (gate_required before). A request’s page, phone and their reconnects share a few streams; past them, rate_limited (429) with Retry-After: read the request every 30 seconds instead.
  • Each event carries the whole request, so nothing has to be replayed: a page that reconnects starts again from the request as it is.
  • The last event is end, with its reason: hold after 15 minutes or at the session’s end (open the channel again), cancelled when the request was withdrawn, session_gone, hub_gone or failures. While the channel is down, read the request every 10 seconds while a check runs and every 30 seconds otherwise.
Reads only

GET/v1/portal/live

The link’s live channel, as server-sent events: each change the person should see at once, as it happens: an item’s instant check or state moved, the workflow moved on to another step or ended, the team asked for more or replied. One event a change, carrying the request once as it now stands (item_updated names every item that moved in item_ids). Open past the code gate only; a page, a phone and their reconnects share a few streams a request, and past them the 429 asks the page to poll. Resumed after a drop with the last event id, so none is missed; the page reads the link again every few seconds only while the channel is down.

Who may
Anyone, with no account yet
CLI
kontiga portal live <token> [--last-event-id <pev_id>]
MCP tool
follow_portal_link
Returns
The changes after last_event_id, oldest first, each with the request as it now stands; the stream itself keeps sending as they happen.

Parameters

  • tokenstringRequired

    The link’s token.

  • last_event_idid (pev_)

    Resume after this event, so none is missed.

curl -X GET "https://api.kontiga.com/v1/portal/live?token=mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc&last_event_id=pev_3Kd8Wl9"

GET /v1/portal/live

Response, 200 OK
{
  "events": [
    {
      "id": "pev_3Kd8Wm1",
      "type": "item_updated",
      "at": "2026-11-26T09:44:12Z",
      "item_id": "itm_2Cw8Ls6",
      "step_id": null,
      "request": {
        "object": "portal_request",
        "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
        "done": 4,
        "can_send": false
      }
    },
    {
      "id": "pev_3Kd8Wm2",
      "type": "request_changed",
      "at": "2026-11-26T09:46:20Z",
      "item_id": null,
      "step_id": null,
      "request": {
        "object": "portal_request",
        "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
        "done": 5,
        "can_send": true
      }
    }
  ],
  "last_event_id": "pev_3Kd8Wm2"
}

A public link lets anyone start: they give their name and a way to be reached, and get their own case, checklist and request link. A preview link runs a workflow as an end customer meets it, on a test request, before it is published. These two links are read by a member with a key; opening and starting from a public link needs none.

Reads only

GET/v1/portal/public_links

The public link and QR code of a collection or of a workflow that begins by collecting: anyone who opens it gives their name and a way to be reached, and gets their own case and checklist. Bynn’s Data Collection Link.

Who may
Owner, Admin, Analyst, Developer and Viewer
CLI
kontiga portal public-link [--collection-id <col_id>] [--workflow-id <workflow id>]
MCP tool
get_portal_public_link
Returns
The public link, its QR code, and whether it takes starts now.

Parameters

  • collection_idid (col_)

    The collection to start from.

  • workflow_idstring

    Or a workflow that begins by collecting. At most 96 characters.

curl -X GET "https://api.kontiga.com/v1/portal/public_links?collection_id=col_5Gk3Tm7" \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

GET /v1/portal/public_links

Response, 200 OK
{
  "object": "portal_link",
  "url": "https://collect.kontiga.com/r/start/cP4wN8kR2vL6mQ9xT3bH7sZ5yD1",
  "path": "/r/start/cP4wN8kR2vL6mQ9xT3bH7sZ5yD1",
  "qr": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4=",
  "request_id": null,
  "open": true
}
Reads only

GET/v1/portal/starts/{start_token}

What a public start link opens: whose it is, what it is for, and what the visitor gives first. A collection that is not open, or a workflow that is not active, says so in plain words.

Who may
Anyone, with no account yet
CLI
kontiga portal start-page <start_token>
MCP tool
get_portal_start_page
Returns
The brand kit, the title and purpose, and the details asked first.

Parameters

  • start_tokenstringRequired

    The public link’s token, the part after /r/start/. In the path.

curl -X GET https://api.kontiga.com/v1/portal/starts/cP4wN8kR2vL6mQ9xT3bH7sZ5yD1

GET /v1/portal/starts/{start_token}

Response, 200 OK
{
  "object": "portal_start_page",
  "start_token": "cP4wN8kR2vL6mQ9xT3bH7sZ5yD1",
  "open": true,
  "brand": {
    "kit_id": "bk_4Hm7Rw2",
    "name": "Brightwater Lending",
    "monogram": "BL",
    "logo": null,
    "accent": "#1E4D6B",
    "highlight": "#14374F",
    "powered_by_kontiga": true,
    "reply_to": "applications@brightwater.example",
    "support": {
      "email": "help@brightwater.example",
      "phone": "+31 20 794 1180",
      "url": null,
      "address": null
    },
    "privacy_url": "https://brightwater.example/privacy",
    "terms_url": null,
    "what_next": "Brightwater Lending reads your documents within one working day and writes to you by email.",
    "texts": {
      "welcome": "Upload what Brightwater Lending asked for. It takes a few minutes, and you can stop and come back.",
      "done": "Thank you. Brightwater Lending has everything it asked for.",
      "expired": "This link has expired. Please ask Brightwater Lending for a new one."
    }
  },
  "title": "Personal loan",
  "purpose": "Apply for a personal loan with Brightwater Lending.",
  "asks": {
    "name": true,
    "email": "required",
    "phone": "optional"
  },
  "locale": "en"
}
Changes data

POST/v1/portal/starts

Starts a case from a public link: the person, the party, the request and, for a workflow, its run, then answers with the request’s own link to carry on at. In the widget (with its publishable key, from an origin the key lists) the answer also carries the request’s client secret, for one hour, to start the session in the frame. The case is named after the collection or the workflow and the time, as Bynn names it.

Who may
Anyone, with no account yet
CLI
kontiga portal start <start_token> --first-name <name> --last-name <name> [--email <address>] [--phone <+number>]
MCP tool
start_portal_request
Returns
The case, the person and the request made, with the request’s link.

Parameters

  • start_tokenstringRequired

    The public link’s token.

  • first_namestringRequired

    The visitor’s first name. At most 80 characters.

  • last_namestringRequired

    The visitor’s last name. At most 80 characters.

  • emailemail

    An email address, as the start page asks. At most 255 characters.

  • phonestring

    A phone number, as the start page asks.

curl -X POST https://api.kontiga.com/v1/portal/starts \
  -H "Content-Type: application/json" \
  -d '{
    "start_token": "cP4wN8kR2vL6mQ9xT3bH7sZ5yD1",
    "first_name": "Jens",
    "last_name": "Dekker",
    "email": "jens.dekker@example.com"
  }'

POST /v1/portal/starts

Response, 201 Created
{
  "object": "portal_start",
  "case_id": "case_3Wm7Rk1",
  "person_id": "per_8Qd2Hv5",
  "request_id": "rqs_6Pt9Lx2",
  "token": "kR5wN2xT8vL4mQ7bD3sH9pZ6",
  "path": "/r/kR5wN2xT8vL4mQ7bD3sH9pZ6",
  "url": "https://collect.kontiga.com/r/kR5wN2xT8vL4mQ7bD3sH9pZ6"
}

Started in the widget, with your publishable key from an origin it lists, the answer carries client_secret and client_secret_expires_at in place of the link (token, path and url): the new request’s client secret, for one hour, from which the frame starts its session (portal.start_session). A start without a key never carries one. A key opens only its own workspace’s public links, in its own mode; any other answers start_link_not_found. A public link of a paused workspace reads open: false and takes no start.

  • One way to reach the person is needed: an email address or a phone number. A start with neither is refused with invalid_input on email, so nothing is asked again once the case exists.
  • Send an Idempotency-Key: a repeat with the same key within 24 hours answers the first start again, never a second case.
  • A public link takes at most 1,000 starts a day and one a second; a publishable key at most 200 public starts a day. Past either, the start is rate_limited with Retry-After.
Reads only

GET/v1/workflows/{workflow_id}/preview_link

A link that runs a workflow as its end customer meets it, on a test request of the workspace, the draft as it stands included: try it before it is published. The link works in test mode only and makes nothing live.

Who may
Owner, Admin, Analyst, Developer and Viewer
CLI
kontiga workflows preview-link <workflow_id>
MCP tool
get_workflow_preview_link
Returns
The link, its QR code and the test request it runs on.

Parameters

  • workflow_idstringRequired

    The workflow to try, its draft included. At most 96 characters. In the path.

curl -X GET https://api.kontiga.com/v1/workflows/wf_3Hp9Ld2/preview_link \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

GET /v1/workflows/{workflow_id}/preview_link

Response, 200 OK
{
  "object": "portal_link",
  "url": "https://collect.kontiga.com/r/wP2nK8vR5mL3xQ9tB4dH7sZ6",
  "path": "/r/wP2nK8vR5mL3xQ9tB4dH7sZ6",
  "qr": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4=",
  "request_id": "rqs_8Wt4Hc6",
  "open": true
}

A verification profile can have a walk-in link, https://verify.kontiga.com/w/{slug}, that anyone can open to verify their identity: from a QR code at a branch desk, or from your own site. The visitor gives the details the profile asks for, then goes through its steps. Each start finds the person in People by your identifier, then by the email, or adds them. The profile’s per_hour and per_day limit the starts, counted over every verification the workspace starts.

  • The visitor’s calls need no key: the address word opens the page, and the start answers a session token for this device (kt_vst_ and 64 hex digits) with the verification’s id. Every later call sends the token in the Authorization header, and the page goes on at /w/{slug}/{verification_id}.
  • Each answer carries the preflight: the screen to show next (screen.show) with its parameters, and change, the verification’s change counter. The live channel sends it again after every change. A device is never told a finding, a score or a decision.
  • A phone or email code has six digits. One code a minute and three a day can be sent; more than three wrong codes close the step, and the person moves on.
  • Getting a profile’s link and trying a profile need a member’s key, as Settings, Verify uses them.
Reads only

GET/v1/verification_profiles/{profile_id}/walk_in_link

A verification profile’s walk-in link as the end customer opens it, with its QR code to show at a desk or print, and whether it is on.

Who may
Owner, Admin, Analyst, Developer and Viewer
CLI
kontiga verification-profiles walk-in-link <profile_id>
MCP tool
get_walk_in_link
Returns
The link, its QR code, its address word and whether it is on.

Parameters

  • profile_idid (vpr_)Required

    The verification profile whose walk-in link to get. In the path.

curl -X GET https://api.kontiga.com/v1/verification_profiles/vpr_counter/walk_in_link \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

GET /v1/verification_profiles/{profile_id}/walk_in_link

Response, 200 OK
{
  "object": "walk_in_link",
  "profile_id": "vpr_counter",
  "enabled": true,
  "url": "https://verify.kontiga.com/w/brightwater-counter",
  "path": "/w/brightwater-counter",
  "slug": "brightwater-counter",
  "qr": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciLz4=",
  "qr_png_base64": null
}

Try a verification profile

Changes data

POST/v1/verification_profiles/{profile_id}/try

Opens a profile’s walk-in page in test mode for you to go through as the end customer would: every step of the profile, your own name filled in, a test case at the end. Never billed. The try link works for an hour, even while the walk-in link is off.

Who may
Owner, Admin and Analyst; Developer in test mode
CLI
kontiga verification-profiles try <profile_id>
MCP tool
try_verification_profile
Returns
The test link to open, and until when it works.

Parameters

  • profile_idid (vpr_)Required

    The profile to try. The answer is a test verification of it with its own link, which works for an hour, even while the walk-in link is off. Never billed. In the path.

curl -X POST https://api.kontiga.com/v1/verification_profiles/vpr_counter/try \
  -H "Authorization: Bearer $KONTIGA_API_KEY"

POST /v1/verification_profiles/{profile_id}/try

Response, 201 Created
{
  "object": "profile_try",
  "profile_id": "vpr_counter",
  "verification_id": "idv_8Fd2Kw6",
  "mode": "test",
  "url": "https://verify.kontiga.com/v/kt_vlt_1e262cd7d110812f5726055a6e672b92cde43648b76adff51a12441fbdf7e667",
  "path": "/v/kt_vlt_1e262cd7d110812f5726055a6e672b92cde43648b76adff51a12441fbdf7e667",
  "expires_at": "2026-11-26T11:05:00Z",
  "qr_png_base64": "iVBORw0KGgoAAAANSUhEUgAAAPAAAADwCAYAAAA9..."
}
Reads only

GET/v1/walk_in/{slug}

What a verification profile’s walk-in link opens: the customer, the page’s title and description, the details asked first, and the steps of the verification. A link that is off, or that has had its hourly or daily number of starts, says so in plain words. With a member’s try key it opens in test mode.

Who may
Anyone with the walk-in link
CLI
kontiga portal walk-in-page <slug> [--trial <try_key>]
MCP tool
get_walk_in_page
Returns
The brand kit, the title and description, the details asked, the steps, and whether it takes a start now.

Parameters

  • slugstringRequired

    The link’s address word, the part after /w/. In the path.

  • trialid (try_)

    Not needed: a try link opens a test verification of its own.

curl -X GET https://api.kontiga.com/v1/walk_in/brightwater-counter

GET /v1/walk_in/{slug}

Response, 200 OK
{
  "object": "walk_in_page",
  "slug": "brightwater-counter",
  "title": "Verify your identity for Brightwater Lending",
  "description": "It takes about five minutes. Have your passport, ID card or driving licence ready.",
  "fields": {
    "first_name": true,
    "last_name": true,
    "email": true,
    "phone": true,
    "identifier": true
  },
  "identifier_label": "Customer number",
  "identifier_placeholder": "For example BL-104233",
  "organisation": "Brightwater Lending",
  "open": true
}

A link that was on and is now off answers 403 walk_in_off; an address word whose link was never on, or that no profile has, 404. organisation is the name the visitor reads, or null while the workspace has not named itself in its brand kit: the page then says who asks without a name.

Changes data

POST/v1/walk_in/{slug}/sessions

Starts an identity verification from a walk-in link: finds the person by the identifier, then the email, or adds them, opens a case for the verification and answers with the verification’s own page. Within the profile’s hourly and daily number of starts. A member’s try starts it in test mode.

Who may
Anyone with the walk-in link
CLI
kontiga portal walk-in-start <slug> [--first-name <name>] [--last-name <name>] [--email <address>] [--phone <+number>] [--identifier <text>] [--trial <try_key>]
MCP tool
start_walk_in_verification
Returns
The person, the case and the verification made, with the verification’s page.

Parameters

  • slugstringRequired

    The link’s address word. In the path.

  • trialid (try_)

    Not taken: a try link opens a test verification of its own.

  • first_namestring

    The visitor’s first name. Always asked. At most 80 characters.

  • last_namestring

    The visitor’s last name. Always asked. At most 80 characters.

  • emailemail

    Their email address, when the page asks for it. At most 255 characters.

  • phonestring

    Their phone number with its country code, such as +31612345678, when the page asks for it.

  • identifierstring

    Your own identifier for them, under the page’s identifier_label, when the page asks for it. It finds a person already in People first. At most 100 characters.

curl -X POST https://api.kontiga.com/v1/walk_in/brightwater-counter/sessions \
  -H "Content-Type: application/json" \
  -d '{
    "first_name": "Daan",
    "last_name": "Visser",
    "email": "daan.visser@example.com",
    "phone": "+31612345678",
    "identifier": "BL-104233"
  }'

POST /v1/walk_in/{slug}/sessions

Response, 201 Created
{
  "object": "verification_session",
  "token": "kt_vst_263a4dbe41488fb87214b0032339dbb9f0c8da14c16dfcf13084bf3c2552eca5",
  "expires_at": "2026-11-26T10:42:40Z",
  "verification_id": "idv_4Hq7Nc2",
  "active": true,
  "locale": "en",
  "right_to_left": false,
  "organisation": "Brightwater Lending",
  "live": "/v1/verify/session/live"
}

locale may be given too, as one of the portal’s languages; left out, the browser’s. Over the profile’s limits the start answers 429 rate_limited with Retry-After; a workspace that is paused, 403 workspace_suspended.

Read a walk-in verification

Reads only

GET/v1/walk_in/sessions/{session}

A walk-in verification as its page shows it: the steps of the profile in order, where each stands, the one that waits on the person, and what it needs (the ID document’s photos, the selfie, a code by text message or email, a proof). Never the result.

Who may
The end customer, with the verification's session
CLI
kontiga portal walk-in-session <session>
MCP tool
get_walk_in_session
Returns
The steps and where each stands, the current one, and what it needs.

Parameters

  • sessionid (wks_)Required

    The verification’s id from the start’s answer, in the path. The session token goes in the Authorization header. In the path.

curl -X GET https://api.kontiga.com/v1/walk_in/sessions/wks_Rk4Tn8Wq2Lm6Hd9Bv3Xc

GET /v1/walk_in/sessions/{session}

Response, 200 OK
{
  "object": "walk_in_session",
  "verification_id": "idv_4Hq7Nc2",
  "change": 6,
  "preflight": {
    "extra_data": {},
    "session": "idv_4Hq7Nc2",
    "session_id": "idv_4Hq7Nc2",
    "entity_id_state": "completed",
    "entity_id_document_type": "id_card",
    "requirement": {
      "requirement_type": "phone_verification",
      "status": "awaiting_receipt",
      "flow_order": 400
    },
    "screen": {
      "show": "phone_verification_screen",
      "parameters": {}
    }
  },
  "return_url": "https://brightwater.example/branch/thanks",
  "live": "/v1/verify/session/live"
}

Agree to a verification

Changes data

POST/v1/verify/session/consent

Gives or refuses consent before the first photo, in the profile’s own words. Saying no stops the verification and tells the team.

Who may
The end customer, with the verification's session
CLI
kontiga portal verify-consent <session> --gives-consent <true|false>
MCP tool
give_verification_consent
Returns
The verification after the answer. With a session token (kt_vst_): the receipt, status accepted with the change counter and the next screen.

Parameters

  • sessionstringRequired

    The device’s session token, from the start’s answer. The API takes it in the Authorization header.

  • gives_consentbooleanRequired

    Whether the person agrees, in the profile’s consent words. No stops the verification and tells the team.

curl -X POST https://api.kontiga.com/v1/verify/session/consent \
  -H "Authorization: Bearer wks_Rk4Tn8Wq2Lm6Hd9Bv3Xc" \
  -H "Content-Type: application/json" \
  -d '{
    "gives_consent": true
  }'

POST /v1/verify/session/consent

Response, 200 OK
{
  "status": "accepted",
  "change": 2,
  "preflight": {
    "extra_data": {},
    "session": "idv_4Hq7Nc2",
    "session_id": "idv_4Hq7Nc2",
    "entity_id_state": "none_received",
    "entity_id_document_type": "unknown",
    "requirement": {
      "requirement_type": "identity_document",
      "status": "awaiting_receipt",
      "flow_order": 100
    },
    "screen": {
      "show": "scan_id_document_front_screen",
      "parameters": {
        "camera": "back",
        "camera_quality": "ultra",
        "allow_manual_upload": false,
        "multipage": false,
        "title": null,
        "text": null
      }
    }
  },
  "return_url": "https://brightwater.example/branch/thanks"
}

Send a photo of the ID

Changes data

POST/v1/verify/session/id_document

One photo for a verification: a side of the ID document (on the walk-in page, or the selfie). Answered with the instant check in plain words: taken, or what to change and try again. With a session token (kt_vst_) the selfie is portal.liveness.

Who may
The end customer, with the verification's session
CLI
kontiga portal verify-id-document <session> <file> --part <front|back|selfie> [--document <passport|card|licence>] [--capture-method <auto|manual|upload>] [--visitor-id <id>] [--idempotency-key <key>]
MCP tool
send_verification_photo
Returns
The photo with its answer, and the verification after it. With a session token (kt_vst_) the file is sent as multipart (file, capture_method, visitor_id): the receipt, status received (202) or duplicate_ignored (200), with the next screen, which says checking while the photo is judged.

Parameters

  • sessionstringRequired

    The device’s session token, from the start’s answer. The API takes it in the Authorization header.

  • partenumRequired

    The side the preflight’s screen asks for, the front or the back. The selfie is portal.liveness. One of front, back, selfie.

  • documentenum

    The kind of ID document. It is read from the photo. One of passport, card, licence.

  • file_namestringRequired

    The photo’s file name, sent as the form’s file. At most 255 characters.

  • content_typestringRequired

    A JPEG, PNG or PDF. The type is read from the file’s own bytes. At most 100 characters.

  • byte_sizeintegerRequired

    The photo’s size in bytes, up to 20 MB.

  • capture_methodenum

    How it was taken. One of upload, camera, autocapture, manual_camera, auto, manual.

  • visitor_idid (vis_)

    The device’s visitor id, when the page has one.

  • idempotency_keystring

    The idempotency key.

curl -X POST https://api.kontiga.com/v1/verify/session/id_document \
  -H "Authorization: Bearer wks_Rk4Tn8Wq2Lm6Hd9Bv3Xc" \
  -H "Content-Type: application/json" \
  -d '{
    "part": "front",
    "document": "card",
    "file_name": "front.jpg",
    "content_type": "image/jpeg",
    "byte_size": 884736,
    "capture_method": "upload"
  }'

POST /v1/verify/session/id_document

Response, 202 Accepted
{
  "status": "received",
  "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"
}

The photo goes as multipart/form-data: file, with capture_method (auto, manual for the shutter, or upload for a file), visitor_id and camera_failed (true when the camera could not be used and the profile takes a file then). The answer says it was received. Within seconds the live channel brings the next side or step, or the same screen again with what to change about the photo in extra_data.

Send a code to a phone

Changes data

POST/v1/verify/session/phone

Sends a six-digit code by text message for the phone step, in the person’s language. One a minute and three a day; a second code within the minute is refused with how long to wait and the step stays open.

Who may
The end customer, with the verification's session
CLI
kontiga portal verify-phone <session> [--phone-number <+number>] [--country-code <GB>] [--use-given]
MCP tool
send_verification_phone_code
Returns
The verification with the code sent, and when another may be asked. With a session token (kt_vst_): status sent with the change counter and the next screen.

Parameters

  • sessionstringRequired

    The device’s session token, from the start’s answer. The API takes it in the Authorization header.

  • phone_numberstring

    The number to send the code to, with its country code, or with country_code. At most 24 characters.

  • country_codestring

    The number’s country, as two letters such as NL, for a number typed without its country code.

  • use_givenboolean

    Send phone_number itself: the number given at the start is not filled in for you.

curl -X POST https://api.kontiga.com/v1/verify/session/phone \
  -H "Authorization: Bearer wks_Rk4Tn8Wq2Lm6Hd9Bv3Xc" \
  -H "Content-Type: application/json" \
  -d '{
    "phone_number": "+31612345678"
  }'

POST /v1/verify/session/phone

Response, 200 OK
{
  "status": "sent",
  "change": 7,
  "preflight": {
    "extra_data": {},
    "session": "idv_4Hq7Nc2",
    "session_id": "idv_4Hq7Nc2",
    "entity_id_state": "completed",
    "entity_id_document_type": "id_card",
    "requirement": {
      "requirement_type": "phone_verification",
      "status": "awaiting_receipt",
      "flow_order": 400
    },
    "screen": {
      "show": "phone_verification_screen",
      "parameters": {}
    }
  }
}

Check a phone code

Changes data

POST/v1/verify/session/phone/check

Checks the code the person typed. A wrong code says so and counts; after more than three wrong codes the step closes and the person moves on, as built.

Who may
The end customer, with the verification's session
CLI
kontiga portal verify-phone-check <session> --code <123456>
MCP tool
check_verification_phone_code
Returns
The verification after the check. With a session token (kt_vst_): the receipt with the next screen.

Parameters

  • sessionstringRequired

    The device’s session token, from the start’s answer. The API takes it in the Authorization header.

  • codestringRequired

    The six digits from the text message. A wrong code answers 400 code_invalid and counts; after more than three, the step closes, the answer is failed and the person moves on.

curl -X POST https://api.kontiga.com/v1/verify/session/phone/check \
  -H "Authorization: Bearer wks_Rk4Tn8Wq2Lm6Hd9Bv3Xc" \
  -H "Content-Type: application/json" \
  -d '{
    "code": "614208"
  }'

POST /v1/verify/session/phone/check

Response, 200 OK
{
  "status": "accepted",
  "change": 8,
  "preflight": {
    "extra_data": {},
    "session": "idv_4Hq7Nc2",
    "session_id": "idv_4Hq7Nc2",
    "entity_id_state": "completed",
    "entity_id_document_type": "id_card",
    "requirement": {
      "requirement_type": "email_verification",
      "status": "awaiting_receipt",
      "flow_order": 500
    },
    "screen": {
      "show": "email_verification_screen",
      "parameters": {}
    }
  }
}

Send a code to an email address

Changes data

POST/v1/verify/session/email

Sends a six-digit code by email for the email step, in the person’s language. The address is checked as it is typed (format, at most 255 characters, and a domain one letter away from a common one is offered back: "Did you mean gmail.com?"). One a minute and three a day.

Who may
The end customer, with the verification's session
CLI
kontiga portal verify-email <session> [--email-address <address>] [--use-given]
MCP tool
send_verification_email_code
Returns
The verification with the code sent. With a session token (kt_vst_): status sent with the change counter and the next screen.

Parameters

  • sessionstringRequired

    The device’s session token, from the start’s answer. The API takes it in the Authorization header.

  • email_addressstring

    The address to send the code to. A domain one letter away from a common one is refused with the fix, such as "Did you mean gmail.com?". At most 320 characters.

  • use_givenboolean

    Send email_address itself: the address given at the start is not filled in for you.

curl -X POST https://api.kontiga.com/v1/verify/session/email \
  -H "Authorization: Bearer wks_Rk4Tn8Wq2Lm6Hd9Bv3Xc" \
  -H "Content-Type: application/json" \
  -d '{
    "email_address": "daan.visser@example.com"
  }'

POST /v1/verify/session/email

Response, 200 OK
{
  "status": "sent",
  "change": 9,
  "preflight": {
    "extra_data": {},
    "session": "idv_4Hq7Nc2",
    "session_id": "idv_4Hq7Nc2",
    "entity_id_state": "completed",
    "entity_id_document_type": "id_card",
    "requirement": {
      "requirement_type": "email_verification",
      "status": "awaiting_receipt",
      "flow_order": 500
    },
    "screen": {
      "show": "email_verification_screen",
      "parameters": {}
    }
  }
}

Check an email code

Changes data

POST/v1/verify/session/email/check

Checks the code from the email, with the same rules as the phone: a wrong code counts, and more than three closes the step.

Who may
The end customer, with the verification's session
CLI
kontiga portal verify-email-check <session> --code <123456>
MCP tool
check_verification_email_code
Returns
The verification after the check. With a session token (kt_vst_): the receipt with the next screen.

Parameters

  • sessionstringRequired

    The device’s session token, from the start’s answer. The API takes it in the Authorization header.

  • codestringRequired

    The six digits from the email. A wrong code answers 400 code_invalid and counts; after more than three, the step closes, the answer is failed and the person moves on.

curl -X POST https://api.kontiga.com/v1/verify/session/email/check \
  -H "Authorization: Bearer wks_Rk4Tn8Wq2Lm6Hd9Bv3Xc" \
  -H "Content-Type: application/json" \
  -d '{
    "code": "290531"
  }'

POST /v1/verify/session/email/check

Response, 200 OK
{
  "status": "accepted",
  "change": 10,
  "preflight": {
    "extra_data": {},
    "session": "idv_4Hq7Nc2",
    "session_id": "idv_4Hq7Nc2",
    "entity_id_state": "completed",
    "entity_id_document_type": "id_card",
    "requirement": {
      "requirement_type": "proof_of_address",
      "status": "awaiting_receipt",
      "flow_order": 600
    },
    "screen": {
      "show": "proof_of_address_screen",
      "parameters": {
        "camera": "back",
        "camera_quality": "ultra",
        "allow_manual_upload": true,
        "multipage": true,
        "title": null,
        "text": null
      }
    }
  }
}

Send a proof

Changes data

POST/v1/verify/session/proof_of_address

A proof of address or a proof of funds for its step: a PDF or a photo (JPG or PNG). Answered "checking" at once, then received, or asked again with the reason (not a valid proof, or too old). The third proof not accepted closes the step and the person moves on.

Who may
The end customer, with the verification's session
CLI
kontiga portal verify-proof <session> <file> --kind <address|funds> [--idempotency-key <key>]
MCP tool
send_verification_proof
Returns
The file with its answer, and the verification after it. With a session token (kt_vst_) the file is sent as multipart: status analyzing (202) or duplicate_ignored (200), with the next screen; the answer arrives on the live channel.

Parameters

  • sessionstringRequired

    The device’s session token, from the start’s answer. The API takes it in the Authorization header.

  • kindenumRequired

    address. A proof of funds goes to portal.proof_of_funds. One of address, funds.

  • file_namestringRequired

    The file’s name, sent as the form’s file in multipart/form-data. At most 255 characters.

  • content_typestringRequired

    A PDF, or a JPG or PNG photo. At most 100 characters.

  • byte_sizeintegerRequired

    The file’s size in bytes, up to 20 MB.

  • idempotency_keystring

    The idempotency key.

curl -X POST https://api.kontiga.com/v1/verify/session/proof_of_address \
  -H "Authorization: Bearer wks_Rk4Tn8Wq2Lm6Hd9Bv3Xc" \
  -H "Content-Type: application/json" \
  -d '{
    "kind": "address",
    "file_name": "energy-bill-october.pdf",
    "content_type": "application/pdf",
    "byte_size": 312448
  }'

POST /v1/verify/session/proof_of_address

Response, 202 Accepted
{
  "status": "analyzing",
  "change": 11,
  "preflight": {
    "extra_data": {},
    "session": "idv_4Hq7Nc2",
    "session_id": "idv_4Hq7Nc2",
    "entity_id_state": "completed",
    "entity_id_document_type": "id_card",
    "requirement": {
      "requirement_type": "proof_of_address",
      "status": "awaiting_receipt",
      "flow_order": 600
    },
    "screen": {
      "show": "proof_of_address_screen",
      "parameters": {
        "camera": "back",
        "camera_quality": "ultra",
        "allow_manual_upload": true,
        "multipage": true,
        "title": null,
        "text": null
      }
    }
  },
  "return_url": "https://brightwater.example/branch/thanks"
}

A proof is answered analyzing at once. A few seconds later the live channel’s preflight carries proof_of_address: received, or rejected with the reason in words, such as not a valid proof or too old. The third proof not accepted closes the step, and the person moves on.

Correct the person's details

Changes data

PATCH/v1/verify/session

The person corrects their own first and last name, identifier, phone (with its country code) or email. The email is checked as on the email step, "Did you mean gmail.com?" included. Five changes a minute.

Who may
The end customer, with the verification's session
CLI
kontiga portal verify-details <session> [--first-name <name>] [--last-name <name>] [--identifier <text>] [--phone <number>] [--country-code <GB>] [--email <address>]
MCP tool
update_verification_details
Returns
The verification with the details as corrected. With a session token (kt_vst_): the device’s state (verification_session_state).

Parameters

  • sessionstringRequired

    The device’s session token, from the start’s answer. The API takes it in the Authorization header.

  • first_namestring

    The corrected first name. At most 80 characters.

  • last_namestring

    The corrected last name. At most 80 characters.

  • identifierstring

    The corrected identifier. At most 100 characters.

  • phonestring

    The corrected phone number. At most 24 characters.

  • country_codestring

    The number’s country, as two letters, for a number without its country code.

  • emailstring

    The corrected email address, checked as on the email step. At most 320 characters.

curl -X PATCH https://api.kontiga.com/v1/verify/session \
  -H "Authorization: Bearer wks_Rk4Tn8Wq2Lm6Hd9Bv3Xc" \
  -H "Content-Type: application/json" \
  -d '{
    "phone": "06 98765432",
    "country_code": "NL"
  }'

PATCH /v1/verify/session

Response, 200 OK
{
  "object": "verification_session_state",
  "change": 3,
  "preflight": {
    "extra_data": {},
    "session": "idv_4Hq7Nc2",
    "session_id": "idv_4Hq7Nc2",
    "entity_id_state": "none_received",
    "entity_id_document_type": "unknown",
    "requirement": {
      "requirement_type": "identity_document",
      "status": "awaiting_receipt",
      "flow_order": 100
    },
    "screen": {
      "show": "scan_id_document_front_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"
}

Stop a verification

Changes data

POST/v1/verify/session/cancel

The person stops: the verification is stopped, the team is told, and nothing more is asked.

Who may
The end customer, with the verification's session
CLI
kontiga portal verify-cancel <session>
MCP tool
stop_verification_session
Returns
The verification, stopped. With a session token (kt_vst_): status cancelled, with no screen to show.

Parameters

  • sessionstringRequired

    The device’s session token, from the start’s answer. The API takes it in the Authorization header.

curl -X POST https://api.kontiga.com/v1/verify/session/cancel \
  -H "Authorization: Bearer wks_Rk4Tn8Wq2Lm6Hd9Bv3Xc"

POST /v1/verify/session/cancel

Response, 200 OK
{
  "status": "cancelled",
  "change": 12,
  "preflight": {
    "extra_data": {},
    "session": "idv_4Hq7Nc2",
    "session_id": "idv_4Hq7Nc2",
    "entity_id_state": "completed",
    "entity_id_document_type": "id_card",
    "requirement": {
      "requirement_type": "proof_of_address",
      "status": "awaiting_receipt",
      "flow_order": 600
    },
    "screen": {
      "show": "proof_of_address_screen",
      "parameters": {
        "camera": "back",
        "camera_quality": "ultra",
        "allow_manual_upload": true,
        "multipage": true,
        "title": null,
        "text": null
      }
    }
  },
  "return_url": "https://brightwater.example/branch/thanks"
}

Verifying on the device

The calls the portal, the widget, the Kontiga app and the SDKs make while the person verifies, on the device’s own session token (kt_vst_), sent in the Authorization header (the CLI and the MCP tools take it as session). Each capture is answered at once with the preflight; what comes next arrives on the live channel. No answer carries a decision, a finding or a score. The contract, with its headers, limits and errors: The verification client API.

Choose how to verify

Changes data

POST/v1/verify/session/method

The person chooses how to prove who they are, among the ways the verification profile offers: their ID document and a selfie, ZOREAL ID, or Aadhaar. The next screen follows from the choice.

Who may
The end customer, with the verification's session
CLI
kontiga portal verify-method <session> --method <document|zoreal_id|aadhaar>
MCP tool
choose_verification_method
Returns
The way chosen, and the verification with its next step. With a session token (kt_vst_): the receipt with the change counter and the next screen.

Parameters

  • sessionstringRequired

    The device’s session token: a start’s, a link’s, a handoff’s, or the one identity_verifications.session_token gave your app. The API takes it in the Authorization header.

  • methodenumRequired

    document (the ID document and a selfie), zoreal_id or aadhaar, among the ways the profile offers.

curl -X POST https://api.kontiga.com/v1/verify/session/method \
  -H "Authorization: Bearer kt_vst_263a4dbe41488fb87214b0032339dbb9f0c8da14c16dfcf13084bf3c2552eca5" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "document"
  }'

POST /v1/verify/session/method

Response, 200 OK
{
  "status": "accepted",
  "change": 3,
  "preflight": {
    "extra_data": {},
    "session": "idv_4Hq7Nc2",
    "session_id": "idv_4Hq7Nc2",
    "entity_id_state": "none_received",
    "entity_id_document_type": "unknown",
    "requirement": {
      "requirement_type": "identity_document",
      "status": "awaiting_receipt",
      "flow_order": 100
    },
    "screen": {
      "show": "scan_id_document_front_screen",
      "parameters": {
        "camera": "back",
        "camera_quality": "ultra",
        "allow_manual_upload": false,
        "multipage": false,
        "title": null,
        "text": null
      }
    }
  },
  "return_url": "https://brightwater.example/branch/thanks"
}

On a phone’s browser, when the profile reads the chip, the preflight may offer Kontiga’s app first (app_handoff_screen). The same call answers it with app_offer, accept or decline, in place of method.

Get a chip challenge

Changes data

POST/v1/verify/session/chip/challenge

Before the ID document’s chip is read on the phone, a fresh challenge for that one read. It works once, for 5 minutes; each new read asks for a new one.

Who may
The end customer, with the verification's session
CLI
kontiga portal chip-challenge <session>
MCP tool
get_chip_challenge
Returns
The challenge, base64, and when it stops working.

Parameters

  • sessionstringRequired

    The device’s session token: a start’s, a link’s, a handoff’s, or the one identity_verifications.session_token gave your app. The API takes it in the Authorization header.

curl -X POST https://api.kontiga.com/v1/verify/session/chip/challenge \
  -H "Authorization: Bearer kt_vst_263a4dbe41488fb87214b0032339dbb9f0c8da14c16dfcf13084bf3c2552eca5"

POST /v1/verify/session/chip/challenge

Response, 201 Created
{
  "object": "chip_challenge",
  "challenge": "q3V9xL2bT8k=",
  "expires_at": "2026-11-26T10:20:41Z"
}

Send what the chip gave

Changes data

POST/v1/verify/session/chip/evidence

What the phone read from the ID document’s chip, with the challenge it was read for. The answer says the chip was read and what comes next; whether it was trusted is never told to the person.

Who may
The end customer, with the verification's session
CLI
kontiga portal chip-evidence <session> <file> --challenge <base64>
MCP tool
send_chip_evidence
Returns
Whether the chip was read, and the verification with its next step.

Parameters

  • sessionstringRequired

    The device’s session token: a start’s, a link’s, a handoff’s, or the one identity_verifications.session_token gave your app. The API takes it in the Authorization header.

  • challengestringRequired

    The challenge this read was made for. It works once.

  • evidencestringRequired

    What the phone read from the chip, in base64, as the Kontiga app and the SDKs give it. At most 400,000 characters.

curl -X POST https://api.kontiga.com/v1/verify/session/chip/evidence \
  -H "Authorization: Bearer kt_vst_263a4dbe41488fb87214b0032339dbb9f0c8da14c16dfcf13084bf3c2552eca5" \
  -H "Content-Type: application/json" \
  -d '{
    "challenge": "q3V9xL2bT8k=",
    "evidence": "omdkYXRhX2dyb3Vwc6..."
  }'

POST /v1/verify/session/chip/evidence

Response, 200 OK
{
  "read": true,
  "change": 5,
  "preflight": {
    "extra_data": {},
    "session": "idv_4Hq7Nc2",
    "session_id": "idv_4Hq7Nc2",
    "entity_id_state": "id_received_awaiting_liveness",
    "entity_id_document_type": "id_card",
    "requirement": {
      "requirement_type": "liveness",
      "status": "awaiting_receipt",
      "flow_order": 300
    },
    "screen": {
      "show": "liveness_screen",
      "parameters": {}
    }
  }
}

A device that cannot read the chip sends not_read: true alone, and the profile’s chip_failure says what follows. A used, expired or another verification’s challenge answers 410 challenge_expired, and a value that is not a challenge 400 invalid_input on challenge: ask for a new one. A chip that could not be checked just now answers 503 chip_unavailable with Retry-After; the step still waits, so read it again. A browser reads no chip: its challenge is 426 client_outdated.

Send the selfie

Changes data

POST/v1/verify/session/liveness

The selfie capture: one to five stills and the short video taken around them, with the face’s position on each and the device’s details. Answered at once; the result is never told to the person, and the next screen arrives on the live channel.

Who may
The end customer, with the verification's session
CLI
kontiga portal liveness <session> <folder> [--visitor-id <vis_id>] [--landmarks <json>] [--face-bounds <json>] [--image-face-bounds <json>] [--device-info <json>] [--idempotency-key <key>]
MCP tool
send_selfie_capture
Returns
received with the number of stills and whether the video was kept, or duplicate_ignored for the same capture sent again within 5 minutes.

Parameters

  • sessionstringRequired

    The device’s session token: a start’s, a link’s, a handoff’s, or the one identity_verifications.session_token gave your app. The API takes it in the Authorization header.

  • visitor_idid (vis_)

    Sent by the Kontiga portal and SDKs when they have one.

  • imagesarray of objectRequired

    One to five stills, each up to 4 MB.

  • videoobject

    The short video taken around them, up to 50 MB. The whole request is at most 80 MB.

  • landmarksstring

    What the capture recorded of the face, as JSON, as the Kontiga portal and SDKs send it. At most 200,000 characters.

  • face_boundsstring

    Where the face is, as JSON {x, y, width, height}. At most 2,000 characters.

  • image_face_boundsstring

    Where the face is on each still, as JSON. At most 10,000 characters.

  • device_infostring

    The device’s user agent, platform and screen, as JSON. At most 2,000 characters.

  • idempotency_keystring

    The idempotency key.

curl -X POST https://api.kontiga.com/v1/verify/session/liveness \
  -H "Authorization: Bearer kt_vst_263a4dbe41488fb87214b0032339dbb9f0c8da14c16dfcf13084bf3c2552eca5" \
  -H "Content-Type: application/json" \
  -d '{
    "images": [
      {
        "file_name": "still-1.jpg",
        "content_type": "image/jpeg",
        "byte_size": 412000
      }
    ],
    "video": {
      "file_name": "capture.webm",
      "content_type": "video/webm",
      "byte_size": 6120000
    }
  }'

POST /v1/verify/session/liveness

Response, 202 Accepted
{
  "verification": "received",
  "biometric_verification_token": "vfl_17b7bb301cacc98e43339906ba15b106",
  "image_count": 5,
  "video_stored": true
}

The capture goes as multipart/form-data: each still as an images part, the video part, and landmarks, face_bounds, image_face_bounds and device_info as JSON text. Above a limit it answers 413 with image_too_large, video_too_large or request_too_large. The same capture sent again within 5 minutes answers 200 and duplicate_ignored with the first one’s token.

Send a proof of funds

Changes data

POST/v1/verify/session/proof_of_funds

A proof of funds for its step: a bank or savings statement, or a payslip, as a PDF or a photo (JPG or PNG). Answered "checking" at once; received, or asked again with the reason, arrives on the live channel.

Who may
The end customer, with the verification's session
CLI
kontiga portal proof-of-funds <session> <file> [--idempotency-key <key>]
MCP tool
send_proof_of_funds
Returns
analyzing, with the change counter and the next screen; the answer arrives on the live channel.

Parameters

  • sessionstringRequired

    The device’s session token: a start’s, a link’s, a handoff’s, or the one identity_verifications.session_token gave your app. The API takes it in the Authorization header.

  • file_namestringRequired

    The file’s name, sent as the form’s file in multipart/form-data. At most 255 characters.

  • content_typestringRequired

    A PDF, or a JPG or PNG photo. At most 100 characters.

  • byte_sizeintegerRequired

    The file’s size in bytes, up to 20 MB.

  • idempotency_keystring

    The idempotency key.

curl -X POST https://api.kontiga.com/v1/verify/session/proof_of_funds \
  -H "Authorization: Bearer kt_vst_263a4dbe41488fb87214b0032339dbb9f0c8da14c16dfcf13084bf3c2552eca5" \
  -H "Content-Type: application/json" \
  -d '{
    "file_name": "bank-statement-october.pdf",
    "content_type": "application/pdf",
    "byte_size": 284112
  }'

POST /v1/verify/session/proof_of_funds

Response, 202 Accepted
{
  "status": "analyzing",
  "change": 13,
  "preflight": {
    "extra_data": {},
    "session": "idv_4Hq7Nc2",
    "session_id": "idv_4Hq7Nc2",
    "entity_id_state": "completed",
    "entity_id_document_type": "id_card",
    "requirement": {
      "requirement_type": "proof_of_funds",
      "status": "awaiting_receipt",
      "flow_order": 700
    },
    "screen": {
      "show": "proof_of_funds_screen",
      "parameters": {
        "camera": "back",
        "camera_quality": "ultra",
        "allow_manual_upload": true,
        "multipage": true,
        "title": null,
        "text": null
      }
    }
  },
  "return_url": "https://brightwater.example/branch/thanks"
}

As with a proof of address, the live channel’s preflight then carries proof_of_funds: received, or rejected with the reason in words.

Continue on another device

Changes data

POST/v1/verify/session/handoff

A code to carry on the verification on another device: a QR code to scan with the phone, or a text message with the link. It works once, for 10 minutes; the device that opens it becomes the one the person continues on.

Who may
The end customer, with the verification's session
CLI
kontiga portal verify-handoff <session> --kind <qr|sms> [--phone-number <+number>]
MCP tool
hand_off_verification
Returns
The link, its QR code or where the text message went, and when it stops working.

Parameters

  • sessionstringRequired

    The device’s session token: a start’s, a link’s, a handoff’s, or the one identity_verifications.session_token gave your app. The API takes it in the Authorization header.

  • kindenumRequired

    qr for a QR code to scan, sms to text the link.

  • phone_numberstring

    With sms: the number, with its country code.

curl -X POST https://api.kontiga.com/v1/verify/session/handoff \
  -H "Authorization: Bearer kt_vst_263a4dbe41488fb87214b0032339dbb9f0c8da14c16dfcf13084bf3c2552eca5" \
  -H "Content-Type: application/json" \
  -d '{
    "kind": "qr"
  }'

POST /v1/verify/session/handoff

Response, 201 Created
{
  "object": "verification_handoff",
  "url": "https://verify.kontiga.com/v/h/kt_vho_249215fed826e1cff9368c2c7490760a16f7bd49f875d39a9f23eaf1505d076d",
  "expires_at": "2026-11-26T10:25:12Z",
  "sent": false,
  "qr_png_base64": "iVBORw0KGgoAAAANSUhEUgAAAPAAAADwCAYAAAA9..."
}

sent is true when the link went by text message. A device that only follows (continues_elsewhere_screen) takes the verification over with kind: "here", answered with the preflight.

Open a verification on this device

Changes data

POST/v1/verify/sessions/handoff/{code}

The new device opens the handoff code from the QR code or the text message and gets its own session; the device before follows each step as it finishes. A code works once, for 10 minutes.

Who may
The end customer, with the handoff code
CLI
kontiga portal redeem-handoff <code>
MCP tool
redeem_verification_handoff
Returns
The grant (object verification_session): the new device’s session token, when it stops working unless used, active, the brand kit, the live channel’s path and the verification on its next step.

Parameters

  • codestringRequired

    The code at the end of the handoff link (kt_vho_ and 64 hex digits). It works once, for 10 minutes. In the path.

curl -X POST https://api.kontiga.com/v1/verify/sessions/handoff/Hx7Lq2Wv9Tk4Rm8B

POST /v1/verify/sessions/handoff/{code}

Response, 201 Created
{
  "object": "verification_session",
  "token": "kt_vst_45569da57f4b7bf472d7a864ef4781451cae6383fee9fb0ae40c59aa1ce475b7",
  "expires_at": "2026-11-26T10:47:30Z",
  "verification_id": "idv_4Hq7Nc2",
  "active": true,
  "locale": "en",
  "right_to_left": false,
  "organisation": "Brightwater Lending",
  "live": "/v1/verify/session/live"
}

Continue with ZOREAL ID

Changes data

POST/v1/verify/session/zoreal

Starts the sign-in with ZOREAL ID, when the profile offers it: a link that opens the ZOREAL ID app on a phone, or a QR code to scan on a computer. When the person approves there, their ID steps are done and the verification goes on.

Who may
The end customer, with the verification's session
CLI
kontiga portal zoreal-start <session>
MCP tool
start_zoreal_id_sign_in
Returns
The link to open, its QR code, and when it stops working.

Parameters

  • sessionstringRequired

    The device’s session token: a start’s, a link’s, a handoff’s, or the one identity_verifications.session_token gave your app. The API takes it in the Authorization header.

curl -X POST https://api.kontiga.com/v1/verify/session/zoreal \
  -H "Authorization: Bearer kt_vst_263a4dbe41488fb87214b0032339dbb9f0c8da14c16dfcf13084bf3c2552eca5"

POST /v1/verify/session/zoreal

Response, 201 Created
{
  "object": "zoreal_sign_in",
  "url": "https://id.zoreal.com/pair/Kd3Rv8Lm2Tq6",
  "expires_at": "2026-11-26T10:22:00Z",
  "qr_png_base64": "iVBORw0KGgoAAAANSUhEUgAAAPAAAADwCAYAAAA9..."
}

surface, qr or link, says how the sign-in is shown; left out, a QR code on a desktop and a link on a phone. The person approves in ZOREAL ID, and the live channel brings the next step.

Send an Aadhaar

Changes data

POST/v1/verify/session/aadhaar

When the profile offers Aadhaar: a photo of the side of the Aadhaar card with its QR code, or the e-Aadhaar PDF. Answered "checking" at once; the next screen arrives on the live channel, and the person can still use their ID document instead.

Who may
The end customer, with the verification's session
CLI
kontiga portal aadhaar <session> <file> [--idempotency-key <key>]
MCP tool
send_aadhaar
Returns
analyzing, with the change counter and the next screen (electronic_identity_screen, checking); the next step arrives on the live channel. The same file again within 5 minutes is duplicate_ignored.

Parameters

  • sessionstringRequired

    The device’s session token: a start’s, a link’s, a handoff’s, or the one identity_verifications.session_token gave your app. The API takes it in the Authorization header.

  • file_namestringRequired

    The file’s name, sent as the form’s file in multipart/form-data. At most 255 characters.

  • content_typestringRequired

    A JPG or PNG photo of the card’s side with the QR code, or the e-Aadhaar PDF. At most 100 characters.

  • byte_sizeintegerRequired

    The file’s size in bytes, up to 20 MB.

  • idempotency_keystring

    The idempotency key.

curl -X POST https://api.kontiga.com/v1/verify/session/aadhaar \
  -H "Authorization: Bearer kt_vst_263a4dbe41488fb87214b0032339dbb9f0c8da14c16dfcf13084bf3c2552eca5" \
  -H "Content-Type: application/json" \
  -d '{
    "file_name": "aadhaar.jpg",
    "content_type": "image/jpeg",
    "byte_size": 918220
  }'

POST /v1/verify/session/aadhaar

Response, 202 Accepted
{
  "status": "analyzing",
  "change": 4,
  "preflight": {
    "extra_data": {},
    "session": "idv_4Hq7Nc2",
    "session_id": "idv_4Hq7Nc2",
    "entity_id_state": "none_received",
    "entity_id_document_type": "unknown",
    "requirement": {
      "requirement_type": "identity_document",
      "status": "awaiting_receipt",
      "flow_order": 100
    },
    "screen": {
      "show": "electronic_identity_screen",
      "parameters": {
        "method": "aadhaar",
        "state": "checking"
      }
    }
  },
  "return_url": "https://brightwater.example/branch/thanks"
}

Verify identity before the checklist

Changes data

POST/v1/portal/gate/identity

On a request whose link asks for identity first: opens, or reads again, the identity verification the person passes before the checklist, in every new visit. It passes once the selfie matches the ID document; the checklist opens then.

Who may
Anyone, with no account yet
CLI
kontiga portal identity-gate <token>
MCP tool
open_portal_identity_gate
Returns
to_do with the session the capture screens open, checking, passed, or failed with what the person reads.

Parameters

  • tokenstringRequired

    The request’s link token, on a request whose link asks for identity first.

curl -X POST https://api.kontiga.com/v1/portal/gate/identity \
  -H "Content-Type: application/json" \
  -d '{
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc"
  }'

POST /v1/portal/gate/identity

Response, 200 OK
{
  "state": "to_do",
  "session_token": "vst_Bn5Xr2Kq8Wm4Ld7Tc9",
  "expires_at": "2026-11-26T10:48:00Z",
  "message": null
}

The gate passes once the selfie matches the ID document, usually within seconds; the checklist opens then. Asked again in the same visit, it answers the same session.

Sessions

The portal and the widget work in a session: one request, one device. It starts from the link’s token, from a handoff token when the person moves to their phone, or from a client secret your server made for the widget, and its token goes with every later call. A session ends after 2 hours without a step, or 24 hours in all; the person opens their link again to carry on, and nothing they sent is lost. A publishable key only starts a session: it reads no case, document or result.

  • Every call of a session carries its token as Authorization: Bearer kt_pst_.... The token is shown once, in the start’s answer, and kept only as a hash.
  • A client secret starts a session only with your publishable key, from an origin the key lists. A key from another origin is refused with origin_not_allowed before anything else happens.
  • Starting a session changes nothing on the request. Marking it opened is a call of its own, made when the page is shown to a person.
  • A secret key or a member’s token is refused on every portal call with key_scope_denied. A session token is refused on every call outside the portal.
  • session_required (401): no session token. session_expired (401): a session that ended or was revoked; start a new one from the link. request_cancelled (410): every token of a withdrawn request stops working, and its link shows the withdrawn page.
  • link_not_found, handoff_invalid and invalid_secret (404) say nothing about the request. secret_expired (401): a client secret past its hour; make a new one on your server for each time the page is shown. rate_limited (429) comes with Retry-After and details.reason: too many calls from one address or on one request, or a day used up (daily_starts for your publishable key’s public starts, address_day for one visitor’s share of a day, link_day for a public link’s), which opens again at 00:00 UTC.

Start a portal session

Changes data

POST/v1/portal/sessions

Start the end customer’s session on one request, from the link’s token, a handoff token from another device, or a client secret your server made for the widget. Every later call of the portal carries the session token it answers. A publishable key only starts a session; it reads nothing else.

Who may
Anyone, with no account yet
CLI
kontiga portal start-session [--token <token>] [--handoff-token <token>] [--client-secret <secret>] [--visitor-id <id>]
MCP tool
start_portal_session
Returns
The session token, its request, its language, and when it ends: after 2 hours without a step, or 24 hours in all.

Parameters

  • tokenstring

    The link’s token: the part of the link after /r/.

  • handoff_tokenstring

    The token of a QR code the person opened on another device: the part of its address after /h/, before any ?. Single use, 10 minutes. The address’s item names the item the computer was on, for the phone to open.

  • client_secretid (rqs_)

    A client secret your server made for this request, for the widget. One hour.

  • visitor_idid (vis_)

    The device’s visitor id, when the page has one.

curl -X POST https://api.kontiga.com/v1/portal/sessions \
  -H "Content-Type: application/json" \
  -d '{
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc"
  }'

POST /v1/portal/sessions

Response, 201 Created
{
  "object": "portal_session",
  "session_token": "kt_pst_Vx8Lm2Qd7Rk4Tn9Hb3Wc6Pz1Fy5Ns0Jg",
  "request_id": "rqs_4Mb9Kt2",
  "mode": "live",
  "locale": "en",
  "started_from": "link",
  "idle_expires_at": "2026-11-26T11:41:00Z",
  "expires_at": "2026-11-27T09:41:00Z"
}

Read the request in a session

Reads only

GET/v1/portal/request

The request as the person sees it inside their session: who is asking and why, the checklist with what each item asks and its state, what is missing, the conversation with the team, the due date and the gate.

Who may
Anyone, with no account yet
CLI
kontiga portal request <token>
MCP tool
get_portal_session_request
Returns
The request as the party sees it, the brand kit, the items, the conversation and the state of the link.

Parameters

  • tokenstringRequired

    The session’s request, by its link token.

curl -X GET "https://api.kontiga.com/v1/portal/request?token=mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc"

GET /v1/portal/request

Response, 200 OK
{
  "object": "portal_request",
  "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
  "request_id": "rqs_4Mb9Kt2",
  "state": "open",
  "brand": {
    "kit_id": "bk_4Hm7Rw2",
    "name": "Brightwater Lending",
    "monogram": "BL",
    "logo": null,
    "accent": "#1E4D6B",
    "highlight": "#14374F",
    "powered_by_kontiga": true,
    "reply_to": "applications@brightwater.example",
    "support": {
      "email": "help@brightwater.example",
      "phone": "+31 20 794 1180",
      "url": null,
      "address": null
    },
    "privacy_url": "https://brightwater.example/privacy",
    "terms_url": null,
    "what_next": "Brightwater Lending reads your documents within one working day and writes to you by email.",
    "texts": {
      "welcome": "Upload what Brightwater Lending asked for. It takes a few minutes, and you can stop and come back.",
      "done": "Thank you. Brightwater Lending has everything it asked for.",
      "expired": "This link has expired. Please ask Brightwater Lending for a new one."
    }
  },
  "purpose": "for your personal loan application",
  "collection_name": "Personal loan",
  "first_name": "Lotte",
  "expires_at": "2026-12-05T23:59:00Z",
  "completed_at": null,
  "gate": {
    "kind": "code",
    "passed": true,
    "contacts": [
      {
        "channel": "sms",
        "masked": "+31 6 •• •• •4 18"
      },
      {
        "channel": "email",
        "masked": "l•••@example.com"
      }
    ],
    "sent_to": null,
    "resend_in_seconds": 0,
    "tries_left": 5,
    "locked_until": null
  },
  "items": [
    {
      "id": "rqm_5Kw2Hd8",
      "kind": "document",
      "title": "Payslips, last two months",
      "instructions": "Your two most recent monthly payslips, as PDFs from your employer or clear photos of the paper copies.",
      "accepted": "A PDF or a photo (JPEG, PNG, HEIC, HEIF or WebP), up to 64 MB",
      "required": true,
      "strictness": "advise",
      "status": "to_do",
      "slots": [
        {
          "item_id": "itm_2Cw8Lr5",
          "state": "accepted",
          "label": "September 2026",
          "on_file": {
            "title": "Payslip, September 2026",
            "at": "2026-11-24T19:41:00Z",
            "reused": false
          },
          "redo": null
        },
        {
          "item_id": "itm_2Cw8Ls6",
          "state": "not_started",
          "label": "October 2026",
          "on_file": null,
          "redo": null
        }
      ],
      "have": 1,
      "needed": 2,
      "files": [],
      "redo": null,
      "question": null,
      "identity": null,
      "restrictions": {
        "pdf": true,
        "images": true,
        "camera_only": false,
        "words": "A PDF or a photo (JPEG, PNG, HEIC, HEIF or WebP), up to 64 MB",
        "max_files": 1
      },
      "asked": null
    },
    {
      "id": "rqm_9Tn4Bq2",
      "kind": "question",
      "title": "Monthly rent or mortgage payment",
      "instructions": "What you pay for your home each month.",
      "required": true,
      "status": "done",
      "slots": [
        {
          "item_id": "itm_6Lp1Vx3",
          "state": "accepted",
          "label": "Monthly rent or mortgage payment",
          "on_file": null,
          "redo": null
        }
      ],
      "have": 1,
      "needed": 1,
      "question": {
        "answer": "1450",
        "input": "amount",
        "currency": "EUR",
        "help": "In euros, before any housing benefit."
      }
    }
  ],
  "item_count": 5,
  "required": 5,
  "done": 4,
  "counts": {
    "required": 5,
    "required_in": 4,
    "optional": 0,
    "optional_in": 0,
    "to_come": 1,
    "needs_redo": 0,
    "reused": 1
  },
  "can_send": false,
  "missing": [
    "Payslip, October 2026"
  ],
  "locale": "en",
  "locale_chosen": false,
  "more_time_asked": false,
  "contacts": [
    {
      "channel": "sms",
      "masked": "+31 6 •• •• •4 18"
    },
    {
      "channel": "email",
      "masked": "l•••@example.com"
    }
  ],
  "run": null,
  "contact_needed": false,
  "follow_up": null,
  "conversation": []
}

Finalise an upload

Changes data

POST/v1/portal/items/{item_id}/uploads/{upload_id}/finalize

After the file’s bytes went straight to storage, tell Kontiga the upload is complete: its type is read from the bytes, and the instant check answers within seconds (got it, what to fix in plain words, or still checking). A file of the wrong type, too large, protected by a password or unreadable is refused and not kept. Safe to repeat: a second call for the same upload answers the same file (409 upload_in_progress while the first is still reading it, retry after Retry-After), and a file that could not be read just now is the 503 file_check_busy, never a refusal.

Who may
Anyone, with no account yet
CLI
kontiga portal finalize <token> <item_id> <upload_id> [--part <front|back|selfie>] [--document <passport|card|licence>] [--capture-method <upload|camera|autocapture|manual_camera>] [--visitor-id <id>]
MCP tool
finalize_portal_upload
Returns
The file with the instant check’s answer, and the request as it now stands.

Parameters

  • tokenstringRequired

    The link’s token.

  • item_idid (itm_)Required

    The slot the file is for. In the path.

  • upload_idid (upl_)Required

    The upload whose bytes the device put into storage. In the path.

  • partenum

    For an identity item: the front, the back, or the selfie. One of front, back, selfie.

  • documentenum

    For an identity item: the kind of document. One of passport, card, licence.

  • capture_methodenum

    How the file was taken. One of upload, camera, autocapture, manual_camera.

  • visitor_idid (vis_)

    The device’s visitor id, when the page has one.

curl -X POST https://api.kontiga.com/v1/portal/items/itm_2Cw8Ls6/uploads/upl_3c8e1f6a9b2d4e7c8a1b3d5f7e9c2a4b/finalize \
  -H "Content-Type: application/json" \
  -d '{
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
    "capture_method": "upload"
  }'

POST /v1/portal/items/{item_id}/uploads/{upload_id}/finalize

Response, 200 OK
{
  "object": "portal_upload",
  "file": {
    "id": "pfl_8Rd3Mw6",
    "file_name": "payslip-october-2026.pdf",
    "byte_size": 184320,
    "at": "2026-11-26T09:44:10Z",
    "label": "October 2026",
    "part": null,
    "answer": "problem",
    "reason": "wrong_period",
    "message": "This payslip is for August 2026. We need the one for October 2026.",
    "can_keep": true,
    "kept": false,
    "note": null,
    "item_id": null
  },
  "request": {
    "object": "portal_request",
    "token": "mQ7vR2kLp9Xw4Tn8Bd3Zs6Hc",
    "request_id": "rqs_4Mb9Kt2",
    "done": 4,
    "can_send": false,
    "missing": [
      "Payslip, October 2026"
    ]
  }
}

The portal in your page

The widget is the portal itself, in a frame on your page, so the person never leaves your site. The widget’s loader mounts it for you; a page may also frame it directly. The frame opens one of two ways, always with your publishable key: a request your server made, by the client secret it got for it, or a public link, where the person starts with their name.

  • A request your server made: https://collect.kontiga.com/r/embed?key={publishable key}#client_secret={client secret}. The client secret goes in the fragment, after #, never in the query: it never reaches a server’s log, and the frame takes it off the address as soon as it has read it.
  • A public link: https://collect.kontiga.com/r/embed?key={publishable key}&start={start token}, the start token being the part of the public link after /r/start/. The form, then the person’s own checklist, open in the frame. A start made with your publishable key answers the new request’s client_secret too, and the frame runs on it, as for a request your server made: the person’s files come in with the source widget.
  • Its look: add &theme=light (the default), dark, or auto for the visitor’s own setting, so the frame matches your page.
  • Only a page at an origin your publishable key lists may hold the frame. The frame is served with a frame-ancestors policy of those origins, so the browser refuses it inside any other page, and inside a listed page held in a frame of another site. The frame’s session is refused with origin_not_allowed from anywhere else before anything is shown, and the frame says only that it can’t be shown there. A key also opens only its own workspace’s public links, in its own mode. Give the frame allow="camera" so a photo can be taken in it.
  • Make a client secret for each time your page is shown, on your server (requests.client_secret, or client_secret: true when you make the request), and never keep it. Its answer names when it stops working as client_secret_expires_at, on every call that makes one.
  • A public start in the widget spends your publishable key’s starts of the day (200 by default) only when it makes a case: a refused or malformed call, and a retried submit sent with the same Idempotency-Key, spend nothing. One visitor’s starts are also held to a share of the day, so one address never uses up the day your other visitors share.
  • The frame’s session is held in the frame’s memory, never in a cookie, so it works where your page’s visitors block third-party cookies. The hosted portal, at its own address, keeps the session in a cookie no script on the page can read.
Frame the portal and listen to it
const PORTAL = "https://collect.kontiga.com";
const frame = document.querySelector("#kontiga-collect");
// the client secret goes in the fragment: it never reaches a server's log
frame.src = `${PORTAL}/r/embed?key=${publishableKey}#client_secret=${clientSecret}`;

let ready = false;
window.addEventListener("message", (event) => {
  if (event.origin !== PORTAL || event.data?.source !== "kontiga-collect") return;
  const { type, data } = event.data;
  if (type === "ready") ready = true;
  if (type === "resize") frame.style.height = `${data.height}px`;
  if (type === "completed") showThanks(data.request_id);
  if (type === "error") showFallback(data.code);
});
// a page the key does not list never gets the frame, so no event comes: no ready within 10 s is a refusal
setTimeout(() => ready || showFallback("origin_not_allowed"), 10_000);

Events

The frame posts its events with postMessage to the origin of the page that holds it, and to no other. Each is { source: "kontiga-collect", version: 1, type, data }. None carries what the checks found, a verdict or a value read from a document: they say what the person did, by id. Your server reads the request by the API or receives its webhooks before it decides anything.

  • ready, with request_id, stage and state: the frame is shown. On a public link it comes first with stage: "start" and request_id: null when the form shows, then again with stage: "request" once the request opens. state says where the request stands: open, completed, expired, cancelled or unavailable.
  • resize, with height, the page’s height in CSS px, once it has settled: size the frame to the page.
  • item_received, with request_id, item_id and requirement_key, the requirement’s key in its collection: a document or an answer came in.
  • item_needs_redo, the same and reasons, the reason codes: an item is asked for again.
  • saved, with request_id: the person chose to finish later.
  • Until the frame’s first call is answered, only an error is posted. A page at an origin your key does not list, or a listed page held in a frame of another site, never gets the frame at all: the browser refuses it before it runs, so no event comes. Treat no ready within 10 seconds as refused; the widget’s loader does, and raises error with origin_not_allowed itself.
  • completed, with request_id: the person sent everything.
  • closed, with request_id: the frame went away.
  • error, with code, posted once, each code with its own fix: invalid_key (no publishable key in the frame’s address, or a key of another kind: use the publishable key), missing_secret (neither #client_secret= nor start= in the address), invalid_secret (a client secret not of your key’s workspace), secret_expired (a client secret past its hour: make one for each time the page is shown), origin_not_allowed (the frame’s session refused for the page’s origin), expired or cancelled (the request is past its due date or withdrawn), rate_limited, or unavailable (no longer served).
The events, as your page receives them
[
  {
    "source": "kontiga-collect",
    "version": 1,
    "type": "ready",
    "data": {
      "request_id": "rqs_4Mb9Kt2",
      "stage": "request",
      "state": "open"
    }
  },
  {
    "source": "kontiga-collect",
    "version": 1,
    "type": "item_received",
    "data": {
      "request_id": "rqs_4Mb9Kt2",
      "item_id": "itm_2Cw8Ls6",
      "requirement_key": "proof_of_address"
    }
  },
  {
    "source": "kontiga-collect",
    "version": 1,
    "type": "item_needs_redo",
    "data": {
      "request_id": "rqs_4Mb9Kt2",
      "item_id": "itm_2Cw8Ls6",
      "requirement_key": "proof_of_address",
      "reasons": [
        "blurry"
      ]
    }
  },
  {
    "source": "kontiga-collect",
    "version": 1,
    "type": "completed",
    "data": {
      "request_id": "rqs_4Mb9Kt2"
    }
  },
  {
    "source": "kontiga-collect",
    "version": 1,
    "type": "error",
    "data": {
      "code": "secret_expired"
    }
  }
]