curl --request POST \
--url https://api.deepidv.com/v1/identity/lookup \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"id_type": "bvn-ng",
"number": "00000000001",
"consent": true,
"first_name": "Ada",
"last_name": "Okafor",
"date_of_birth": "1990-01-01",
"selfie_base64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+aK9sAAAAASUVORK5CYII=",
"face_match_threshold": 80,
"external_id": "signup-example"
}
'{
"id": "lookup_example_bvn",
"id_type": "bvn-ng",
"status": "verified",
"external_id": "signup-example",
"number": {
"last4": "0001",
"verified": true
},
"record": {
"first_name": "Ada",
"middle_name": "Ngozi",
"last_name": "Okafor",
"date_of_birth": "1990-01-01",
"gender": "female",
"phone_numbers": [
"+2348000000000",
"+2348000000001"
],
"address": {
"formatted": "1 Example Street, Example Town, Lagos",
"street": "1 Example Street",
"town": "Example Town",
"lga": "Example Town",
"state": "Lagos"
},
"linked_ids": {
"nin": "00000000001"
},
"enrollment": {
"bank": "Example Bank",
"branch": "Example Branch",
"registration_date": "2020-01-01",
"level_of_account": null,
"watch_listed": null
}
},
"matches": {
"first_name": {
"result": "exact",
"score": 1
},
"last_name": {
"result": "exact",
"score": 1
},
"date_of_birth": {
"result": "exact",
"score": 1
}
},
"face_match": {
"status": "completed",
"match": true,
"similarity": 98,
"threshold": 80
},
"created_at": "2026-11-20T10:00:00Z"
}Identity Lookup
Lookup an identity
Query a government registry and optionally compare a selfie with the registry portrait
POST
/
v1
/
identity
/
lookup
curl --request POST \
--url https://api.deepidv.com/v1/identity/lookup \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"id_type": "bvn-ng",
"number": "00000000001",
"consent": true,
"first_name": "Ada",
"last_name": "Okafor",
"date_of_birth": "1990-01-01",
"selfie_base64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+aK9sAAAAASUVORK5CYII=",
"face_match_threshold": 80,
"external_id": "signup-example"
}
'{
"id": "lookup_example_bvn",
"id_type": "bvn-ng",
"status": "verified",
"external_id": "signup-example",
"number": {
"last4": "0001",
"verified": true
},
"record": {
"first_name": "Ada",
"middle_name": "Ngozi",
"last_name": "Okafor",
"date_of_birth": "1990-01-01",
"gender": "female",
"phone_numbers": [
"+2348000000000",
"+2348000000001"
],
"address": {
"formatted": "1 Example Street, Example Town, Lagos",
"street": "1 Example Street",
"town": "Example Town",
"lga": "Example Town",
"state": "Lagos"
},
"linked_ids": {
"nin": "00000000001"
},
"enrollment": {
"bank": "Example Bank",
"branch": "Example Branch",
"registration_date": "2020-01-01",
"level_of_account": null,
"watch_listed": null
}
},
"matches": {
"first_name": {
"result": "exact",
"score": 1
},
"last_name": {
"result": "exact",
"score": 1
},
"date_of_birth": {
"result": "exact",
"score": 1
}
},
"face_match": {
"status": "completed",
"match": true,
"similarity": 98,
"threshold": 80
},
"created_at": "2026-11-20T10:00:00Z"
}Send JSON with the ID type, number, and the holder’s consent. Add names or date of birth for a field-by-field comparison. The request and response selector shows examples for each ID type, starting with BVN and a selfie. Ghana Card, CURP, and South African ID examples illustrate the contract. See live availability.
The reference examples use snake_case. The API also accepts camelCase equivalents such as
idType, dateOfBirth, and externalId.
Add a selfie
Use a JPEG or PNG up to 5 MB. Send it as raw base64 or an image data URI inselfie_base64. For an uploaded selfie, call POST /v1/upload/presign, upload the image to the presigned URL, then pass the returned fileKey in selfie_upload_key using an API key for the same organization. Send one selfie input per request.
Set face_match_threshold between 70 and 95 to override the default of 80. See face match results.
Retry a lookup
When your backend may retry the same lookup, send a uniqueIdempotency-Key for that attempt and keep it with the original JSON body. See retry behavior.Authorizations
Headers
Body
application/json
Response
Lookup completed or replayed. Read status to determine whether the registry returned a record.