---
title: "Identity cross-check comparing account creation data with IDV data"
url: "https://developer.incode.com/api-reference/identity-crosscheck/"
section: "api-reference"
group: "Onboarding"
version: "v1.1"
status: "live"
endpoint: "POST /omni/identity-crosscheck"
---
# Identity cross-check comparing account creation data with IDV data

`POST /omni/identity-crosscheck`

Base URL: `https://demo-api.incodesmile.com` — Incode demo environment

Cross-checks name and date of birth from account creation against data extracted during IDV.
Compares the provided data with OCR-extracted data and returns validation score with risk assessment.

## Path & query parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `interviewId` | query | string |  |  |
| `api-version` | header | string | yes | Default: `1.0` |

## Request body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `name` | string | yes | Full name from account creation |
| `dateOfBirth` | string | yes | Date of birth in YYYY-MM-DD format |

## Responses

### 200

OK

Response body (`application/json`):

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `sessionId` | string |  | Session ID that was cross-checked |
| `score` | IdentityCrosscheck |  | Identity cross-check score results |
| `score.overall` | ResultBean |  | Overall validation result |
| `score.overall.value` | string |  |  |
| `score.overall.status` | string |  | Enum: `OK`, `WARN`, `FAIL`, `UNKNOWN`, `MANUAL`, `MANUAL_OK`, `MANUAL_FAIL`, `MANUAL_PENDING` |
| `score.checks` | object |  | Individual validation checks |
| `score.riskLevel` | string |  | Risk level assessment |
| `success` | boolean |  | Success indicator |
| `errorMessage` | string |  | Error message if cross-check failed |

### 400

Bad Request

Response body (`application/json`):

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `timestamp` | integer (int64) |  | UTC timestamp in milliseconds |
| `status` | integer (int32) |  | Custom error code or HTTP status code |
| `error` | string |  | HTTP status error |
| `message` | string |  | Custom error message |
| `path` | string |  | Endpoint path |
| `details` | object |  | Custom error details |

### 404

Session or IDV data not found

Response body (`application/json`):

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `timestamp` | integer (int64) |  | UTC timestamp in milliseconds |
| `status` | integer (int32) |  | Custom error code or HTTP status code |
| `error` | string |  | HTTP status error |
| `message` | string |  | Custom error message |
| `path` | string |  | Endpoint path |
| `details` | object |  | Custom error details |

## Code samples

Generated from this endpoint's method, path, and the conventional Incode headers. The base URL is the Incode demo environment; replace `<YOUR_API_KEY>` with a key for your region.

### cURL

```bash
curl -X POST https://demo-api.incodesmile.com/omni/identity-crosscheck?interviewId=%3CinterviewId%3E \
  -H "x-api-key: <YOUR_API_KEY>" \
  -H "X-Incode-Hardware-Id: <YOUR_INCODE_HARDWARE_ID>" \
  -H "api-version: 1.0" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "<name>",
    "dateOfBirth": "<dateOfBirth>"
  }'
```

### Node

```js
const res = await fetch("https://demo-api.incodesmile.com/omni/identity-crosscheck?interviewId=%3CinterviewId%3E", {
  method: "POST",
  headers: {
      "x-api-key": "<YOUR_API_KEY>",
      "X-Incode-Hardware-Id": "<YOUR_INCODE_HARDWARE_ID>",
      "api-version": "1.0",
      "Content-Type": "application/json",
  },
    body: JSON.stringify({
      "name": "<name>",
      "dateOfBirth": "<dateOfBirth>"
    }),
});
const data = await res.json();
```

### Python

```python
import requests

headers = {
    "x-api-key": "<YOUR_API_KEY>",
    "X-Incode-Hardware-Id": "<YOUR_INCODE_HARDWARE_ID>",
    "api-version": "1.0",
    "Content-Type": "application/json",
}
res = requests.post("https://demo-api.incodesmile.com/omni/identity-crosscheck?interviewId=%3CinterviewId%3E", headers=headers, json={
  "name": "<name>",
  "dateOfBirth": "<dateOfBirth>"
})
data = res.json()
```

### Java

```java
HttpRequest req = HttpRequest.newBuilder()
    .uri(URI.create("https://demo-api.incodesmile.com/omni/identity-crosscheck?interviewId=%3CinterviewId%3E"))
    .header("x-api-key", "<YOUR_API_KEY>")
    .header("X-Incode-Hardware-Id", "<YOUR_INCODE_HARDWARE_ID>")
    .header("api-version", "1.0")
    .header("Content-Type", "application/json")
    .method("POST", HttpRequest.BodyPublishers.ofString("{\n  \"name\": \"<name>\",\n  \"dateOfBirth\": \"<dateOfBirth>\"\n}"))
    .build();
HttpResponse<String> res = HttpClient.newHttpClient()
    .send(req, HttpResponse.BodyHandlers.ofString());
```

### Ruby

```
require "net/http"
require "json"

uri = URI("https://demo-api.incodesmile.com/omni/identity-crosscheck?interviewId=%3CinterviewId%3E")
req = Net::HTTP::Post.new(uri)
req["x-api-key"] = "<YOUR_API_KEY>"
req["X-Incode-Hardware-Id"] = "<YOUR_INCODE_HARDWARE_ID>"
req["api-version"] = "1.0"
req["Content-Type"] = "application/json"
req.body = '{
  "name": "<name>",
  "dateOfBirth": "<dateOfBirth>"
}'

res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: true) { |http| http.request(req) }
data = JSON.parse(res.body)
```

### PHP

```
$ch = curl_init("https://demo-api.incodesmile.com/omni/identity-crosscheck?interviewId=%3CinterviewId%3E");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "x-api-key: <YOUR_API_KEY>",
    "X-Incode-Hardware-Id: <YOUR_INCODE_HARDWARE_ID>",
    "api-version: 1.0",
    "Content-Type: application/json",
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{
  "name": "<name>",
  "dateOfBirth": "<dateOfBirth>"
}');

$data = json_decode(curl_exec($ch), true);
curl_close($ch);
```

### Example response

```json
{
  "sessionId": "64a7b8c9d1e2f3g4h5i6j7k8",
  "score": {
    "overall": {
      "value": "string",
      "status": "OK"
    },
    "checks": {},
    "riskLevel": "LOW"
  },
  "success": true,
  "errorMessage": "IDV data not found for session"
}
```
