Compare a document to a verified identity
Extracts fields from the document and compares name, address, DOB, and document number against a stored identity record.
Required scope: documents:write
Authentication
X-API-Keystring
Organization API key. Keys are prefixed with vk_live_ (production) or
vk_sandbox_ (sandbox).
Path parameters
document_id
Document ID (doc_*).
Headers
Verifa-Version
API version date string (e.g. 2026-02-01). If omitted, the version
pinned to your API key is used.
Key-Inflection
Response key casing. Defaults to snake.
Allowed values:
Idempotency-Key
Unique key for idempotent requests. Cached for 24 hours. Sending the
same key with different parameters returns 422.
Request
This endpoint expects an object.
identity_id
ID of the identity to compare against.
threshold
Response
Identity comparison result.
id
Extraction record ID.
document_id
Parent document ID.
extraction_type
Type of extraction performed (e.g. ocr, barcode, mrz).
status
created_at
extracted_fields
Key-value map of extracted data fields.
confidence_scores
Per-field confidence scores (0-1).
reference_document_id
Reference document used for comparison, if any.
comparison_results
Field-by-field comparison results when comparing two documents.
Errors
401
Unauthorized Error
404
Not Found Error
422
Unprocessable Entity Error