---
title: "Compare To Identity Endpoint"
method: POST
path: "/api/v1/documents/{document_id}/compare-to-identity"
tags: ["Documents"]
---

# Compare To Identity Endpoint

`POST /api/v1/documents/{document_id}/compare-to-identity`

## Request

- Base URL: `https://api.withverifa.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.withverifa.com/api/v1/documents/{document_id}/compare-to-identity`
- Auth: none declared

Compare a document against a verified identity's stored PII.

Extracts fields from the document and compares name, address, DOB,
and document number against the identity record.

Request body:
    identity_id: ID of the identity to compare against.
    threshold: Minimum match score (default 0.70).

## Path parameters

- `document_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/withverifa/apis/verifa.md) · [All operations](https://skmtc.dev/withverifa/apis/verifa/llms.txt) · [OpenAPI document](https://skmtc.dev/withverifa/apis/verifa/revisions/7288c82c9e33?raw)
