API Reference
Verify Nigerian identities — NIN, BVN, CAC, TIN and bank accounts — through one REST API with a single, provider-independent response shape. Every call returns the same envelope and the same error vocabulary, whichever underlying provider served it.
Authentication
Authenticate every request with your secret API key in the x-api-key header. Keys are prefixed by environment — live_… for production and sandbox_… for testing. Never expose a key in client-side code.
| Header | Value |
|---|---|
x-api-key required | live_… or sandbox_… |
Content-Type | application/json |
Sandbox keys return realistic fixtures and are never billed. Switch to a live_ key and the same request hits the real NIBSS / NIMC sources.
curl https://api.triimo.com/api/v1/kyc/nin \
-H "x-api-key: live_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "nin": "12345678901" }'
Base URLs
| Environment | Base URL | Keys |
|---|---|---|
| Production | https://api.triimo.com/api/v1 | live_… |
| Sandbox | https://sandbox.triimo.com/api/v1 | sandbox_… |
Response format
Every response uses the same envelope. success is a boolean, message is a human-readable summary, and successful calls include data. Failures add an error object with a stable code you can branch on — the same codes regardless of which provider handled the lookup.
Success
HTTP 200. data holds the verified record.
Error
Non-2xx. error.code is one of the canonical codes; error.retryable tells you whether a retry (with backoff) can succeed.
{
"success": true,
"message": "NIN lookup completed successfully",
"data": { /* verified record */ }
}{
"success": false,
"message": "The identification number provided is invalid.",
"error": {
"code": "INVALID_INPUT",
"retryable": false
}
}Error codes
One vocabulary across every endpoint and provider. Branch on error.code, not on the message text (messages may be refined over time).
| Code | HTTP | Retryable | Meaning |
|---|---|---|---|
INVALID_INPUT | 400 | no | Malformed input — e.g. a NIN that isn't 11 digits. |
PROVIDER_UNAUTHORIZED | 401 | no | Verification service credentials are missing or invalid. |
PROVIDER_FORBIDDEN | 403 | no | This service is not enabled for your account. |
RECORD_NOT_FOUND | 404 | no | No record exists for the details provided. |
PROVIDER_INSUFFICIENT_FUNDS | 402 | no | Wallet balance is too low for this operation. |
VALIDATION_FAILED | 422 | no | The request failed upstream validation. |
PROVIDER_RATE_LIMITED | 429 | yes | Too many requests. Back off and retry. |
UNSUPPORTED_OPERATION | 501 | no | This lookup type isn't supported. |
PROVIDER_ERROR | 502 | yes | Upstream provider failure. Retry shortly. |
PROVIDER_UNAVAILABLE | 503 | yes | Network/timeout reaching the provider. Retry. |
UNKNOWN_ERROR | 500 | no | An unexpected error. Contact support if it persists. |
HTTP status codes
Request succeeded; the record is in data.
Malformed input, e.g. an invalid identifier.
Missing or invalid API key.
Insufficient wallet balance — top up to continue.
No matching record in the source database.
Rate limit hit — retry with backoff.
Unexpected error on our side.
Provider failed or was unreachable — retryable.
Verify NIN
Verify an 11-digit National Identification Number against NIMC and return the individual's identity record.
Body parameters
| Field | Type | Description |
|---|---|---|
nin required | string | The 11-digit NIN to verify. |
Returns
A record with firstname, middlename, surname, gender, birthdate, telephoneno, residence_address, nin and a base64 photo. Fields the source leaves blank are omitted.
The response is identical whichever provider served it. Billing applies on a successful verification; failed lookups follow your account's failed-check policy.
curl -X POST https://api.triimo.com/api/v1/kyc/nin \
-H "x-api-key: live_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "nin": "12345678901" }'
{
"success": true,
"message": "NIN lookup completed successfully",
"data": {
"firstname": "CHINWE",
"middlename": "ADAEZE",
"surname": "OKAFOR",
"gender": "f",
"birthdate": "18-06-1992",
"telephoneno": "08031234567",
"residence_address": "14 BROAD STREET, LAGOS ISLAND",
"nin": "12345678901",
"photo": "data:image/jpeg;base64,/9j/4AAQSk…"
}
}{
"success": false,
"message": "The identification number provided is invalid. Please check it and try again.",
"error": { "code": "INVALID_INPUT", "retryable": false }
}{
"success": false,
"message": "Insufficient wallet balance to carry out operation. Please top up your wallet to continue.",
"error": { "code": "PROVIDER_INSUFFICIENT_FUNDS", "retryable": false }
}{
"success": false,
"message": "No record was found for the details provided.",
"error": { "code": "RECORD_NOT_FOUND", "retryable": false }
}{
"success": false,
"message": "Too many verification requests. Please wait a moment and try again.",
"error": { "code": "PROVIDER_RATE_LIMITED", "retryable": true }
}Verify BVN
Verify an 11-digit Bank Verification Number against NIBSS and return the linked identity record.
Body parameters
| Field | Type | Description |
|---|---|---|
bvn required | string | The 11-digit BVN to verify. |
Returns
Name, date of birth, gender, phone, enrollment bank and branch, and a base64 photo.
curl -X POST https://api.triimo.com/api/v1/kyc/bvn \
-H "x-api-key: live_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "bvn": "22468953278" }'
{
"success": true,
"message": "BVN verified successfully",
"data": {
"first_name": "AMINA",
"middle_name": "CHIOMA",
"last_name": "BELLO",
"gender": "f",
"date_of_birth": "1985-04-12",
"phone_number": "08098765432",
"enrollment_bank": "Guaranty Trust Bank",
"enrollment_branch": "Maitama"
}
}{
"success": false,
"message": "No record was found for the details provided.",
"error": { "code": "RECORD_NOT_FOUND", "retryable": false }
}Get a verification
Retrieve a previously performed lookup by its id.
Returns the stored record for any lookup, including its status, lookupType and data.
Verify TIN
Verify a Tax Identification Number (FIRS) and return the registered taxpayer. Synchronous — the result is returned immediately.
Body parameters
| Field | Type | Description |
|---|---|---|
number required | string | The TIN to verify, e.g. 12345678-0001. |
curl -X POST https://api.triimo.com/api/v1/kyc/tin \
-H "x-api-key: live_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "number": "12345678-0001" }'
{
"success": true,
"message": "TIN lookup completed successfully",
"data": {
"tin": "12345678-0001",
"taxpayer_name": "ACME CORPORATION LIMITED",
"cac_reg_number": "RC123456",
"phone": "08012345678",
"email": "info@acme.ng"
}
}{
"success": false,
"message": "No record was found for the details provided.",
"error": { "code": "RECORD_NOT_FOUND", "retryable": false }
}Verify account number
Resolve a Nigerian bank account number to its registered account name. Use the bank's NIP code (see Supported banks).
Body parameters
| Field | Type | Description |
|---|---|---|
account_number required | string | The 10-digit account number. |
nip_code required | string | The bank's NIP code, e.g. 058. |
curl -X POST https://api.triimo.com/api/v1/kyc/account-number \
-H "x-api-key: live_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "account_number": "0123456789", "nip_code": "058" }'
{
"success": true,
"message": "Account verified",
"data": {
"account_number": "0123456789",
"account_name": "JOHN ADEYEMI OKORO",
"nip_code": "058"
}
}{
"success": false,
"message": "No record was found for the details provided.",
"error": { "code": "RECORD_NOT_FOUND", "retryable": false }
}CAC company search
Search the Corporate Affairs Commission register by company name, then enrich a result with directors, shareholders or the company secretary. For a direct RC-number lookup use /kyc/cac/full.
Body parameters
| Field | Type | Description |
|---|---|---|
searchQuery required | string | Company name to search for. |
Related
POST /kyc/cac/full { "rcNumber": "760000" } · /kyc/cac/directors · /kyc/cac/shareholders · /kyc/cac/secretary — each enriches the same company record.
curl -X POST https://api.triimo.com/api/v1/kyc/cac/search \
-H "x-api-key: live_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "searchQuery": "ACME CORPORATION" }'
{
"success": true,
"message": "CAC search completed",
"data": [
{
"approved_name": "ACME CORPORATION LIMITED",
"rc_number": "RC123456",
"registration_date": "2015-03-12",
"status": "ACTIVE"
}
]
}
Bulk lookups
Submit many identifiers in one request. Bulk lookups are processed asynchronously — you get a job id back immediately, then poll it. Available for NIN, BVN, TIN, account number and CAC: /kyc/{type}/bulk.
Body parameters
| Field | Type | Description |
|---|---|---|
records required | array | Each item is the single-lookup body for that type, e.g. { "nin": "…" }. |
Poll the job
GET /kyc/bulk/{id} for status, GET /kyc/bulk/{id}/lookups for the individual results.
curl -X POST https://api.triimo.com/api/v1/kyc/nin/bulk \
-H "x-api-key: live_xxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{ "records": [ {"nin":"12345678901"}, {"nin":"12345678902"} ] }'
{
"success": true,
"message": "Bulk NIN lookup submitted",
"data": {
"id": "blk_8f2a1c7e",
"status": "queued",
"total": 2
}
}
Supported banks
List the Nigerian banks supported for account verification, with their NIP codes. This endpoint is public — no API key required.
Query parameters
| Field | Type | Description |
|---|---|---|
search | string | Optional. Filter banks by name (case-insensitive). |
{
"success": true,
"data": [
{ "name": "Guaranty Trust Bank", "nip_code": "058" },
{ "name": "Access Bank", "nip_code": "044" }
]
}

