API Documentation
Build secure onboarding flows with Nigeria's most reliable identity verification API. Verify BVN, NIN, CAC, and more in real-time.
Go live in under 30 minutes with our standardized REST endpoints.
All requests are encrypted and audited against Nigerian regulatory standards.
Authentication
Identity Base uses a dual-header authentication model for programmatic access. Every request must include your secret API key.
# Use your revealed secret key
id-base-key: id_live_...
Content-Type: application/json
Keep your keys safe: Never expose your API keys in client-side code or public repositories. If a key is compromised, revoke it immediately in the Dashboard.
Environments
Identity Base uses a unified endpoint for all requests. Your environment is automatically determined by the API key used in the id-base-key header.
Base API URLs
https://api.idbase.co/api/v1https://testapi.idbase.co/api/v1Development (Sandbox)
Use your test keys to integrate and test your logic. No real funds are deducted, and synthetic data is returned.
Production (Live)
Swap to your live keys to begin real-time registry lookups. Transaction fees apply per successful verification.
Verify BVN
Bank Verification Number
/verify/bvnPerforms a real-time BVN verification against the Nigerian identity registry. The BVN must be exactly 11 numeric digits.
Endpoint & Headers
Request Body
{
"bvn": "12345678901"
}Payload Fields
| Field | Type | Required |
|---|---|---|
| bvn | string (11) |
Success Response
{
"msg": "Success",
"data": {
"firstName": "John",
"lastName": "Doe",
"middleName": "Emeka",
"dateOfBirth": "1990-01-15",
"gender": "Male",
"phoneNumber": "08012345678",
"bankName": "First Bank",
"watchListed": false
}
}Verify NIN
National Identification Number
/verify/ninVerify a NIN against the NIMC registry. Returns full identity details including the registered photo.
Endpoint & Headers
Request Body
{
"nin": "98765432101"
}Response Fields
Verify CAC
Corporate Affairs Commission
/verify/cacVerify Nigerian business entities by their registration number and business type.
Endpoint & Headers
Example Payload
{
"rc": "RC123456",
"type": "RC"
}Type Enums
Verify TIN
Tax Identification Number
/verify/tinVerify Tax Identification Numbers (TIN) issued by FIRS. Supports both individual and company TINs.
Endpoint & Headers
TIN Formatting
Must be between 10 and 13 alphanumeric characters. Individual TINs are typically 10 digits; company TINs may be up to 13 characters.
Verify Selfie
Liveliness Enrollment & Authentication
/verify/selfiePerforms real-time liveliness enrollment and facial authentication by comparing a live selfie capture against a photo ID image. Both images must be base64-encoded strings.
Endpoint & Headers
Request Body
{
"idImage": "<base64-encoded-id-photo>",
"selfieImage": "<base64-encoded-selfie>"
}Payload Fields
| Field | Type | Required |
|---|---|---|
| idImage | string (base64) | |
| selfieImage | string (base64) |
Success Response
{
"msg": "Success",
"data": {
"match": true,
"confidence": 0.98,
"livelinessCheck": "passed"
}
}Image guidelines: Images should be well-lit, front-facing captures with no obstructions. Test mode returns synthetic match data and does not deduct wallet balance.
Error Handling
| Status | Message | Description |
|---|---|---|
| 400 | Bad Request | Insufficient funds or missing required fields. |
| 401 | Unauthorized | Invalid or missing API key. |
| 403 | Forbidden | Account is not active or service is disabled by admin. |
| 402 | Insufficient Funds | Your wallet balance is too low for this request (Live mode only). |
| 500 | Server Error | Identity provider timeout or internal failure. |
