API Reference

This reference is generated directly from the Xident API's OpenAPI specification, so it always matches the live API — it can't drift from the endpoints your requests actually hit. The raw spec is at /openapi.json (also served by the API at https://api.xident.io/docs/swagger.json).

All verify endpoints live under the /verify/v1 prefix and authenticate with the X-API-Key header. The core age/identity flow is POST /verify/v1/init → redirect to verify_url → GET /verify/v1/result/{token} (see the Quick Start).

Xident age and identity verification API. Server-side calls authenticate with an API key in the X-API-Key header.

Xident API, version 1.0: 74 endpoints. Base URL https://api.xident.io.

Authentication

X-Account-Token header
Xident ID account access token: the access_token that the account sign-in endpoints return, such as POST /verify/v1/accounts/login. Sent together with X-API-Key. Also accepted in the Authorization header with the AccountBearer scheme.
X-API-Key header
Your Xident API key: a secret key (sk_live_ or sk_test_) from your backend, an agent key (ak_live_ or ak_test_), or a public key (pk_live_ or pk_test_) where the endpoint allows one. It can also be sent as Authorization: Bearer <key>, except to GET /verify/v1/requirements/check and GET /verify/v1/events/{type}/{id}/stream, which read only the X-API-Key header.
Authorization header
A credential in the Authorization header, as Bearer <token>. On every endpoint in this reference that takes an API key, Authorization: Bearer <your API key> works the same as X-API-Key, except GET /verify/v1/requirements/check and GET /verify/v1/events/{type}/{id}/stream, which do not read the Authorization header.
Authorization header
OAuth 2.0 access token from POST /oauth/token, sent as Authorization: Bearer <access_token>.

Verification

Start a Verification

Create a verification and get the hosted verify_url to send the customer to. This is the entry point for every flow.

POST /verify/v1/init

Create init token

Exchange your server key and the verification settings for a short-lived init token and the verify_url to send the person to. Requires a server key (sk_live_, sk_test_, ak_live_, ak_test_ or an agent access token); a public key gets 403 SECRET_KEY_REQUIRED. user_id is required. min_age is optional for a website in Auto Mode (a content category), where Xident uses the minimum age of the local rule in the visitor's country and a min_age you send can only raise it; it is required otherwise for age_verification: 12 to 25. An ID document is checked at min_age exactly; the camera check starts from the next of 12, 15, 18, 21 or 25 at or above it, and the strictness setting and country rules can select an older model age. Xident recommends Auto Mode without min_age. A missing min_age on a website that is not in Auto Mode is refused with 400 INVALID_MIN_AGE. id_verification takes no min_age and cannot be combined with verification_mode facial. The token lives 10 minutes. Every setting of the session comes from this token; nothing the browser sends can change it.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
Idempotency-Key header string no makes a retry return the same token for 10 minutes; the same key with a different body gets 422 IDEMPOTENCY_KEY_MISMATCH
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): createInitRequest

FieldTypeRequiredDescription
callback_url string yes
expected Expected no the identity data you already hold about the user; Xident compares it with the document and reports match, mismatch or not_on_document per field, and the values never come back; needs a document (purpose id_verification or verification_mode document)
failed_url string no
liveness_difficulty string no "easy" (default), "medium" or "hard"; any other value is refused with 400 INVALID_LIVENESS_DIFFICULTY
locale string no
min_age integer no optional for a website in Auto Mode (a content category), where Xident uses the minimum age of the local rule in the visitor's country and a min_age you send can only raise it; required otherwise for age_verification, the default purpose: 12 to 25; an ID document is checked at it exactly; the camera check starts from the next of 12, 15, 18, 21 or 25 at or above it, and the strictness setting and country rules can select an older model age; id_verification takes none (omit it or send 0); Xident recommends Auto Mode without min_age
mismatch_policy string no "report" (default) records the outcome only; "review" sends the session to your review queue on any mismatch
purpose string, one of: "", age_verification, id_verification no "age_verification" (the default, also when omitted or empty) or "id_verification"
success_url string no
theme string no
user_id string yes required: your own identifier for the person being verified; it is echoed back in results
verification_mode string, one of: "", auto, document, facial no "auto" (the default, also when omitted or empty), "document" (an ID document and a face match are always required, no on-device age estimation) or "facial" (on-device only, never a document; refused with purpose id_verification); unlike purpose id_verification, it keeps min_age

Responses:

  • 201 Created: createInitResponse
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 403 Forbidden: Envelope
  • 409 Conflict: Envelope
  • 422 Unprocessable Entity: Envelope

GET /verify/v1/init/{token}

Redeem init token

Exchange an init token for the verification settings stored behind it (public, no auth). This call does not use the token up: it can be read again, for example after a page refresh, until it expires 10 minutes after POST /verify/v1/init created it.

Parameters
NameInTypeRequiredDescription
token path string yes Init token

Responses:

  • 200 OK: InitParams
  • 400 Bad Request: Envelope
  • 404 Not Found: Envelope

Verification

The core server-to-server surface: read a result, manage sessions, and poll status. Authenticate with X-API-Key.

GET /verify/v1/branding

Get branding for verify widget

Returns the tenant's branding customization for the verification widget. Authenticated via API key.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: Envelope
  • 401 Unauthorized: Envelope
  • 500 Internal Server Error: Envelope

GET /verify/v1/countries

List supported countries and doc-type availability for the verify widget

Parameters
NameInTypeRequiredDescription
scope query string no europe | templates | all (default: europe)

Responses:

  • 200 OK: Envelope

GET /verify/v1/countries/{code}/document-types

Enabled document types for a country

Parameters
NameInTypeRequiredDescription
code path string yes ISO 3166-1 alpha-2 code, e.g. DE

Responses:

  • 200 OK: countryDocumentTypesResponseDTO
  • 400 Bad Request: Envelope

POST /verify/v1/face/enroll

Enroll face for recognition (deprecated — use /2fa/register)

Queues a face enrollment job for a user. The face image is processed asynchronously.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): EnrollRequestDTO

FieldTypeRequiredDescription
image string yes Base64 encoded image
user_id string yes

Responses:

  • 201 Created: Envelope
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 500 Internal Server Error: Envelope

GET /verify/v1/handoff/{token}

Redeem a QR-handoff token

Needs no API key: the handoff token is the credential. Single use: the token is spent atomically on the first call, the session is marked as handed off to mobile, the waiting desktop is notified over SSE, and the phone receives the session's full verification context.

Parameters
NameInTypeRequiredDescription
token path string yes Handoff token

Responses:

  • 200 OK: HandoffClaimDTO
  • 400 Bad Request: Envelope
  • 404 Not Found: Envelope
  • 409 Conflict: Envelope
  • 500 Internal Server Error: Envelope

GET /verify/v1/liveness/challenge

Get liveness challenge

Creates a new liveness challenge with random actions the user must perform.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: Envelope
  • 401 Unauthorized: Envelope
  • 500 Internal Server Error: Envelope

POST /verify/v1/liveness/verify

Verify liveness challenge

Submits the movement evidence for a previously issued challenge: the head pose trajectory (numbers only, no images). The server checks that the head turned in the issued order and completes the challenge. The result counts for a session only after PATCH /verify/v1/sessions/{id}/liveness attaches the challenge to it. A challenge can be answered once: a 200 answer uses it up, and so does a 400 INVALID_TRAJECTORY or DURATION_TOO_SHORT, so get a new challenge from GET /verify/v1/liveness/challenge before trying again. The frames field is accepted and ignored; do not send images. A request is refused with 400 INVALID_TRAJECTORY unless pose_trajectory has 20 to 2000 samples, each with t, yaw and pitch; t (in milliseconds) is not negative (any start value) and never decreasing; the samples cover at least 20 distinct t values; the last t minus the first is 1500 to 300000; and two samples with the same t have the same yaw and pitch. A value of the wrong JSON type, such as a t that is not a whole number or a yaw given as a string, is refused before the challenge is read, with 400 INVALID_REQUEST, and does not use up the challenge. A null t, yaw or pitch is not a type error: it is a refused trajectory, 400 INVALID_TRAJECTORY, and uses the challenge up.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): VerifyRequest

FieldTypeRequiredDescription
action_results array of ActionResultRequest no Legacy; accepted but ignored since 2026-09-25 (not movement evidence)
challenge_id string yes
duration_ms integer no
frames array of string no accepted and ignored; do not send images
light_metrics LightMetricsRequest no Light check results reported by the widget.
pose_trajectory array of PoseSampleRequest yes required: 20 to 2000 head pose samples, the only movement evidence; the rules are in the description of POST /verify/v1/liveness/verify
token string yes

Responses:

  • 200 OK: Envelope
  • 400 Bad Request: Envelope
  • 410 Gone: Envelope
  • 500 Internal Server Error: Envelope

POST /verify/v1/ocr/presign

Get presigned upload URLs for typed files

Generates presigned S3 URLs for uploading document images and selfies for OCR processing.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): PresignRequestDTO

FieldTypeRequiredDescription
capture_proof_token string no send the proof token from the capture step (the Xident widget sets it)
document_type string yes
files array of PresignFileDTO yes
verification_session_id string yes required: the verification session the document belongs to; without it the answer is 400 MISSING_SESSION

Responses:

  • 200 OK: Envelope
  • 400 MISSING_SESSION (no verification_session_id), DOCUMENT_NOT_ACCEPTED (the session has no document step, or is a test session), SESSION_TERMINAL, MISSING_DOCUMENT_TYPE, MISSING_FILES, MISSING_DOCUMENT_FRONT, INVALID_FILE_TYPE or INVALID_PRESIGN_REQUEST: Envelope
  • 401 Unauthorized: Envelope
  • 402 Payment Required: Envelope
  • 500 Internal Server Error: Envelope

GET /verify/v1/ocr/status/{task_id}

Poll OCR task status

Returns the current status of an OCR processing task, including results when complete. A result is shown only once the task's verification session holds the document check's decision: while the session is still open the status stays processing, and when the session ended without that decision (canceled, expired, retaken) the status is failed with error session_closed and no result. A task whose job failed stays processing while the job will be tried again, and is failed only after its last attempt. The error of a failed task is one fixed code: missing_document, download_failed, ocr_unavailable, extraction_failed, evidence_copy_failed, evidence_copy_refused, session_closed, no_document_step, no_session, persist_failed, timed_out, abandoned or processing_failed. More codes may be added; read an unknown one as processing_failed.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
task_id path string yes OCR Task ID
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: Envelope
  • 400 Bad Request: Envelope
  • 404 Not Found: Envelope
  • 500 Internal Server Error: Envelope

POST /verify/v1/ocr/verify-urls

Verify uploaded document URLs and start OCR processing

Confirms that documents have been uploaded and queues the OCR processing job. File keys are read from the presign record.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): VerifyURLsRequestDTO

FieldTypeRequiredDescription
capture_proof_token string no send the proof token from the capture step (the Xident widget sets it)
document_type string no
document_video_guide VideoGuide no optional: where the document sat in the document video's frame, as fractions of the frame width and height (0 to 1)
token string no

Responses:

  • 200 OK: Envelope
  • 400 MISSING_SESSION (the task was presigned without a verification session), DOCUMENT_NOT_ACCEPTED (the session has no document step, or is a test session), DOCUMENT_ALREADY_SUBMITTED (the session already has a document; one session takes one), SESSION_TERMINAL (the session is closed or past its expiry), MISSING_TOKEN, INVALID_REQUEST or INVALID_VIDEO_GUIDE: Envelope
  • 401 Unauthorized: Envelope
  • 402 Payment Required: Envelope
  • 404 Not Found: Envelope
  • 500 Internal Server Error: Envelope

GET /verify/v1/requirements

Check verification requirements (authenticated)

Creates the verification session from an init token with your server key (sk_live_, sk_test_, ak_live_, ak_test_ or an agent access token) and returns the methods it requires; a public key gets 403 SECRET_KEY_REQUIRED. Send the init token in the X-Init-Token header; it must belong to the project of the key. Every setting of the session comes from that token; query parameters are not read. A test key makes a test session. Without the header: 400 MISSING_INIT_TOKEN. Unknown or expired token: 404. Token of another project: 400 INIT_TOKEN_KEY_MISMATCH. A credential whose mode differs from its project's: 403 KEY_MODE_MISMATCH.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-Init-Token header string yes the init token (xit_...) that POST /verify/v1/init returned; the session's settings come from it
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: requirementsResponseDTO
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 403 Forbidden: Envelope
  • 404 Not Found: Envelope
  • 409 Conflict: Envelope
  • 500 Internal Server Error: Envelope

GET /verify/v1/requirements/check

Check verification requirements (public)

Creates the verification session from an init token and returns the methods it requires. Send your public key (pk_live_ or pk_test_) in the X-API-Key header; a secret key is refused with 401. Send the init token from the verify_url (?t=xit_...) in the X-Init-Token header; it must belong to the same project. Every setting of the session (minimum age, purpose, verification mode, user id, liveness difficulty, locale, theme, data match) comes from that token; query parameters are not read. Without the header: 400 MISSING_INIT_TOKEN. Unknown or expired token: 404. Token of another project: 400 INIT_TOKEN_KEY_MISMATCH. When the account may not start a new session no session is created: 402 ALLOWANCE_EXHAUSTED (included Checks used up), 402 BUDGET_EXCEEDED (the monthly budget set as a hard stop is reached) or 402 PAYMENT_REQUIRED (account suspended); 503 when the account status cannot be read.

Parameters
NameInTypeRequiredDescription
X-API-Key header string yes your public key (pk_live_ or pk_test_); this endpoint reads only this header, not Authorization: Bearer
X-Init-Token header string yes the init token (xit_...) that POST /verify/v1/init returned with your server key; the session's settings come from it

Responses:

  • 200 OK: requirementsResponseDTO
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 402 Payment Required: Envelope
  • 404 Not Found: Envelope
  • 409 Conflict: Envelope
  • 500 Internal Server Error: Envelope
  • 503 Service Unavailable: Envelope

GET /verify/v1/result/{token}

Get verification session result (tenant)

Returns the verification verdict for a session, as the site owner's secret key sees it. status is a VERDICT, not a lifecycle marker: success means the user PASSED. A session that ran to the end of the flow but missed the age threshold is failed, with reason explaining why. Possible status values: pending, in_progress, success, failed, canceled (single L), expired, pending_tenant_review, awaiting_retake, retaken. Linking a portal account (Xident ID) to a passed verification does not change its status: it stays success. external_user_id echoes the user_id supplied at init so the session can be correlated to your own user server-side — do not correlate on the browser callback, which is unsigned. Requires a server-side credential: a secret key (sk_live_ or sk_test_), an agent key (ak_live_ or ak_test_), or an agent OAuth access token (xat_). An agent key or access token needs the verification:read scope. A public key gets 403 SECRET_KEY_REQUIRED. A key reads only sessions of its own mode: a test key (sk_test_, ak_test_) reads test sessions, a live credential reads live sessions, and a token of the other mode answers 404 NOT_FOUND with the same body as an unknown token. This is the ONE tenant-facing shape: identical regardless of caller, and mirrored verbatim into every webhook's data field.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
token path string yes Verification RESULT token (xtk_ prefixed) — NOT the xit_ init token
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: TenantResult
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 403 Forbidden: Envelope
  • 404 Not Found: Envelope
  • 500 Internal Server Error: Envelope

PATCH /verify/v1/sessions/{id}/age-estimation

Update session with age estimation result

Stores client-side age estimation result on the verification session. On an age verification, a result passes only with verified true, gate equal to the session's age_head, and a confidence at least the session's age_threshold; a result that fails this is refused with 400 AGE_BELOW_THRESHOLD and is not stored. When GET /verify/v1/requirements/check returned age_model for the session, a result passes only with that same age_model; otherwise an age_model that is sent must be the sha256 of the own model file of the head in gate, and a result without one is judged as before. A result whose age_model fails this is refused the same way. Before that check, an estimated_age outside 0 to 120 is refused with 400 INVALID_AGE and a confidence outside 0 to 1 with 400 INVALID_CONFIDENCE. A session with no stored age check strictness (one created while the setting was not in use) has no age_head and no age_threshold: there gate must be one of the five heads and at least min_age, and the confidence at least that head's floor. A session whose age check moved to the document, or whose stored age check strictness cannot be read, has neither value too, and no result passes for it. An ID verification has no age check: its result is stored without gate or verified being checked; the two range checks above still apply. The measurement fields (inference_run_id, model_sha, threshold_table_id, policy_version, align_id, widget_build, frames, threshold, outcome) are optional and never change the verdict. A measurement value of the wrong type or outside its documented limits is ignored: the request still succeeds and that value is not stored. A missing or ignored inference_run_id is replaced by an ID the server derives from the result, so a retransmission of the same result is stored once.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
id path string yes Session ID
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): AgeEstimationResultDTO

FieldTypeRequiredDescription
age_model string no sha256 (64 lowercase hex characters) of the age model file the widget loaded; when GET /verify/v1/requirements/check returned age_model for this session, required for a pass and equal to that age_model; otherwise optional, and when sent it must be the sha256 of the own model file of the head in gate
align_id string no face alignment version the frames went through
capture_luma CaptureLumaDTO no brightness (0 to 255) of the face crops the age model ran on; logged for diagnostics, never stored, no effect on the verdict
confidence number no the widget's confidence in its result, 0 to 1; required for a pass, and at least the age_threshold that GET /verify/v1/requirements/check returned for this session; for a session with no stored age check strictness, at least the confidence floor of the head in gate
estimated_age integer no
frames integer no frames the widget scored; confidence is the lowest frame score
gate integer no the age-model head (12, 15, 18, 21 or 25) the widget checked the face with; required for a pass, and equal to the age_head that GET /verify/v1/requirements/check returned for this session (it can be above the minimum age: an 18 site gets head 21 or 25, depending on the age model); for a session with no stored age check strictness, a head at or above the session's minimum age
inference_run_id string no one ID per inference run; a retransmission of the same run repeats it
model_sha string no sha256 of the ONNX bytes the widget loaded
outcome string, one of: scored, no_usable_frames, model_load_failed, inference_failed, model_not_ready no how the age model run ended
policy_version string no version of the widget's rule for which age threshold to check for the session's minimum age
threshold number no the effective threshold for gate
threshold_table_id string no which per-gate threshold table decided verified
verified boolean no the widget's own result for gate: true when it judged the person to be at least gate years old; required for a pass
widget_build string no build of the verification widget that sent this result

Responses:

  • 200 OK: Envelope
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 404 Not Found: Envelope
  • 500 Internal Server Error: Envelope

PATCH /verify/v1/sessions/{id}/complete

Complete a verification session

Marks a session as completed or failed. Records usage event and dispatches webhook. A key reaches only sessions of its own mode: a test key (pk_test_, sk_test_) a test session, a live key a live session. A session of the other mode answers 404 NOT_FOUND with the same body as an unknown token and is not changed, whether it is still open or already terminal.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
id path string yes Session ID
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): CompleteSessionDTO

FieldTypeRequiredDescription
reason string no
status string, one of: success, failed, canceled yes success, failed or canceled

Responses:

  • 200 OK: Envelope
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 404 Not Found: Envelope
  • 500 Internal Server Error: Envelope

DELETE /verify/v1/sessions/{id}/files

Delete session files

Erases every stored file of a verification session: the document photos, selfies and tilt video of every document attempt, every stored version. It also erases the files of every retake session created from this session that exists when the call runs (not the session it was retaken from); a retake created after the call keeps its own new uploads until a later call erases them. Answers deleted: true only when a listing of the storage finds nothing left, also when the session never stored a file. Requires a secret key (sk_live_ or sk_test_); a public key gets 403 SECRET_KEY_REQUIRED, an agent key or token 403 AGENT_KEY_FORBIDDEN, and a key reaches only sessions of its own mode (404 otherwise). 503: storage is not reachable, or files are still listed; retry. A file uploaded after this call with an upload link issued before it (links last 15 minutes) is deleted within 24 hours of the upload link's creation. This call does not end the session: if the person declined, end the session first (PATCH /verify/v1/sessions/{id}/complete with status canceled), because an open session can still receive uploads; those are also deleted within 24 hours of their upload link's creation. A session whose document is still being checked or waiting for a review when its files are deleted never passes: where it would have passed, it fails with reason files_erased and keeps no face template. The same holds for a document submitted to the session after this call. The verification result and the face template are not files and are not deleted here.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
id path string yes Session ID
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: Envelope
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 403 Forbidden: Envelope
  • 404 Not Found: Envelope
  • 500 Internal Server Error: Envelope
  • 503 Service Unavailable: Envelope

POST /verify/v1/sessions/{id}/handoff-token

Mint a QR-handoff token

Issues a short-lived, single-use token for the desktop's QR code. The QR carries this token and nothing else — no api_key, no callback_url, no user_id. Tenant-scoped: a tenant can only mint for its own sessions.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
id path string yes Session ID
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 201 Created: MintHandoffTokenDTO
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 404 Not Found: Envelope
  • 409 Conflict: Envelope
  • 500 Internal Server Error: Envelope

PATCH /verify/v1/sessions/{id}/liveness

Update session with liveness result

Stores liveness detection result on the verification session.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
id path string yes Session ID
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): LivenessResultDTO

FieldTypeRequiredDescription
actions map of boolean no optional map of action name to pass or fail, e.g. {"blink": true}; stored as sent, not checked
challenge_id string no
duration_ms integer no
passed boolean yes

Responses:

  • 200 OK: Envelope
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 404 Not Found: Envelope
  • 500 Internal Server Error: Envelope

PATCH /verify/v1/sessions/{id}/self-declaration

Store self-declaration on session

Stores the user's self-declared age on the verification session.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
id path string yes Session ID
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): SelfDeclarationDTO

FieldTypeRequiredDescription
accepted boolean no
declared_age integer no

Responses:

  • 200 OK: Envelope
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 404 Not Found: Envelope
  • 500 Internal Server Error: Envelope

GET /verify/v1/sessions/{token}/capture-key

Issue or fetch a per-session HMAC key for capture-proof signing

Widget calls this once per session to obtain the HMAC key used to sign capture-proof tokens at presign time.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
token path string yes Session token (xtk_...)
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: CaptureKeyResponseDTO
  • 401 Unauthorized: Envelope
  • 404 Not Found: Envelope

POST /verify/v1/sessions/{token}/retake

Create a retake session

Starts a new attempt linked to the given session: returns a new session token in the same retake chain, and the widget restarts capture against it. Refused with 409 RETAKE_NOT_ALLOWED when the session's status is success, canceled, retaken or expired; when it is a test session; when the tenant's current plan has no document path and the session has a document step, mandatory or optional (a retake runs exactly the checks of the session it retakes, never a shorter list); or, once the age check strictness is in use, when the session has no stored age check strictness (created before that setting, or its details deleted after 90 days) and can pass without a document, through a camera age check, the optional document fallback or a wallet; every other status can be retaken. A retake keeps the age check strictness and age-model head of the session it retakes, even if the tenant changed the setting since. Refused with 409 RETAKE_LIMIT_EXCEEDED after 3 retakes in one chain. Answers 500 when the server cannot read the tenant's plan; the retake can be tried again.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
token path string yes Original session token (xtk_...)
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: RetakeResponseDTO
  • 404 session not found / wrong tenant: Envelope
  • 409 RETAKE_NOT_ALLOWED or RETAKE_LIMIT_EXCEEDED: Envelope
  • 500 the tenant's plan could not be read; try again: Envelope

GET /verify/v1/status/{token}

Get verification session result (subject/widget)

Returns the widget-facing verdict for a session — no per-check detail, no age gate, no document/country data, and a masked failure reason. status uses the same public vocabulary as /verify/v1/result/{token}: pending, in_progress, success, failed, canceled (single L), expired, pending_tenant_review, awaiting_retake, retaken. Linking a portal account to a passed verification does not change its status: it stays success. This is the ONE subject-facing shape: it does not vary by which key type authenticated the request (public or secret both get it), because a credential-dependent response shape is exactly what this endpoint is designed NOT to have. A key reads only sessions of its own mode (pk_test_ and sk_test_ read test sessions, pk_live_ and sk_live_ live sessions); a token of the other mode answers 404 NOT_FOUND, the same body as an unknown token.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
token path string yes Verification RESULT token (xtk_ prefixed) — NOT the xit_ init token
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: SubjectResult
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 404 Not Found: Envelope
  • 500 Internal Server Error: Envelope

GET /verify/v1/tokens

List API keys

Returns all API keys for the authenticated tenant.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: Envelope
  • 401 Unauthorized: Envelope
  • 500 Internal Server Error: Envelope

POST /verify/v1/tokens

Create API key

Creates a new API key for the authenticated tenant.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): CreateAPIKeyRequestDTO

FieldTypeRequiredDescription
callback_url string no
expires_at string no
name string yes
rule_id integer no

Responses:

  • 201 Created: Envelope
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 500 Internal Server Error: Envelope

GET /verify/v1/tokens/{id}

Get API key by ID

Returns a single API key by its ID.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
id path integer yes API Key ID
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: Envelope
  • 400 Bad Request: Envelope
  • 404 Not Found: Envelope
  • 500 Internal Server Error: Envelope

DELETE /verify/v1/tokens/{id}

Delete (deactivate) API key

Deactivates an API key by its ID. The key is not physically deleted.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
id path integer yes API Key ID
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 204 No Content
  • 400 Bad Request: Envelope
  • 500 Internal Server Error: Envelope

Tokens

Issue, verify and revoke the tokens that carry a verification result between your backend and Xident.

POST /verify/v1/verification-tokens/issue

Issue a verification token

Issues a verification token for the authenticated account's verified age bracket. The embedding site can later use this token to check the user's age without re-verification. age_bracket is 12 to 25 and is rounded up to the next of 12, 15, 18, 21 or 25 (400 INVALID_MIN_AGE otherwise); the token holds that band, and is issued only when the account's age from its government-document date of birth reaches it (403 otherwise). Requires account JWT via X-Account-Token header and API key context.

Authentication: X-Account-Token header and X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): issueTokenRequest

FieldTypeRequiredDescription
age_bracket integer yes
method string no

Responses:

  • 201 Created: issueTokenResponse
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 500 Internal Server Error: Envelope

POST /verify/v1/verification-tokens/revoke

Revoke a verification token

Revokes an active verification token so it can no longer be used for age checks. The token must belong to the authenticated account. Requires account JWT via X-Account-Token header.

Authentication: X-Account-Token header and X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): revokeTokenRequest

FieldTypeRequiredDescription
token string yes

Responses:

  • 200 OK: Envelope
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 404 Not Found: Envelope
  • 500 Internal Server Error: Envelope

POST /verify/v1/verification-tokens/verify

Verify a verification token

Validates a verification token and returns whether it is valid, the age bracket, verification method, and expiration. Invalid, expired, or revoked tokens return valid=false without error, and so does a token whose band the account's age, from its government-document date of birth, no longer reaches. Requires API key auth.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): verifyTokenRequest

FieldTypeRequiredDescription
token string yes

Responses:

  • 200 OK: verifyTokenResponse
  • 400 Bad Request: Envelope
  • 500 Internal Server Error: Envelope

Optical Checks

Document authenticity signals produced during document verification.

POST /verify/v1/optical/upload

Upload an optical capture (flash-pair or tilt-sequence)

Submits a flash-pair or tilt-sequence capture of the document for the optical security feature (hologram) checks. The result is stored on the session and counts toward the document verification. A capture whose capture proof fails is refused.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): uploadRequest

FieldTypeRequiredDescription
doc_country string no
doc_type string no
flash_pair FlashPairCapture no
kind string no "flash" | "tilt"
session_token string no
tilt_sequence TiltSequenceCapture no

Responses:

  • 200 OK: uploadResponse
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 403 Forbidden: Envelope
  • 404 Not Found: Envelope
  • 412 Precondition Failed: Envelope
  • 500 Internal Server Error: Envelope

Wallet

Reusable verification credentials for returning customers.

POST /verify/v1/wallet/validate

Validate EU wallet credential

Receives an mso_mdoc age attestation from a user's EU Digital Identity Wallet, checks its cryptographic proof against the EU Trusted List, and stores the result on the verification session. No camera or biometric data is involved.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): WalletValidateRequest

FieldTypeRequiredDescription
credential_data string yes Base64url-encoded mso_mdoc
min_age integer no Requested age threshold (default 18)
nonce string yes
session_id string yes

Responses:

  • 200 OK: Envelope
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 500 Internal Server Error: Envelope

Fraud & Security

Blacklist

Block a known bad actor by face. Add from one of your completed document verifications (while your data retention setting keeps its face embedding, at most 12 months) or from an image you supply. Embeddings are derived server-side and never returned.

GET /verify/v1/blacklist

List your face blacklist entries

Paginated list of the tenant's active blacklist entries. Embeddings are never returned.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
page query integer no Page number
per_page query integer no Items per page
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: Envelope
  • 401 Unauthorized: Envelope
  • 500 Internal Server Error: Envelope

POST /verify/v1/blacklist/image

Blacklist the face in an image

Extracts the face embedding from the supplied image server-side and blacklists it. Async — the entry appears in the list once processed.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): blacklistAddImageRequest

FieldTypeRequiredDescription
image string yes base64
reason string yes

Responses:

  • 201 Created: Envelope
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 500 Internal Server Error: Envelope

POST /verify/v1/blacklist/session

Blacklist the person from a verification session

Blacklists the face of the person who completed one of YOUR terminal DOCUMENT verification sessions. Works for as long as your data retention setting keeps the session's face embedding (at most 12 months, chosen in the dashboard under Settings > Data retention); after that the embedding is permanently deleted. Browser-only sessions never capture a face and are rejected with SESSION_HAS_NO_FACE_DATA; sessions past retention are rejected with SESSION_FACE_DATA_EXPIRED. When no face embedding is kept (for example with a retention of 0 days), the face is read from the selfie that was checked with the session's document, and that selfie is deleted within 24 hours of upload; a document session with no such selfie still stored is rejected with SESSION_HAS_NO_JUDGED_SELFIE. Async — the entry appears in the list once processed. A request answered 201 can still end without an entry, for example when the face embedding and the selfie are both gone by the time the request is processed, when the stored selfie no longer matches the one that was checked, or when no face is found in it.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): blacklistAddSessionRequest

FieldTypeRequiredDescription
reason string yes
session_token string yes

Responses:

  • 201 Created: Envelope
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 404 Not Found: Envelope
  • 409 Conflict: Envelope
  • 422 SESSION_HAS_NO_FACE_DATA, SESSION_FACE_DATA_EXPIRED or SESSION_HAS_NO_JUDGED_SELFIE: Envelope
  • 500 Internal Server Error: Envelope

DELETE /verify/v1/blacklist/{id}

Remove a blacklist entry

Deactivates one of the tenant's blacklist entries (un-ban). The audit row survives; retention hard-deletes deactivated biometric data later.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
id path integer yes Blacklist entry ID
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: Envelope
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 404 Not Found: Envelope
  • 500 Internal Server Error: Envelope

Face 2FA

Server-side biometric second factor: enrol a user's face, verify against it, and hard-delete the enrolment on request. Each decided verify bills as one Check.

POST /verify/v1/2fa/register

Register a face for 2FA

Stores (or replaces) the face embedding for one of your users. Async: poll GET /2fa/status/{challenge_id}. Registration is free of charge.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): face2FASubmitRequest

FieldTypeRequiredDescription
image string yes base64
user_id string yes

Responses:

  • 201 Created: Envelope
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 500 Internal Server Error: Envelope

GET /verify/v1/2fa/status/{id}

Get face 2FA challenge status

Poll the result of a register or verify call. Returns pass/fail plus a failure reason taxonomy — never confidence scores or biometric data.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
id path string yes Challenge ID
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: Envelope
  • 401 Unauthorized: Envelope
  • 404 Not Found: Envelope
  • 500 Internal Server Error: Envelope

GET /verify/v1/2fa/users/{user_id}

Check whether a user has a 2FA face enrolled

Returns whether one of your users has a face enrolled for 2FA. Only your own users are visible.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
user_id path string yes Your user identifier
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: Envelope
  • 401 Unauthorized: Envelope
  • 500 Internal Server Error: Envelope

DELETE /verify/v1/2fa/users/{user_id}

Delete a user's 2FA face enrollment (GDPR)

Hard-deletes the stored embedding. Idempotent — returns 200 whether or not an enrollment existed.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
user_id path string yes Your user identifier
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: Envelope
  • 401 Unauthorized: Envelope
  • 500 Internal Server Error: Envelope

POST /verify/v1/2fa/verify

Verify a face against the enrolled 2FA embedding

1:1 comparison of the submitted face against the user's enrolled embedding, server-side. Async: poll GET /2fa/status/{challenge_id} for pass/fail.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): face2FASubmitRequest

FieldTypeRequiredDescription
image string yes base64
user_id string yes

Responses:

  • 201 Created: Envelope
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 500 Internal Server Error: Envelope

Identity Network

Xident ID Accounts

End-user account lifecycle for the Xident identity network — the returning-user path that bills at the Check rate.

GET /verify/v1/accounts/connections

List connected sites

Always returns an empty list: connected sites are no longer recorded.

Authentication: X-Account-Token header and X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: connectionDTO
  • 401 Unauthorized: Envelope

POST /verify/v1/accounts/login

Login to Xident account

Authenticate an end user with email and password. Returns JWT access/refresh tokens and account info. Optionally checks whether the user has a verified age bracket of at least min_age.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): accountLoginRequest

FieldTypeRequiredDescription
email string yes the address the account was registered with
min_age integer no
password string yes

Responses:

  • 200 OK: accountLoginResponse
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 403 Forbidden: Envelope
  • 500 Internal Server Error: Envelope

GET /verify/v1/accounts/me

Get current account profile

Returns the authenticated account's profile information and verified age brackets. Requires account JWT via X-Account-Token header.

Authentication: X-Account-Token header and X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: Envelope
  • 401 Unauthorized: Envelope
  • 500 Internal Server Error: Envelope

DELETE /verify/v1/accounts/me

Delete Xident account

Permanently deletes the authenticated account and all associated data including passkeys, verified ages, and site connections. This action cannot be undone. Implements GDPR Art. 17 right to erasure.

Authentication: X-Account-Token header and X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: Envelope
  • 401 Unauthorized: Envelope
  • 404 Not Found: Envelope
  • 500 Internal Server Error: Envelope

POST /verify/v1/accounts/quick-register

Quick register (email only)

Creates an inactive account with an email only and sends an activation link. No verification session is linked: a session_id in the body is accepted and ignored.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): quickRegisterRequest

FieldTypeRequiredDescription
email string no
session_id string no Accepted for older clients and ignored. Registration links no verification session.

Responses:

  • 200 OK: Envelope

POST /verify/v1/accounts/register

Register a new Xident account

Create a new Xident account with email and optional password. The account starts inactive until the email is confirmed. No verification session is linked: a token in the body is accepted and ignored. An account's age comes only from its own ID verification in the portal.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): accountRegisterRequest

FieldTypeRequiredDescription
email string yes
password string no
token string no Accepted for older clients and ignored. Registration links no verification session.

Responses:

  • 201 Created: accountLoginResponse
  • 400 Bad Request: Envelope
  • 409 Conflict: Envelope
  • 500 Internal Server Error: Envelope

POST /verify/v1/accounts/reuse

Reuse a verified Xident ID for a session

Completes the session when the signed-in account's age, computed now from the date of birth on its verified government document, reaches the session's minimum age. Returns 409 account_bracket_insufficient when it does not, and 409 account_reuse_not_applicable for an ID verification, a session that asked for a data match, a session created before init tokens carried its settings, or a session for which a document was already submitted; the caller then runs a normal verification. A key reaches only sessions of its own mode: a session of the other mode answers 404 NOT_FOUND with the same body as an unknown token and is not changed, whether it is still open or already terminal.

Authentication: X-Account-Token header and X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): accountReuseRequest

FieldTypeRequiredDescription
session_id string yes the session's xtk_ token

Responses:

  • 200 OK: accountReuseResponse
  • 401 Unauthorized: Envelope
  • 404 Not Found: Envelope
  • 409 Conflict: Envelope
  • 500 Internal Server Error: Envelope

Passkeys

WebAuthn credential registration and authentication for Xident ID accounts.

POST /verify/v1/accounts/passkey/authenticate/begin

Begin passkey authentication

Starts a discoverable credential (WebAuthn) ceremony for conditional UI or hybrid passkey login. Returns assertion options and a session ID for the finish step.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: Envelope
  • 500 Internal Server Error: Envelope

POST /verify/v1/accounts/passkey/authenticate/finish

Finish passkey authentication

Completes the discoverable credential ceremony by validating the authenticator response. Returns JWT access/refresh tokens on success. The request body is the raw WebAuthn assertion and carries nothing else, so the session ID from authenticate/begin travels in the X-Session-ID header.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-Session-ID header string yes Session ID from authenticate/begin
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: accountLoginResponse
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 403 Forbidden: Envelope
  • 500 Internal Server Error: Envelope

POST /verify/v1/accounts/passkey/register/begin

Begin passkey registration

Starts a WebAuthn credential creation ceremony for the authenticated account. Returns creation options and a session ID for the finish step. Requires account JWT via X-Account-Token header.

Authentication: X-Account-Token header and X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: Envelope
  • 401 Unauthorized: Envelope
  • 500 Internal Server Error: Envelope

POST /verify/v1/accounts/passkey/register/finish

Finish passkey registration

Completes the WebAuthn credential creation ceremony by validating the authenticator response and storing the new passkey. The request body is the raw WebAuthn attestation and carries nothing else, so the session ID from register/begin travels in the X-Session-ID header. Optional X-Passkey-Name header to name the passkey. Requires account JWT via X-Account-Token header.

Authentication: X-Account-Token header and X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-Session-ID header string yes Session ID from register/begin
X-Passkey-Name header string no Friendly name for the passkey (default: My Passkey)
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: accountPasskeyDTO
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 500 Internal Server Error: Envelope

GET /verify/v1/accounts/passkeys

List account passkeys

Returns all registered passkeys for the authenticated account, including platform, browser, sign count, and last-used timestamps. Requires account JWT via X-Account-Token header.

Authentication: X-Account-Token header and X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: accountPasskeyDTO
  • 401 Unauthorized: Envelope
  • 500 Internal Server Error: Envelope

DELETE /verify/v1/accounts/passkeys/{id}

Delete a passkey

Removes a registered passkey from the authenticated account. The passkey must belong to the account. Requires account JWT via X-Account-Token header.

Authentication: X-Account-Token header and X-API-Key header.

Parameters
NameInTypeRequiredDescription
id path integer yes Passkey ID
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Responses:

  • 200 OK: Envelope
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 404 Not Found: Envelope
  • 500 Internal Server Error: Envelope

OAuth & OIDC

OAuth 2.0

Xident as an OAuth 2.0 authorization server: authorize, token exchange, refresh, revocation and introspection. PKCE (S256) is mandatory.

GET /oauth/authorize

Start OAuth authorization flow

Validates the request and redirects the user to the Xident consent screen; every authorization code follows a consent screen. With the age_verification scope the client must have an age band (min_age), set in the dashboard: a client without one is refused with 400. The request carries no band, and a min_age query parameter is ignored.

Parameters
NameInTypeRequiredDescription
response_type query string yes OAuth response type (code)
client_id query string yes OAuth client ID
redirect_uri query string yes Redirect URI after authorization
scope query string no Requested scopes (space-separated)
state query string no Opaque state value for CSRF protection
nonce query string no Nonce, returned in the ID token so the client can match it to this request
code_challenge query string no PKCE code challenge
code_challenge_method query string no PKCE method (S256)

Responses:

  • 302 Redirect to consent screen
  • 400 Bad Request: Envelope

POST /oauth/introspect

Introspect an OAuth token

Returns token metadata per RFC 7662. Requires client authentication. Returns active/inactive status. Errors from this endpoint use the OAuth 2.0 error body (RFC 6749 section 5.2); a rate limit refusal (429) and a body whose declared Content-Length is over 10 MB (413) use the standard error envelope.

Parameters
NameInTypeRequiredDescription
token form string yes Token to introspect
client_id form string no Client ID (for client_secret_post auth)
client_secret form string no Client secret (for client_secret_post auth)

Responses:

  • 200 OK: IntrospectionResponse
  • 400 Bad Request: ErrorResponse
  • 401 Unauthorized: ErrorResponse
  • 413 a body whose declared Content-Length is over 10 MB: the standard error envelope (code PAYLOAD_TOO_LARGE), not the RFC 6749 body: Envelope
  • 429 too many requests: the rate limit answers with the standard error envelope (code TOO_MANY_REQUESTS), not the RFC 6749 body; Retry-After gives the seconds to wait: Envelope

POST /oauth/revoke

Revoke an OAuth token

Revokes an access or refresh token per RFC 7009. Requires client authentication. Always returns 200 for valid clients regardless of token validity. Errors from this endpoint use the OAuth 2.0 error body (RFC 6749 section 5.2); a rate limit refusal (429) and a body whose declared Content-Length is over 10 MB (413) use the standard error envelope.

Parameters
NameInTypeRequiredDescription
token form string yes Token to revoke
token_type_hint form string no Token type hint (access_token or refresh_token)
client_id form string no Client ID (for client_secret_post auth)
client_secret form string no Client secret (for client_secret_post auth)

Responses:

  • 200 OK: Envelope
  • 400 Bad Request: ErrorResponse
  • 401 Unauthorized: ErrorResponse
  • 413 a body whose declared Content-Length is over 10 MB: the standard error envelope (code PAYLOAD_TOO_LARGE), not the RFC 6749 body: Envelope
  • 429 too many requests: the rate limit answers with the standard error envelope (code TOO_MANY_REQUESTS), not the RFC 6749 body; Retry-After gives the seconds to wait: Envelope

POST /oauth/token

Exchange authorization code or refresh token

Supports grant_type=authorization_code and grant_type=refresh_token. Authenticates client via client_secret_post or client_secret_basic. Errors from this endpoint use the OAuth 2.0 error body (RFC 6749 section 5.2); a rate limit refusal (429) and a body whose declared Content-Length is over 10 MB (413) use the standard error envelope.

Parameters
NameInTypeRequiredDescription
grant_type form string yes Grant type (authorization_code or refresh_token)
code form string no Authorization code (required for authorization_code grant)
redirect_uri form string no Redirect URI (must match original request)
client_id form string no Client ID (for client_secret_post auth)
client_secret form string no Client secret (for client_secret_post auth)
code_verifier form string no PKCE code verifier
refresh_token form string no Refresh token (required for refresh_token grant)

Responses:

  • 200 OK: TokenResponse
  • 400 Bad Request: ErrorResponse
  • 401 Unauthorized: ErrorResponse
  • 402 Payment Required: ErrorResponse
  • 413 a body whose declared Content-Length is over 10 MB: the standard error envelope (code PAYLOAD_TOO_LARGE), not the RFC 6749 body: Envelope
  • 429 too many requests: the rate limit answers with the standard error envelope (code TOO_MANY_REQUESTS), not the RFC 6749 body; Retry-After gives the seconds to wait: Envelope

GET /oauth/userinfo

Get OIDC user info

Returns user claims based on the scopes granted to the access token. Requires a valid OAuth access token. With the age_verification scope the answer is about the client's age band only, the band the person consented to: age_verified (always present; false means Xident does not currently prove that band, not that the person is under age), verified_brackets (["+<band>"], only when age_verified is true) and meets_threshold (one key, the band). A missing, invalid or expired token is refused with 401 and the standard error envelope (code UNAUTHORIZED), not the RFC 6749 error body; a valid token whose subject is not an account, or a token with age_verification and no age band, is refused with 401 and the RFC 6749 body (error invalid_token). A rate limit refusal (429) uses the envelope.

Authentication: Authorization header.

Responses:

  • 200 OK: UserInfoResponse
  • 401 missing, invalid or expired access token: the standard error envelope (code UNAUTHORIZED); a valid token whose subject is not an account, or with age_verification and no age band: the RFC 6749 body (error invalid_token): Envelope
  • 429 too many requests: the rate limit answers with the standard error envelope (code TOO_MANY_REQUESTS), not the RFC 6749 body; Retry-After gives the seconds to wait: Envelope
  • 500 Internal Server Error: Envelope

OpenID Connect

Discovery document, JWKS and UserInfo for OIDC relying parties.

GET /.well-known/jwks.json

Get JSON Web Key Set

Returns the public keys used to verify OAuth token signatures. Cached for 1 hour.

Responses:

  • 200 OK: JWKS
  • 500 Internal Server Error: Envelope

GET /.well-known/openid-configuration

Get OpenID Connect discovery document

Returns the OIDC discovery document with issuer, endpoints, supported scopes, and signing algorithms.

Responses:

  • 200 OK: map of any

Widget

Widget Feedback

End-user feedback submitted from the verification widget.

POST /verify/v1/feedback

Submit widget feedback

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): widgetFeedbackRequest

FieldTypeRequiredDescription
comment string no
outcome string no what the widget showed at the end: success or failed
rating integer no
session_id string no

Responses:

  • 201 Created: Envelope
  • 400 Bad Request: Envelope

Widget Review

Tenant review queue interactions surfaced through the widget.

POST /verify/v1/review-request

Request human review

Submit a failed verification for human review. Requires document uploads.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): reviewRequest

FieldTypeRequiredDescription
document_back_key string no
document_front_key string no
selfie_key string no
session_id integer no

Responses:

  • 201 Created: Envelope
  • 400 Bad Request: Envelope

Telemetry

Client-side diagnostics from the verification widget.

POST /verify/v1/telemetry/capture

Submit capture-time telemetry batch

Stores gyroscope, ambient light, capture-latency and page-visibility samples collected by the verification widget during capture.

Authentication: X-API-Key header.

Parameters
NameInTypeRequiredDescription
X-API-Version header string no Dated API version, e.g. 2026-08-13. Overrides the version pinned to the API key for this request only; omit it to use the pin. The response echoes the version it was served under in this same header and in meta.api_version, except when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION). See https://docs.xident.io/api-versioning/

Request body (application/json): Payload

FieldTypeRequiredDescription
events array of Event no
session_token string no
summary Summary no

Responses:

  • 200 OK: captureResponse
  • 400 Bad Request: Envelope
  • 401 Unauthorized: Envelope
  • 500 Internal Server Error: Envelope

Platform

Public

Unauthenticated endpoints — health, discovery and other open reads.

POST /public/v1/careers/apply

Submit a career application

Parameters
NameInTypeRequiredDescription
firstName form string yes First name
lastName form string yes Last name
email form string yes Email address
phone form string no Phone number
location form string yes Current location
position form string yes Position of interest
experience form string yes Years of experience
linkedin form string no LinkedIn profile URL
portfolio form string no Portfolio or GitHub URL
message form string no Cover message
cv form file yes Resume/CV file (PDF, DOC, DOCX — max 10MB)
coverLetter form file no Cover letter file (PDF, DOC, DOCX — max 10MB)

Responses:

  • 200 OK: Envelope
  • 400 Bad Request: Envelope
  • 500 Internal Server Error: Envelope

POST /public/v1/contact

Submit a contact form

Parameters
NameInTypeRequiredDescription
firstName form string yes First name
lastName form string yes Last name
email form string yes Email address
company form string no Company name
reason form string no Contact reason
message form string yes Message
cf-turnstile-response form string no Turnstile verification token

Responses:

  • 200 OK: Envelope
  • 400 Bad Request: Envelope
  • 500 Internal Server Error: Envelope

GET /public/v1/status

Get system status

Returns the operational status of all backend services.

Responses:

  • 200 OK: PublicStatusResponse

GET /public/v1/surveys/{slug}

Get survey schema

Returns the survey schema for rendering. Only active surveys are returned.

Parameters
NameInTypeRequiredDescription
slug path string yes Survey slug

Responses:

  • 200 OK: Envelope
  • 404 Not Found: Envelope

POST /public/v1/surveys/{slug}/responses

Submit survey response

Submit answers for a survey. Requires Turnstile verification.

Parameters
NameInTypeRequiredDescription
slug path string yes Survey slug

Request body (application/json): surveySubmitRequest

FieldTypeRequiredDescription
answers array of integer no
turnstile_token string no

Responses:

  • 200 OK: Envelope
  • 400 Bad Request: Envelope
  • 404 Not Found: Envelope
  • 429 Too Many Requests: Envelope

GET /public/v1/versions

Get application versions

Returns the version strings for all Xident applications.

Responses:

  • 200 OK: VersionsResponse

POST /public/v1/waitlist

Subscribe to waitlist

Request body (application/json): waitlistSubscribeRequest

FieldTypeRequiredDescription
email string no
turnstile_token string no

Responses:

  • 200 OK: Envelope
  • 400 Bad Request: Envelope
  • 500 Internal Server Error: Envelope

Events

Event stream endpoints.

GET /verify/v1/events/{type}/{id}/stream

Subscribe to real-time events

Opens an SSE connection for session or OCR status events. Send your public key (pk_live_ or pk_test_) in the X-API-Key header; a secret key is refused with 401. This endpoint does not read Authorization: Bearer, and never put a key in the URL.

Parameters
NameInTypeRequiredDescription
type path string yes Event type (session or ocr)
id path string yes Resource ID (session_id or task_id)
X-API-Key header string yes your public key (pk_live_ or pk_test_); this endpoint reads only this header, not Authorization: Bearer

Responses:

  • 200 SSE event stream: string
  • 400 INVALID_STREAM_TYPE or MISSING_ID: Envelope
  • 401 missing, invalid or expired public key, or a secret key: Envelope
  • 404 no such session or OCR task for this API key's tenant, or a session of the other mode (a test key streams test sessions only; the OCR stream refuses test keys): Envelope
  • 503 the server is at capacity; retry later: Envelope

Schemas

accountDTO

FieldTypeRequiredDescription
created_at string no
display_name string no
email string no
email_verified boolean no
has_password boolean no
id integer no

accountLoginRequest

FieldTypeRequiredDescription
email string yes the address the account was registered with
min_age integer no
password string yes

accountLoginResponse

FieldTypeRequiredDescription
access_token string no
account accountDTO no
age_check ageCheckDTO no
expires_in integer no
refresh_token string no

accountPasskeyDTO

FieldTypeRequiredDescription
backup_eligible boolean no
backup_state boolean no
browser string no
created_at string no
device_info string no
id integer no
last_used_at string no
name string no
platform string no
sign_count integer no

accountRegisterRequest

FieldTypeRequiredDescription
email string yes
password string no
token string no Accepted for older clients and ignored. Registration links no verification session.

accountReuseRequest

FieldTypeRequiredDescription
session_id string yes the session's xtk_ token

accountReuseResponse

FieldTypeRequiredDescription
bracket integer no the minimum age this account proved for this session
status string no
token string no
verified boolean no

ActionResultRequest

FieldTypeRequiredDescription
action_name string no
detected_at_ms integer no
score number no

ageCheckDTO

FieldTypeRequiredDescription
bracket integer no
method string no
verified boolean no
verified_at string no

AgeEstimationResultDTO

FieldTypeRequiredDescription
age_model string no sha256 (64 lowercase hex characters) of the age model file the widget loaded; when GET /verify/v1/requirements/check returned age_model for this session, required for a pass and equal to that age_model; otherwise optional, and when sent it must be the sha256 of the own model file of the head in gate
align_id string no face alignment version the frames went through
capture_luma CaptureLumaDTO no brightness (0 to 255) of the face crops the age model ran on; logged for diagnostics, never stored, no effect on the verdict
confidence number no the widget's confidence in its result, 0 to 1; required for a pass, and at least the age_threshold that GET /verify/v1/requirements/check returned for this session; for a session with no stored age check strictness, at least the confidence floor of the head in gate
estimated_age integer no
frames integer no frames the widget scored; confidence is the lowest frame score
gate integer no the age-model head (12, 15, 18, 21 or 25) the widget checked the face with; required for a pass, and equal to the age_head that GET /verify/v1/requirements/check returned for this session (it can be above the minimum age: an 18 site gets head 21 or 25, depending on the age model); for a session with no stored age check strictness, a head at or above the session's minimum age
inference_run_id string no one ID per inference run; a retransmission of the same run repeats it
model_sha string no sha256 of the ONNX bytes the widget loaded
outcome string, one of: scored, no_usable_frames, model_load_failed, inference_failed, model_not_ready no how the age model run ended
policy_version string no version of the widget's rule for which age threshold to check for the session's minimum age
threshold number no the effective threshold for gate
threshold_table_id string no which per-gate threshold table decided verified
verified boolean no the widget's own result for gate: true when it judged the person to be at least gate years old; required for a pass
widget_build string no build of the verification widget that sent this result

AgeGateCheckResult

FieldTypeRequiredDescription
gate integer no the minimum age of this session, as stored (12 to 25), whatever completed it. An ID document or a Xident account's document date of birth is checked at it exactly; the camera check starts from the next of 12, 15, 18, 21 or 25 at or above it, and the strictness setting and country rules can select an older model age
passed boolean no
performed boolean no

blacklistAddImageRequest

FieldTypeRequiredDescription
image string yes base64
reason string yes

blacklistAddSessionRequest

FieldTypeRequiredDescription
reason string yes
session_token string yes

CaptureKeyResponseDTO

FieldTypeRequiredDescription
expires_in integer no seconds until the key expires; request a new one after that
key string no the HMAC key, base64url without padding; decode it to raw bytes before importing it (for example with WebCrypto importKey)
torch_schedule TorchSchedule no the torch on/off pattern to follow while recording the optical capture

CaptureLumaDTO

FieldTypeRequiredDescription
max integer no
median integer no
min integer no
samples integer no

captureResponse

FieldTypeRequiredDescription
events_accepted integer no
stream_entry_id string no

CheckResult

FieldTypeRequiredDescription
passed boolean no
performed boolean no

CompleteSessionDTO

FieldTypeRequiredDescription
reason string no
status string, one of: success, failed, canceled yes success, failed or canceled

connectionDTO

FieldTypeRequiredDescription
first_connected_at string no
last_used_at string no
tenant_id integer no
use_count integer no

countryDocumentTypesResponseDTO

FieldTypeRequiredDescription
country string no
types array of string no

CreateAPIKeyRequestDTO

FieldTypeRequiredDescription
callback_url string no
expires_at string no
name string yes
rule_id integer no

createInitRequest

FieldTypeRequiredDescription
callback_url string yes
expected Expected no the identity data you already hold about the user; Xident compares it with the document and reports match, mismatch or not_on_document per field, and the values never come back; needs a document (purpose id_verification or verification_mode document)
failed_url string no
liveness_difficulty string no "easy" (default), "medium" or "hard"; any other value is refused with 400 INVALID_LIVENESS_DIFFICULTY
locale string no
min_age integer no optional for a website in Auto Mode (a content category), where Xident uses the minimum age of the local rule in the visitor's country and a min_age you send can only raise it; required otherwise for age_verification, the default purpose: 12 to 25; an ID document is checked at it exactly; the camera check starts from the next of 12, 15, 18, 21 or 25 at or above it, and the strictness setting and country rules can select an older model age; id_verification takes none (omit it or send 0); Xident recommends Auto Mode without min_age
mismatch_policy string no "report" (default) records the outcome only; "review" sends the session to your review queue on any mismatch
purpose string, one of: "", age_verification, id_verification no "age_verification" (the default, also when omitted or empty) or "id_verification"
success_url string no
theme string no
user_id string yes required: your own identifier for the person being verified; it is echoed back in results
verification_mode string, one of: "", auto, document, facial no "auto" (the default, also when omitted or empty), "document" (an ID document and a face match are always required, no on-device age estimation) or "facial" (on-device only, never a document; refused with purpose id_verification); unlike purpose id_verification, it keeps min_age

createInitResponse

FieldTypeRequiredDescription
token string no
verify_url string no

DataMatchCheckResult

FieldTypeRequiredDescription
fields DataMatchFields no
passed boolean no
performed boolean no

DataMatchFields

FieldTypeRequiredDescription
date_of_birth string no
document_number string no
first_name string no
last_name string no
nationality string no

DocumentCheckResult

FieldTypeRequiredDescription
country string no
document_type string no
passed boolean no
performed boolean no

EnrollRequestDTO

FieldTypeRequiredDescription
image string yes Base64 encoded image
user_id string yes

Envelope

FieldTypeRequiredDescription
data any no
error Error no
meta Meta no
success boolean no

Error

FieldTypeRequiredDescription
code string no
details any no
message string no

ErrorResponse

FieldTypeRequiredDescription
error string no OAuth error code, such as invalid_request, invalid_client or invalid_grant
error_description string no a readable explanation

Event

FieldTypeRequiredDescription
hidden boolean no visibility events: whether the page was hidden
hidden_ms integer no visibility events: how long it was hidden, in milliseconds
kind EventKind no
mean number no light events: mean pixel brightness of the camera frame
ms integer no latency events: how long it took, in milliseconds
reason string no gyro_unavailable events: why the gyroscope could not be read
stage LatencyStage no latency events: which step was timed
ts_ms integer no gyro, light and visibility events: milliseconds since the session started
x number no gyro events: device acceleration along x, in g, gravity included
y number no gyro events: device acceleration along y, in g, gravity included
z number no gyro events: device acceleration along z, in g, gravity included

EventKind

Type: string, one of: gyro, light, latency, visibility, gyro_unavailable.

Expected

FieldTypeRequiredDescription
date_of_birth string no YYYY-MM-DD
document_number string no
first_name string no
last_name string no
nationality string no ISO 3166-1 alpha-2

face2FASubmitRequest

FieldTypeRequiredDescription
image string yes base64
user_id string yes

FlashPairCapture

FieldTypeRequiredDescription
frame_off string no base64 data URL, JPEG
frame_on string no base64 data URL, JPEG
height integer no
schedule_frames array of TiltFrame no optional: frames recorded while following that schedule
schedule_id string no optional: ID of the torch on/off schedule the widget followed (issued with the capture key)
timestamp_off_ms integer no wall-clock ms since epoch
timestamp_on_ms integer no
width integer no

HandoffClaimDTO

FieldTypeRequiredDescription
age_head integer no the age-model head (12, 15, 18, 21 or 25) the browser age check must use, as GET /verify/v1/requirements/check returns it; absent when the server stored no head for the session (for example an ID verification, or a session whose age check moved to the document)
age_model string no the sha256 (64 lowercase hex characters) of the age model file the browser age check must load, as GET /verify/v1/requirements/check returns it; present only with age_head, and only when the session names a model file; absent means the head's own file
age_threshold number no the lowest confidence that passes the browser age check of this session, above 0 and at most 1, as GET /verify/v1/requirements/check returns it; present exactly when age_head is present
api_key string no the publishable key the phone uses for the rest of its calls
country_code string no
handoff_device string no
liveness_difficulty string no
locale string no
methods any no the session's verification context, as GET /verify/v1/requirements/check returns it
min_age integer no
purpose string no
regime string no
status string no
theme string no
token string no

InitParams

FieldTypeRequiredDescription
api_key string no
callback_url string no
expected_ref string no opaque reference to the identity data the site owner sent as expected; the server links it to the session it creates from this token, so it needs no handling
failed_url string no
liveness_difficulty string no
locale string no
min_age integer no
purpose string no "age_verification" (default) or "id_verification"
success_url string no
theme string no
user_id string no
verification_mode string no "auto" (default), "document" (an ID document is always required) or "facial" (on-device checks only, never a document)

IntrospectionResponse

FieldTypeRequiredDescription
active boolean no
client_id string no
exp integer no
iat integer no
iss string no
scope string no
sub string no
token_type string no

issueTokenRequest

FieldTypeRequiredDescription
age_bracket integer yes
method string no

issueTokenResponse

FieldTypeRequiredDescription
age_bracket integer no
expires_at string no
token string no

JWK

FieldTypeRequiredDescription
alg string no
e string no
kid string no
kty string no
n string no
use string no

JWKS

FieldTypeRequiredDescription
keys array of JWK no

LatencyStage

Type: string, one of: camera_ready, first_frame, capture_pressed.

LightMetricsRequest

FieldTypeRequiredDescription
chromatic_response_score number no
confidence number no
skip_reason string no
skipped boolean no
spatial_variance_score number no
temporal_coherence_score number no

LivenessResultDTO

FieldTypeRequiredDescription
actions map of boolean no optional map of action name to pass or fail, e.g. {"blink": true}; stored as sent, not checked
challenge_id string no
duration_ms integer no
passed boolean yes

Meta

FieldTypeRequiredDescription
api_version string no the dated API version this response was served under, on responses from operations that take X-API-Version, errors included; absent when the request is refused before its version is resolved: a missing or invalid API key (401), a failed API key lookup (500), a rate limit (429), a body whose declared Content-Length is over 10 MB (413 PAYLOAD_TOO_LARGE) or an invalid X-API-Version (400 INVALID_API_VERSION)
pagination Pagination no
request_id string no
timestamp string no

MintHandoffTokenDTO

FieldTypeRequiredDescription
expires_at string no
token string no

Pagination

FieldTypeRequiredDescription
page integer no
per_page integer no
total integer no
total_pages integer no

Payload

FieldTypeRequiredDescription
events array of Event no
session_token string no
summary Summary no

PoseSampleRequest

FieldTypeRequiredDescription
pitch number yes required on every sample: head pitch as the Xident widget measures it; positive = looking up
t integer yes required on every sample: milliseconds, a non-negative integer that never decreases; any start value is accepted
yaw number yes required on every sample: head yaw as the Xident widget measures it; positive = the person's own right

PresignFileDTO

FieldTypeRequiredDescription
content_type string no required for document_video (video/webm or video/mp4); ignored for photos
type string yes

PresignRequestDTO

FieldTypeRequiredDescription
capture_proof_token string no send the proof token from the capture step (the Xident widget sets it)
document_type string yes
files array of PresignFileDTO yes
verification_session_id string yes required: the verification session the document belongs to; without it the answer is 400 MISSING_SESSION

PublicStatusResponse

FieldTypeRequiredDescription
services map of ServiceStatus no
status string no
timestamp string no
uptime string no
version string no

quickRegisterRequest

FieldTypeRequiredDescription
email string no
session_id string no Accepted for older clients and ignored. Registration links no verification session.

requirementsResponseDTO

FieldTypeRequiredDescription
age_head integer no the age-model head (12, 15, 18, 21 or 25) the browser age check of this session must use; it can be above min_age (an 18 site gets head 21 or 25, depending on the age model); a result sent to PATCH /verify/v1/sessions/{id}/age-estimation passes only with gate equal to it; absent when the session has no stored age check strictness (for example an ID verification, or a session whose age check moved to the document)
age_model string no the sha256 (64 lowercase hex characters) of the age model file the browser age check must load; a result sent to PATCH /verify/v1/sessions/{id}/age-estimation passes only with age_model equal to it; present only with age_head, and only when the session names a model file; absent means the head's own file
age_threshold number no the lowest confidence that passes the browser age check of this session, above 0 and at most 1; a result sent to PATCH /verify/v1/sessions/{id}/age-estimation passes only with a confidence at least this value; present exactly when age_head is present
already_verified boolean no not in use: always false, so it is never sent
auto_mode boolean no true when the website is in Auto Mode (it has a content category), where the rules of the visitor's country apply; absent otherwise
challenge_age integer no Auto Mode only: the challenge age of the rule that matched the visitor's country; with verification_mode auto it can raise the age-model head of the camera age check, and age_head already includes it; absent when the rule sets none
content_category string no Auto Mode only: the website's content category, for example adult, gambling or social_media
country string no the country Xident resolved for this request, as an ISO 3166-1 alpha-2 code: the country of the request's IP address or, when the IP address gives none, Xident's default country if one is configured; empty when neither exists
country_name string no the name of that country in Xident's country list; absent when country is empty or not in that list
document_types array of string no the document types the country of the request accepts, among passport, id_card and drivers_license; [] when it accepts none; absent when the list is not available, and the widget then offers all three
is_override boolean no true when a rule for this country replaced the website's own regime (in Auto Mode: when a rule for the country, or for the US state, matched)
is_portal boolean no true when the session belongs to Xident's own user portal; absent otherwise
locale string no the widget's default language for this session: the init token's locale reduced to a language the widget supports (de-AT becomes de; pt-BR is kept), or en when the locale is empty or not supported; always present
logo_url string no the URL of the website's logo, shown on the widget's welcome screen; absent when none is set
max_attempts integer no the maximum number of verification attempts set for the website
methods array of string no the verification steps this session requires, by name, for example liveness, age (the camera age check), ocr_fallback (a document check offered when the camera age check does not pass), ocr (a document check that is always required) and face (the document photo is compared with the person's face)
min_age integer no the session's minimum age, rounded up to the next age band (12, 15, 18, 21 or 25); a document is checked at the exact minimum age; 0 for an ID verification
mode string no test for a session created with a test key (the widget then shows its test screen, with no camera); absent for a live session
ocr_mandatory boolean no Auto Mode only: true when the rule that matched the visitor's country, or else the content category, marks a document as mandatory, or when the website's age check setting could not be applied and a document check replaced this session's camera age check; methods lists the steps the session runs, and a country rule with its own list of steps keeps that list even when this is true; absent otherwise
optical_video_seconds integer no how many seconds the widget records the document video for; absent when the server has no value to send, and the widget then uses its own default
purpose string no id_verification for an identity verification; absent for an age verification, the default
regime string no the verification regime that applies to this request: none, very_low, low, medium, high or very_high
remaining_attempts integer no max_attempts minus the retakes before this session in its retake chain, at least 0; informational, the server allows at most 3 retakes per chain and a new session starts a new chain
rule_name string no the name of the website's verification rule; in Auto Mode, the website's content category
session_id string no the token of the session this call created (xtk_ followed by 32 hex characters)
theme string no the widget's default theme for this session: light, dark or system, from the init token's theme, or system when it is empty or not one of these; always present

ResultChecks

FieldTypeRequiredDescription
age AgeGateCheckResult no
aml CheckResult no sanctions and PEP (politically exposed person) screening of the identity read from the document; document path only; performed is false until screening is enabled
data_match DataMatchCheckResult no the identity data the site owner sent as expected at init, compared with the document; present only when expected was sent and a document was read
document DocumentCheckResult no
eu_wallet CheckResult no EU Digital Identity Wallet presentation
face_match CheckResult no
liveness CheckResult no

ResultRisk

FieldTypeRequiredDescription
band string no

RetakeResponseDTO

FieldTypeRequiredDescription
previous string no original session's xtk_ token (for UI "retrying from..." display)
token string no new session's xtk_ token

reviewRequest

FieldTypeRequiredDescription
document_back_key string no
document_front_key string no
selfie_key string no
session_id integer no

revokeTokenRequest

FieldTypeRequiredDescription
token string yes

SelfDeclarationDTO

FieldTypeRequiredDescription
accepted boolean no
declared_age integer no

ServiceStatus

FieldTypeRequiredDescription
latency_ms integer no
status string no

SubjectResult

FieldTypeRequiredDescription
created_at string no
expires_at string no
handoff_device string no
reason string no a short failure reason for display, less detailed than the one the site owner sees
remaining_attempts integer no failed sessions started with a user_id only: the project's max_verification_attempts minus the retakes before this session in its retake chain, at least 0; informational, the server allows at most 3 retakes per chain and a new session starts a new chain
status string no the same verdict values as the status of GET /verify/v1/result/{token}
test boolean no true when the verdict came from a test-mode session; absent on live sessions
token string no
verified boolean no

Summary

FieldTypeRequiredDescription
gyro_sample_count integer no
gyro_variance_x number no
gyro_variance_y number no
gyro_variance_z number no
hidden_total_ms integer no
light_mean number no
light_sample_count integer no
light_variance number no
ms_to_camera_ready integer no
ms_to_capture integer no
ms_to_first_frame integer no
tab_switch_count integer no

surveySubmitRequest

FieldTypeRequiredDescription
answers array of integer no
turnstile_token string no

TenantResult

FieldTypeRequiredDescription
checks ResultChecks no
completed_at string no
created_at string no
expires_at string no
external_user_id string no
ip_country string no country the end user connected from, from their IP address when the session started; not the document's issuing country (checks.document.country)
reason string no
risk ResultRisk no coarse fraud risk band: low, elevated or high; omitted when no document checks ran, which is not the same as low
status string no the verdict, the same for every verification path: pending, in_progress, success, failed, canceled (one L), expired, pending_tenant_review, awaiting_retake or retaken; linking a Xident ID account never changes it, and a passed verification stays success
test boolean no true when the verdict came from a test-mode session (a test API key), never a real verification; treat it as granting nothing; absent on live sessions
token string no
verification_type string no which path produced the verdict: full (document and face match), age_check (in the browser: liveness and/or age, no document), xident_id (a returning user reused an age already proven on their Xident ID) or eu_wallet (EU Digital Identity Wallet); named verification_mode before 2026-08-13; checks says exactly which checks ran
verified boolean no the one value to base access control on; set by the server from status, never taken from a client

TiltFrame

FieldTypeRequiredDescription
data_url string no base64 JPEG
offset_ms integer no ms since sequence start

TiltSequenceCapture

FieldTypeRequiredDescription
duration_ms integer no
frames array of TiltFrame no
height integer no
keyframe_height integer no
keyframe_width integer no
keyframes array of TiltFrame no optional: a few frames of the same sequence at the camera's full resolution
width integer no

TokenResponse

FieldTypeRequiredDescription
access_token string no
expires_in integer no
id_token string no
refresh_token string no
scope string no
token_type string no

TorchSchedule

FieldTypeRequiredDescription
flips_ms array of integer no when to switch the torch, in milliseconds from the start of the capture, ascending
id string no send it back as schedule_id with the capture
window_ms integer no how long to keep recording, in milliseconds

uploadRequest

FieldTypeRequiredDescription
doc_country string no
doc_type string no
flash_pair FlashPairCapture no
kind string no "flash" | "tilt"
session_token string no
tilt_sequence TiltSequenceCapture no

uploadResponse

FieldTypeRequiredDescription
confidence number no
ovd_detected boolean no
reasons array of string no
status string no

UserInfoResponse

FieldTypeRequiredDescription
age_verified boolean no with age_verification: always present, about the access token's band only
display_name string no
email string no
email_verified boolean no
meets_threshold map of boolean no
sub string no
verified_brackets array of string no

VerifyRequest

FieldTypeRequiredDescription
action_results array of ActionResultRequest no Legacy; accepted but ignored since 2026-09-25 (not movement evidence)
challenge_id string yes
duration_ms integer no
frames array of string no accepted and ignored; do not send images
light_metrics LightMetricsRequest no Light check results reported by the widget.
pose_trajectory array of PoseSampleRequest yes required: 20 to 2000 head pose samples, the only movement evidence; the rules are in the description of POST /verify/v1/liveness/verify
token string yes

verifyTokenRequest

FieldTypeRequiredDescription
token string yes

verifyTokenResponse

FieldTypeRequiredDescription
age_bracket integer no
expires_at string no
method string no
valid boolean no

VerifyURLsRequestDTO

FieldTypeRequiredDescription
capture_proof_token string no send the proof token from the capture step (the Xident widget sets it)
document_type string no
document_video_guide VideoGuide no optional: where the document sat in the document video's frame, as fractions of the frame width and height (0 to 1)
token string no

VersionsResponse

FieldTypeRequiredDescription
admin string no
api string no
dashboard string no
docs string no
sdk string no

VideoGuide

FieldTypeRequiredDescription
h number no
w number no
x number no
y number no

waitlistSubscribeRequest

FieldTypeRequiredDescription
email string no
turnstile_token string no

WalletValidateRequest

FieldTypeRequiredDescription
credential_data string yes Base64url-encoded mso_mdoc
min_age integer no Requested age threshold (default 18)
nonce string yes
session_id string yes

widgetFeedbackRequest

FieldTypeRequiredDescription
comment string no
outcome string no what the widget showed at the end: success or failed
rating integer no
session_id string no