PlatformXeDocs
Get API Key

Identity

SDK methods for identity resolution, verification, and processor configuration.

The client.identity namespace provides identity resolution and verification across Nigeria, Kenya, Ghana, and South Africa — verifying and looking up identity information through a single API. Available in TypeScript, Python, and Go SDKs.

SDKInstallNamespace
TypeScriptnpm install @caldera/platformxe-sdkclient.identity
Pythonpip install platformxeclient.identity
Gogo get github.com/calderaxe/platformxe-goclient.Identity

resolve

Resolve an identity using one or more identity numbers. Returns matched data across available sources.

POST /api/v1/identity/resolve needs the Detection Pack addon and the current Fraud Detection terms (402 otherwise), a purpose (1 to 200 characters; required since 2026-11-18), consent.granted: true and a consent reference (1 to 200 characters), and a key that names identity:resolve (no scopes or * do not grant it). You pay for the work, not the result: one identity check when a provider answered, found or not, and with resolveLinked each follow-on lookup a provider answered; nothing when no provider could answer or for a 24-hour cache hit. profile.photo is always null, and no raw provider payload is returned. See Resolve Identity.

const result = await client.identity.resolve({
  type: 'BVN',
  value: '12345678901',
  purpose: 'tenant onboarding',
  consent: { granted: true, reference: 'consent_abc123' },
  resolveLinked: true,
});

console.log(result.outcome);            // "found" | "not_found" | "provider_down"
console.log(result.profile?.firstName); // "ADA"
console.log(result.identifiers.nin);    // "12345678901"
# Python 1.12.0: purpose is a required keyword argument.
result = client.identity.resolve(
    "BVN",
    "12345678901",
    purpose="tenant onboarding",
    resolve_linked=True,
    consent_reference="consent_abc123",
)
// Go v1.12.0: ResolveRequest. Identity.Resolve is Deprecated (it has no purpose, so the API answers it 400).
result, err := client.Identity.ResolveRequest(platformxe.IdentityResolveRequest{
	Type:          "BVN",
	Value:         "12345678901",
	Purpose:       "tenant onboarding",
	ResolveLinked: true,
	Consent:       platformxe.IdentityResolveConsent{Granted: true, Reference: "consent_abc123"},
})

Parameters

FieldTypeRequiredDescription
typestringYesBVN, NIN, TIN, VOTER_ID, PASSPORT, PHONE, DRIVERS_LICENSE
valuestringYesThe identity number
purposestringYesWhy you resolve it, 1 to 200 characters; recorded in the consent log on every call
consent.grantedbooleanYesMust be true
consent.referencestringYesYour record of the holder's consent, 1 to 200 characters
resolveLinkedbooleanNoAlso look up every linked identifier (each follow-on lookup a provider answers is billed). Default false

Returns { resolved, identifiers, profile, confidence, provider, resolvedAt, outcome }. outcome is found, not_found (a provider answered that the identifier is not on the register: billed) or provider_down (no provider could answer: not billed). A key without a named identity:resolve is answered 403; a missing purpose is 400.

verify

Verify an identifier and match the returned profile against expected names (and, optionally, date of birth). For a Nigerian passport, pass the holder's NIN as supporting.nin with the date of birth (types 3.9.0, TypeScript SDK 1.11.0, Python 1.8.0, Go v1.8.0).

const result = await client.identity.verify({
  type: 'PASSPORT',
  value: 'A12345678',
  matchAgainst: { firstName: 'Ada', lastName: 'Okafor', dateOfBirth: '1990-03-15' },
  supporting: { nin: '12345678901' },
});

console.log(result.verified, result.matchScore, result.provider);
result = client.identity.verify(
    "PASSPORT", "A12345678", "Ada", "Okafor",
    date_of_birth="1990-03-15",
    supporting_nin="12345678901",
)
result, err := client.Identity.VerifyRequest(platformxe.IdentityVerifyRequest{
	Type:  "PASSPORT",
	Value: "A12345678",
	MatchAgainst: platformxe.IdentityMatchAgainst{
		FirstName: "Ada", LastName: "Okafor", DateOfBirth: "1990-03-15",
	},
	Supporting: &platformxe.IdentityVerifySupporting{NIN: "12345678901"},
})
// Names only: client.Identity.Verify("NIN", "98765432101", "Ada", "Okafor")

Parameters

FieldTypeRequiredDescription
typestringYesBVN, NIN, TIN, VOTER_ID, PASSPORT, PHONE, DRIVERS_LICENSE
valuestringYesThe identity number
matchAgainst.firstNamestringYesFirst name to match
matchAgainst.lastNamestringYesLast name to match
matchAgainst.dateOfBirthstringNoYYYY-MM-DD; needed for a passport check through the primary provider
supporting.ninstringNoThe holder's 11-digit NIN; type: "PASSPORT" only (any other type is a 400)

Returns { verified, matchScore, checks, reason, profile, provider }. verified is true only when every field you sent matched (both names, and the date of birth when sent); profile is returned only when verified. provider is none (with attemptedProviders) when no provider could answer. See Verify Identity.

lookup

Raw registry lookup of one identifier. Needs the identity:lookup scope (no default key carries it), the Detection Pack and its current terms, and a purpose and consentReference, which PlatformXe logs with the call. A lookup a provider answered is billed, found or not; nothing is billed when no provider could answer. The answer's outcome (found, not_found, provider_down) says which. A photo is never returned.

const result = await client.identity.lookup({
  type: 'NIN',
  value: '12345678901',
  purpose: 'tenant onboarding',
  consentReference: 'cons_8f2a',
});

console.log(result.profile?.firstName);
result = client.identity.lookup("NIN", "12345678901", "tenant onboarding", "cons_8f2a")
result, err := client.Identity.Lookup("NIN", "12345678901", "tenant onboarding", "cons_8f2a")

Per-kind verifications

verify-nin, verify-bvn, liveness and face-match need the identity:verify scope; verify-account needs account:verify and verify-business needs business:verify (each identity vector has its own permission). All are metered. Each takes an optional idempotency key, sent as x-idempotency-key, so a retry answers the first result instead of running the check again. TypeScript 1.14.0 adds them (Python and Go had them); the async Python client gains them in 1.11.0.

A NIN check needs the date of birth, and status is verified only when both names and the date of birth match. Its verificationId may then be a face match's reference: PlatformXe compares the selfie with the registry photo it kept from that check, which never leaves PlatformXe.

const nin = await client.identity.verifyNin(
  {
    subjectId: 'cust_42',
    nin: '12345678901',
    matchAgainst: { firstName: 'Ada', lastName: 'Obi', dateOfBirth: '1990-03-15' },
  },
  { idempotencyKey: 'nin-cust_42-1' },
);

if (nin.status === 'verified' && nin.faceMatchReference) {
  const face = await client.identity.faceMatch({
    subjectId: 'cust_42',
    selfie: { base64: selfieBase64, contentType: 'image/jpeg' },
    reference: { verificationId: nin.verificationId! },
  });
  console.log(face.status, face.similarity);
}

const live = await client.identity.liveness({ subjectId: 'cust_42', image: { url: selfieUrl } });
nin = client.identity.verify_nin("cust_42", "12345678901", "Ada", "Obi", "1990-03-15", idempotency_key="nin-cust_42-1")
face = client.identity.face_match(
    "cust_42",
    selfie_base64=selfie_b64,
    selfie_content_type="image/jpeg",
    reference_verification_id=nin["verificationId"],
)
nin, err := client.Identity.VerifyNIN(platformxe.VerifyNINRequest{
    SubjectID: "cust_42",
    NIN:       "12345678901",
    Match:     map[string]interface{}{"firstName": "Ada", "lastName": "Obi", "dateOfBirth": "1990-03-15"},
})

A face match refers to a check that is not there with 404 REFERENCE_NOT_FOUND, and to one with no photo held with 409 REFERENCE_UNAVAILABLE; neither calls a vendor. A base64 image/webp is a 400.

The dead-letter queue of checks a provider could not answer is client.identity.dlq (list, stats, get, replay), and client.identity.providersHealth() is the per-provider breaker and latency rollup.

Business registration (KYB)

verifyBusiness checks a Nigerian business by its registration number (RC a company, BN a business name, IT incorporated trustees) and, when you send one, its TIN. It needs the business:verify scope, no Detection Pack, and is metered as business (₦80 a check); a FREE plan has 50 checks a month (429 BUSINESS_CHECK_QUOTA_EXCEEDED after). A provider_down answer is never stored under the idempotency key, so a retry with the same key checks again.

PlatformXe answers facts and a name score; your own review decides. status is verified when the registry knows the number, it is active, the registered name scores at least threshold (default 70) against expectedName, and the TIN matched when you sent one. failed carries one reason: not_found, inactive, name_mismatch or tin_mismatch. provider_down means try again later. The answer never carries the registry's directors, shareholders, addresses or contacts.

const biz = await client.identity.verifyBusiness(
  {
    subjectId: 'prov_17',
    country: 'NG',
    registrationType: 'RC',
    registrationNumber: 'RC 1234567',
    tin: '12345678-0001',
    expectedName: 'Acme Trading Ltd',
  },
  { idempotencyKey: 'kyb-prov_17-1' },
);

console.log(biz.status, biz.reason, biz.registeredName, biz.tinStatus);
biz = client.identity.verify_business(
    "prov_17", "RC", "RC 1234567", "Acme Trading Ltd",
    tin="12345678-0001", idempotency_key="kyb-prov_17-1",
)
biz, err := client.Identity.VerifyBusinessWithIdempotencyKey(platformxe.VerifyBusinessRequest{
    SubjectID:          "prov_17",
    RegistrationType:   "RC",
    RegistrationNumber: "RC 1234567",
    TIN:                "12345678-0001",
    ExpectedName:       "Acme Trading Ltd",
}, "kyb-prov_17-1")

providers

List available identity verification providers and their status.

const result = await client.identity.providers();
// result.data.providers: Array<{ name, status, types }>
result = client.identity.providers()
result, err := client.Identity.Providers()

Processor configuration

getProcessor

Retrieve the identity service processor configuration for your organization.

const config = await client.identity.getProcessor();

console.log(config.enabled);
console.log(config.config); // { defaultProvider: "...", retryOnFailure: true }
config = client.identity.get_processor()
config, err := client.Identity.GetProcessor()

updateProcessor

Update the identity processor configuration, such as default provider preferences and retry behaviour.

const updated = await client.identity.updateProcessor({
  enabled: true,
  config: {
    retryOnFailure: true,
    maxRetries: 3,
    cacheResolutions: true,
    cacheTtlSeconds: 86400,
  },
});
updated = client.identity.update_processor(
    enabled=True,
    config={
        "retryOnFailure": True,
        "maxRetries": 3,
        "cacheResolutions": True,
        "cacheTtlSeconds": 86400,
    },
)
updated, err := client.Identity.UpdateProcessor(map[string]interface{}{
    "enabled": true,
    "config": map[string]interface{}{
        "retryOnFailure":   true,
        "maxRetries":       3,
        "cacheResolutions": true,
        "cacheTtlSeconds":  86400,
    },
})

Identity resolution involves personally identifiable information (PII). Ensure you have user consent before calling these endpoints. See the KYC Guide for consent handling best practices.

Scopes required

MethodScope
identity.resolve()identity:resolve, named on the key (plus the Detection Pack and terms)
identity.verify()identity:verify
identity.lookup()identity:lookup (plus the Detection Pack and terms)
identity.providers()permissions:check
identity.getProcessor()permissions:check
identity.updateProcessor()permissions:manage