Menu

API integration

Overview

Everything your servers and apps call, in one place. Two callers, two credentials: your backend uses X-Api-Key (create sessions, read decisions, receive webhooks, data requests); the user's device uses the session's Bearer token for the capture steps. With our WebSDK or mobile SDKs the device side is done for you.

INTEGRATIONYOUR BACKEND CALLSTHE DEVICE SIDE
Hosted link (simplest)POST /v1/sessions → send sdk_url → webhook → GET /v1/sessions/{id}Our WebSDK page (redirect or new tab)
EmbeddedSameOur WebSDK in your iframe (WebSDK)
Mobile appSame; pass session_id + access_token to the appOur Flutter / React Native SDK
HeadlessSameYour own UI calls the SDK endpoints (Scenario: headless)

Session lifecycle

  1. 1not_startedCreated, link not opened
  2. 2in_progressSteps running; a rejected step can be retried
  3. 3in_reviewWaiting for an analyst
  4. 4approved / declinedDecision (an analyst can still reverse it)

Also: resubmitted (an analyst asked for steps again), expired / abandoned (time ran out), kyc_expired (approval older than 365 days). Full list: Verification statuses.

Rules that keep an integration correct

  • Decide only on your backend, from the webhook confirmed with GET /v1/sessions/{id}. SDK events and SDK results are for the screen.
  • Send applicant_external_id (your user id) on every session: reuse, the applicant endpoints and erasure work on it.
  • Send an Idempotency-Key on POST /v1/sessions and reuse it when you retry that call: a timed-out create does not open a second session.
  • Treat webhooks as at-least-once and unordered: deduplicate on event_id, then read the current status from the API.
  • Never put the API key in a browser or app. The device only ever gets the session's 15-minute token.
  • A decision is not frozen: an analyst can reverse an approval or a decline, with a recorded reason. You then get session.rejected after session.approved (or the other way round). Always apply the latest status.