Verify Identity
API reference for verifying an identifier against national databases with name matching.
Verify an identity number against national databases and match the returned profile against the biographical data you expect.
Endpoint
POST /api/v1/identity/verify
Scope: identity:verify
Gates (2026-11-07): the Detection Pack addon and the current Fraud Detection Engine terms (402 DETECTION_PACK_REQUIRED / FRAUD_TERMS_REQUIRED).
Billing: you pay for the work, not the result. A check a provider answered is billed as one identity check: verified, not matching, or not on the register. Nothing is billed when no provider could answer (provider: "none"). The same rule applies to verify-nin, verify-bvn and a dead-letter replay (provider_down is not billed).
Request body
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Identifier type: BVN, NIN, TIN, VOTER_ID, PASSPORT, PHONE, DRIVERS_LICENSE |
value | string | Yes | The identity number to verify |
matchAgainst | object | Yes | Biographical data to match against the resolved profile |
matchAgainst.firstName | string | Yes | Expected first name |
matchAgainst.lastName | string | Yes | Expected last name |
matchAgainst.dateOfBirth | string | No | Expected date of birth, YYYY-MM-DD (e.g. 1990-05-15) |
supporting | object | No | Extra identifiers a provider needs beside value |
supporting.nin | string | No | The holder's NIN, exactly 11 digits. type: "PASSPORT" only |
Nigerian passport checks
A Nigerian international passport check needs the holder's NIN and date of birth beside the passport number. Send supporting.nin and matchAgainst.dateOfBirth with type: "PASSPORT". Without both, the check still runs against the other providers in the chain, which look up by number alone.
supporting.nin on any other type, a supporting that is not an object, or a NIN that is not 11 digits is refused with 400 BAD_REQUEST. Nothing is silently ignored.
Response
{
"success": true,
"data": {
"verified": true,
"matchScore": 1,
"profile": {
"firstName": "ADAEZE",
"lastName": "OKONKWO",
"middleName": null,
"dateOfBirth": "1990-05-15",
"gender": "F",
"photo": null,
"address": null
},
"provider": "primary"
}
}
| Field | Type | Description |
|---|---|---|
verified | boolean | true only when every field you sent matched: the first name, the last name and, when sent, the date of birth (2026-11-07; before, half the fields was enough) |
matchScore | number | Share of the matchAgainst fields that match, between 0 and 1. Display only: it decides nothing |
checks | object | null | { firstName, lastName, dateOfBirth }, each true / false; dateOfBirth is null when you sent none. null when no record was read |
reason | string | null | When not verified: mismatch (a record was read and a field differed), not_found (the identifier is not on the register) or provider_down (no provider could answer) |
profile | object | null | The registry profile, only when verified, never with a photo. null otherwise, so a failed check never returns the holder's data |
provider | string | Which provider in the fallback chain answered; none when every provider was tried without a match |
attemptedProviders | string[] | Present when provider is none: the providers tried |
Examples
curl
curl -X POST https://api.platformxe.com/api/v1/identity/verify \
-H "Content-Type: application/json" \
-H "Authorization: Bearer pxk_live_your_api_key_here" \
-d '{
"type": "PASSPORT",
"value": "A12345678",
"matchAgainst": {
"firstName": "Adaeze",
"lastName": "Okonkwo",
"dateOfBirth": "1990-05-15"
},
"supporting": { "nin": "12345678901" }
}'
SDK
import { PlatformXeClient } from '@caldera/platformxe-sdk';
const px = new PlatformXeClient({ apiKey: 'pxk_live_your_api_key_here' });
const result = await px.identity.verify({
type: 'BVN',
value: '22345678901',
matchAgainst: { firstName: 'Adaeze', lastName: 'Okonkwo', dateOfBirth: '1990-05-15' },
});
if (result.verified) {
console.log('Identity verified with score:', result.matchScore);
}
Error responses
| Code | Status | Description |
|---|---|---|
BAD_REQUEST | 400 | Invalid type, missing value or matchAgainst names, or an invalid supporting |
FORBIDDEN | 403 | The API key has no organization or lacks the identity:verify scope |
DETECTION_PACK_REQUIRED / FRAUD_TERMS_REQUIRED | 402 | The Detection Pack is off, or its current terms are not accepted |
INTERNAL_ERROR | 500 | Unexpected failure |