Skip to main content
POST
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 in selfie_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 unique Idempotency-Key for that attempt and keep it with the original JSON body. See retry behavior.

Authorizations

x-api-key
string
header
required

Per-organization API key. Issued via the deepidv dashboard. Send on every request.

Headers

Idempotency-Key
string

Reuse with the same body to replay a lookup for up to 24 hours within your organization.

Required string length: 1 - 128
Pattern: ^[!-~]+$

Body

application/json
id_type
enum<string>
required

Government ID type. BVN and NIN are enabled for live lookups.

Available options:
bvn-ng,
nin-ng,
ghana-card-gh,
curp-mx,
said-za
number
string
required

Identity number as a string, including leading zeros. BVN and NIN use 11 digits. Ghana Card uses GHA-#########-#. CURP uses 18 characters and South African ID uses 13 digits. The service validates the number for the selected registry.

Required string length: 1 - 128

The holder gave consent to query the registry.

first_name
string

First name to compare with the registry record.

Maximum string length: 256
middle_name
string

Middle name to compare with the registry record.

Maximum string length: 256
last_name
string

Last name to compare with the registry record.

Maximum string length: 256
date_of_birth
string

Date of birth to compare. Use YYYY-MM-DD.

Maximum string length: 40
Example:

"1990-01-01"

selfie_base64
string

JPEG or PNG selfie up to 5 MB as raw base64 or an image data URI. Send only one selfie input.

Minimum string length: 1
selfie_upload_key
string

The fileKey returned by POST /v1/upload/presign for an uploaded selfie in your organization. Send only one selfie input.

Required string length: 1 - 1024
face_match_threshold
number
default:80

Similarity threshold for a positive face match.

Required range: 70 <= x <= 95
return_full_number
boolean
default:false

Include the full number on the initial lookup response.

external_id
string

Your reference for the lookup. The response echoes it when supplied.

Maximum string length: 256

Response

Lookup completed or replayed. Read status to determine whether the registry returned a record.

id
string
required

Unique lookup ID.

id_type
enum<string>
required

Government ID type. BVN and NIN are enabled for live lookups.

Available options:
bvn-ng,
nin-ng,
ghana-card-gh,
curp-mx,
said-za
status
enum<string>
required

Whether the registry returned a record. Field and face comparisons are separate.

Available options:
verified,
not_found
number
object
required
matches
object
required

Comparisons for the fields supplied on the request.

face_match
object
required

Selfie comparison result. Null when the request did not include a selfie.

created_at
string<date-time>
required

Lookup creation time.

external_id
string

Your reference for the lookup, echoed when supplied.

record
object | null

Registry fields available to this organization. Sensitive groups require approval.

replayed
boolean

True when the response replays a prior request using the same idempotency key.