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.
| INTEGRATION | YOUR BACKEND CALLS | THE DEVICE SIDE |
|---|---|---|
| Hosted link (simplest) | POST /v1/sessions → send sdk_url → webhook → GET /v1/sessions/{id} | Our WebSDK page (redirect or new tab) |
| Embedded | Same | Our WebSDK in your iframe (WebSDK) |
| Mobile app | Same; pass session_id + access_token to the app | Our Flutter / React Native SDK |
| Headless | Same | Your own UI calls the SDK endpoints (Scenario: headless) |
Session lifecycle
Status (what your backend reads)
- 1not_startedCreated, link not opened
- 2in_progressSteps running; a rejected step can be retried
- 3in_reviewWaiting for an analyst
- 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-KeyonPOST /v1/sessionsand 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.rejectedaftersession.approved(or the other way round). Always apply the latest status.