PlatformXeDocs
Get API Key

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

FieldTypeRequiredDescription
typestringYesIdentifier type: BVN, NIN, TIN, VOTER_ID, PASSPORT, PHONE, DRIVERS_LICENSE
valuestringYesThe identity number to verify
matchAgainstobjectYesBiographical data to match against the resolved profile
matchAgainst.firstNamestringYesExpected first name
matchAgainst.lastNamestringYesExpected last name
matchAgainst.dateOfBirthstringNoExpected date of birth, YYYY-MM-DD (e.g. 1990-05-15)
supportingobjectNoExtra identifiers a provider needs beside value
supporting.ninstringNoThe 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"
  }
}
FieldTypeDescription
verifiedbooleantrue 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)
matchScorenumberShare of the matchAgainst fields that match, between 0 and 1. Display only: it decides nothing
checksobject | null{ firstName, lastName, dateOfBirth }, each true / false; dateOfBirth is null when you sent none. null when no record was read
reasonstring | nullWhen 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)
profileobject | nullThe registry profile, only when verified, never with a photo. null otherwise, so a failed check never returns the holder's data
providerstringWhich provider in the fallback chain answered; none when every provider was tried without a match
attemptedProvidersstring[]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

CodeStatusDescription
BAD_REQUEST400Invalid type, missing value or matchAgainst names, or an invalid supporting
FORBIDDEN403The API key has no organization or lacks the identity:verify scope
DETECTION_PACK_REQUIRED / FRAUD_TERMS_REQUIRED402The Detection Pack is off, or its current terms are not accepted
INTERNAL_ERROR500Unexpected failure