Developer Reference

SmartVerifyNG API Documentation (v1)

Complete guide to integrating BVN Matching, NIN Lookups, Bank Account Resolution, and Biometric ID Verification into your applications.

Base URL: https://smartverify.me/api/v1
Secret Header: X-API-KEY: sk_live_...
Public Header: X-PUBLIC-KEY: pk_live_...
v1 API Reference

Authentication (Secret & Public Keys)

Every API key pair generated in your Developer Dashboard includes both a Secret Key (sk_live_...) and a Public Key (pk_live_...). You can authenticate verification endpoints using either header:

# 1. Secret Key (Backend / Server-to-Server)
X-API-KEY: sk_live_your_secret_key

Returns the full response directly in the HTTP response body (and also posts to your Webhook URL if configured).

# 2. Public Key (Frontend / Mobile Safe)
X-PUBLIC-KEY: pk_live_your_public_key

Hides sensitive result data, fees, and wallet balance from the HTTP response and delivers the full response exclusively to your Webhook URL.

Webhooks & Public Key Mode

Configure a Webhook URL in your Webhook & Settings page to automatically receive an HTTP POST containing the full JSON verification response whenever any verification endpoint is called (excluding requery and wallet enquiry endpoints).

Key Header Used Direct HTTP Response Webhook Delivery Requery & Balance Endpoints
X-API-KEY (Secret) Full response including data, fee_charged, wallet_balance. Full response posted if Webhook URL is configured. Allowed (no webhook triggered)
X-PUBLIC-KEY (Public) Sanitized acknowledgment only (status, service, reference, webhook_dispatched). Sensitive data omitted. Required. Full response delivered exclusively to your Webhook URL. Restricted (403 SECRET_KEY_REQUIRED)
Direct HTTP Response (when using X-PUBLIC-KEY):
{
  "status": "success",
  "message": "Verification completed. Full response has been dispatched to your configured webhook URL.",
  "service": "nin_verification",
  "reference": "TXN_NIN_002",
  "key_mode": "public",
  "webhook_dispatched": true,
  "execution_time_ms": 180
}
Webhook POST Payload Delivered to Your Server:
// Headers:
// X-SmartVerify-Event: verification.completed
// X-SmartVerify-Signature: <hmac_sha256_hex>

{
  "event": "verification.completed",
  "timestamp": "2026-11-24T17:25:00+00:00",
  "endpoint": "/api/v1/verify/nin",
  "status": "success",
  "message": "Basic NIN lookup completed successfully",
  "service": "nin_verification",
  "reference": "TXN_NIN_002",
  "cached": false,
  "fee_charged": 50,
  "wallet_balance": 4950,
  "execution_time_ms": 180,
  "data": { ... }
}

HTTP Response Codes

HTTP Code Status Meaning
200 Success Verification successful; service fee debited from wallet.
401 Unauthorized Missing or invalid API Key in request headers.
402 Insufficient Balance Wallet balance is insufficient for this service. Please fund your dedicated virtual account.
422 Validation Error Missing or invalid payload parameters (e.g. invalid BVN length, malformed image URL). Zero fee debited.
429 Rate Limit Exceeded Too many requests dispatched. Max 60 requests per minute per IP.

Custom Transaction Reference & Requeries

All SmartVerifyNG verification endpoints support an optional reference parameter (string up to 100 characters). When you supply your own reference, our engine binds it to your verification attempt. You can then pull/requery the full request and verified response anytime via GET /api/v1/verify/reference/{reference} (billed at a nominal anti-abuse lookup fee; see Pricing).

Supply in Verification Request:
"reference": "YOUR_UNIQUE_TXN_REF_001"

Include in JSON body of any verification call.

Requery Anytime:
GET /api/v1/verify/reference/YOUR_UNIQUE_TXN_REF_001

Pulls exact original verification data from your audit log (requires Secret Key).

Verification Category

National Identity (NIN)

POST

/api/v1/verify/nin

Basic NIN Lookup

Verifies an 11-digit National Identity Number (NIN) against the central identity database, returning core legal demographic details (full legal name, date of birth, gender, linked phone, and residence state/LGA).

Parameter Type Status Description
nin string Required 11-digit National Identity Number.
reference string Optional Unique custom transaction reference string for auditing and requeries.
Request Sample (cURL):
curl -X POST "https://smartverify.me/api/v1/verify/nin" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "nin": "00000000001",
    "reference": "TXN_NIN_002"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "Basic NIN lookup completed successfully",
  "service": "nin_verification",
  "reference": "TXN_NIN_002",
  "cached": false,
  "fee_charged": 50,
  "wallet_balance": 4900,
  "execution_time_ms": 180,
  "data": {
    "nin": "000*****01",
    "firstname": "JOHN",
    "surname": "DOE",
    "middlename": "SAMPLE",
    "gender": "M",
    "birthdate": "1990-01-15",
    "phone_number": "0800***0001",
    "state": "Lagos",
    "lga": "Ikeja"
  }
}
POST

/api/v1/verify/nin-demographic

NIN Demographic Match

Matches supplied customer demographic details (full name, date of birth, and mobile phone number) against official Basic NIN Lookup records, returning per-field booleans alongside overall match_status and match_percentage. Also accessible via /api/v1/verify/nin-details.

Parameter Type Status Description
nin string Required 11-digit National Identity Number.
name string Required Full name to match against the NIN record (also accepts full_name).
date_of_birth string Required Date of birth (YYYY-MM-DD or DD-MM-YYYY). Also accepts dob or dateOfBirth.
mobile_no string Required Phone number to match against the NIN record (also accepts phone_number, phone, mobileNo).
reference string Optional Unique custom transaction reference string.
Request Sample (cURL):
curl -X POST "https://smartverify.me/api/v1/verify/nin-demographic" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "nin": "00000000001",
    "name": "JOHN SAMPLE DOE",
    "date_of_birth": "1990-01-15",
    "mobile_no": "08000000001",
    "reference": "TXN_NIN_DEMO_001"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "NIN demographic verification completed successfully",
  "service": "nin_demographic_match",
  "reference": "TXN_NIN_DEMO_001",
  "cached": false,
  "fee_charged": 50,
  "wallet_balance": 4950,
  "execution_time_ms": 170,
  "data": {
    "match_status": "FULL_MATCH",
    "match_percentage": 100,
    "nin": "00000000001",
    "nin_information_match": true,
    "name_match": true,
    "date_of_birth_match": true,
    "mobile_no_match": true,
    "name_match_percentage": 100,
    "name": "JOHN SAMPLE DOE",
    "date_of_birth": "1990-01-15",
    "mobile_no": "08000000001"
  }
}
POST

/api/v1/verify/nin-account-match

NIN + NUBAN Match

Matches the verified legal name on a customer's 11-digit NIN (via Basic NIN Lookup) against a commercial Nigerian bank account holder name resolved from account number and CBN bank code.

Parameter Type Status Description
nin string Required 11-digit National Identity Number.
account_number string Required 10-digit NUBAN commercial bank account number.
bank_code string Required CBN bank code (e.g. 058 for GTBank, 011 for First Bank).
reference string Optional Unique custom transaction reference string.
Request Sample (cURL):
curl -X POST "https://smartverify.me/api/v1/verify/nin-account-match" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "nin": "00000000001",
    "account_number": "0000000000",
    "bank_code": "058",
    "reference": "TXN_NIN_ACC_001"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "NIN account name match completed successfully",
  "service": "nin_account_match",
  "reference": "TXN_NIN_ACC_001",
  "cached": false,
  "fee_charged": 50,
  "wallet_balance": 4900,
  "execution_time_ms": 195,
  "data": {
    "match_status": "FULL_MATCH",
    "match_percentage": 100,
    "nin": "00000000001",
    "account_number": "0000000000",
    "bank_code": "058",
    "bank_name": "Guaranty Trust Bank (GTBank)",
    "account_name": "JOHN SAMPLE DOE",
    "nin_name": "JOHN SAMPLE DOE"
  }
}
POST

/api/v1/verify/nin-biometric

Official NIMC Photo Match

Retrieves the official registration photograph from the national identity database and performs automated 1:1 biometric facial comparison against a user's live capture selfie.

Parameter Type Status Description
nin string Required 11-digit National Identity Number.
image string Required Public HTTPS image URL or Base64 data string of the user's live biometric selfie.
phone string Optional Subscriber phone number linked with the identity record.
threshold float Optional Biometric similarity threshold between 0.10 and 0.99 (default: 0.45).
reference string Optional Unique custom transaction reference string for auditing and requeries.
Request Sample:
curl -X POST "https://smartverify.me/api/v1/verify/nin-biometric" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "nin": "00000000001",
    "image": "https://storage.example.com/selfies/sample_user.jpg",
    "reference": "TXN_NIN_BIO_002"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "NIN biometric face match completed successfully",
  "service": "nin_biometric_match",
  "reference": "TXN_NIN_BIO_002",
  "cached": false,
  "fee_charged": 150,
  "wallet_balance": 24750,
  "execution_time_ms": 340,
  "data": {
    "is_match": true,
    "similarity_score": 92.1,
    "match_threshold": 0.45,
    "nin": "00000000001",
    "verified_name": "JOHN SAMPLE DOE",
    "first_name": "JOHN",
    "last_name": "DOE",
    "middle_name": "SAMPLE",
    "gender": "m",
    "date_of_birth": "1990-01-15",
    "phone_number": "08000000001"
  }
}
POST

/api/v1/verify/nin-advanced

Full Profile & Photo

Retrieves comprehensive citizen demographic profile and the official registered photograph encoded in Base64 format directly from national identity registry records.

Parameter Type Status Description
nin string Required 11-digit National Identity Number.
phone string Optional Subscriber phone number linked with the identity record.
reference string Optional Unique custom transaction reference string for auditing and requeries.
Request Sample (cURL):
curl -X POST "https://smartverify.me/api/v1/verify/nin-advanced" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "nin": "00000000001",
    "reference": "TXN_ADV_NIN_001"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "Advanced NIN identity lookup completed successfully",
  "service": "advanced_nin_lookup",
  "reference": "TXN_ADV_NIN_001",
  "cached": false,
  "fee_charged": 100,
  "wallet_balance": 24800,
  "execution_time_ms": 240,
  "data": {
    "nin": "00000000001",
    "first_name": "JOHN",
    "last_name": "DOE",
    "middle_name": "SAMPLE",
    "gender": "m",
    "birthdate": "1990-01-15",
    "phone_number": "08000000001",
    "state": "Lagos",
    "lga": "Ikeja",
    "personal_info": {
      "first_name": "JOHN",
      "last_name": "DOE",
      "middle_name": "SAMPLE",
      "gender": "m",
      "date_of_birth": "1990-01-15",
      "phone_number": "08000000001",
      "email": null,
      "marital_status": null
    },
    "residential_info": {
      "state_of_residence": "Lagos",
      "lga_of_residence": "Ikeja",
      "address_line": "10 Sample Street",
      "postal_code": null
    },
    "image": "/9j/4AAQSkZJRgABAQEASABIAAD/2wBD...",
    "has_image": true
  }
}
Verification Category

Bank Verification Number (BVN)

POST

/api/v1/verify/bvn-details

Banking Demographic Match

Validates customer demographic credentials (full name, date of birth, and linked mobile phone number) against an 11-digit Bank Verification Number across central banking registries.

Parameter Type Status Description
bvn string Required 11-digit Bank Verification Number.
name string Required Full name to match against the BVN registration record.
date_of_birth string Required Date of birth formatted as YYYY-MM-DD or DD-MMM-YYYY (e.g. 1996-03-22 or 22-Mar-1996). Also accepts dob or dateOfBirth.
mobile_no string Required Mobile phone number linked to the BVN (also accepts phone_number or mobileNo).
reference string Optional Unique custom transaction reference string for auditing and requeries.
Request Sample (cURL):
curl -X POST "https://smartverify.me/api/v1/verify/bvn-details" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "bvn": "00000000002",
    "name": "JANE DEMO DOE",
    "date_of_birth": "1992-05-10",
    "mobile_no": "08000000002",
    "reference": "TXN_BVN_003"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "BVN demographic verification completed successfully",
  "service": "bvn_verification",
  "reference": "TXN_BVN_003",
  "cached": false,
  "fee_charged": 50,
  "wallet_balance": 4850,
  "execution_time_ms": 150,
  "data": {
    "match_status": "FULL_MATCH",
    "match_percentage": 100,
    "bvn": "00000000002",
    "bvn_information_match": true,
    "name_match": true,
    "date_of_birth_match": true,
    "mobile_no_match": true,
    "name": "JANE DEMO DOE",
    "date_of_birth": "1992-05-10",
    "mobile_no": "08000000002"
  }
}
POST

/api/v1/verify/bvn-account-match

Banking Gateway

Matches the registered full name on a customer's BVN against a commercial bank account number and bank code.

Parameter Type Status Description
bvn string Required 11-digit Bank Verification Number.
account_number string Required 10-digit NUBAN commercial bank account number.
bank_code string Required 3-digit CBN bank code (e.g. 058 for GTBank, 011 for First Bank, 035 for Wema).
reference string Optional Unique custom transaction reference string for auditing and requeries.
Request Sample (cURL):
curl -X POST "https://smartverify.me/api/v1/verify/bvn-account-match" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "bvn": "00000000002",
    "account_number": "0000000000",
    "bank_code": "058",
    "reference": "TXN_MATCH_001"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "BVN account name match completed successfully",
  "service": "bvn_account_match",
  "reference": "TXN_MATCH_001",
  "cached": false,
  "fee_charged": 50,
  "wallet_balance": 4950,
  "execution_time_ms": 120,
  "data": {
    "match_status": "FULL_MATCH",
    "match_percentage": 100,
    "account_name": "JOHN SAMPLE DOE",
    "bvn_name": "JOHN SAMPLE DOE",
    "account_number": "0000000000",
    "bank_code": "058"
  }
}
POST

/api/v1/verify/bvn-biometric

Official BVN Photo Match

Retrieves the official registration photograph linked to an 11-digit BVN and performs automated 1:1 biometric facial matching against a user's live capture selfie.

Parameter Type Status Description
bvn string Required 11-digit Bank Verification Number.
image string Required Public HTTPS image URL or Base64 data string of the user's live biometric selfie.
threshold float Optional Biometric similarity threshold between 0.10 and 0.99 (default: 0.45).
reference string Optional Unique custom transaction reference string for auditing and requeries.
Request Sample:
curl -X POST "https://smartverify.me/api/v1/verify/bvn-biometric" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "bvn": "00000000002",
    "image": "https://storage.example.com/selfies/sample_user.jpg",
    "reference": "TXN_BVN_BIO_001"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "BVN biometric face match completed successfully",
  "service": "bvn_biometric_match",
  "reference": "TXN_BVN_BIO_001",
  "cached": false,
  "fee_charged": 100,
  "wallet_balance": 24900,
  "execution_time_ms": 320,
  "data": {
    "is_match": true,
    "similarity_score": 88.5,
    "match_threshold": 0.45,
    "bvn": "00000000002",
    "verified_name": "JOHN SAMPLE DOE",
    "first_name": "JOHN",
    "last_name": "DOE",
    "middle_name": "SAMPLE",
    "date_of_birth": "1990-01-15",
    "phone_number": "08000000002",
    "enrollment_bank": "Demo Bank"
  }
}
POST

/api/v1/verify/bvn-advanced

Full KYC & Photo

Retrieves complete verified personal KYC profile and the official registered photograph encoded in Base64 format directly from central banking records.

Parameter Type Status Description
bvn string Required 11-digit Bank Verification Number.
reference string Optional Unique custom transaction reference string for auditing and requeries.
Request Sample (cURL):
curl -X POST "https://smartverify.me/api/v1/verify/bvn-advanced" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "bvn": "00000000002",
    "reference": "TXN_ADV_BVN_002"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "Advanced BVN identity lookup completed successfully",
  "service": "advanced_bvn_lookup",
  "reference": "TXN_ADV_BVN_002",
  "cached": false,
  "fee_charged": 150,
  "wallet_balance": 24650,
  "execution_time_ms": 260,
  "data": {
    "bvn": "00000000002",
    "first_name": "JOHN",
    "last_name": "DOE",
    "middle_name": "SAMPLE",
    "date_of_birth": "1990-01-15",
    "phone_number": "08000000002",
    "registration_date": "2015-08-14",
    "enrollment_bank": "Demo Bank",
    "personal_info": {
      "first_name": "JOHN",
      "last_name": "DOE",
      "middle_name": "SAMPLE",
      "date_of_birth": "1990-01-15",
      "gender": "Male",
      "phone_number": "08000000002",
      "secondary_phone_number": null,
      "email": null,
      "marital_status": null
    },
    "enrolment_bank": "Demo Bank",
    "enrolment_branch": "Sample Branch, Lagos",
    "formatted_registration_date": "2015-08-14",
    "state_of_origin": "Lagos",
    "lga_of_origin": "Ikeja",
    "residential_address": null,
    "image": "/9j/4AAQSkZJRgABAQEASABIAAD/2wBD...",
    "has_image": true
  }
}
Verification Category

Biometrics & AI Vision

POST

/api/v1/verify/face-match

1:1 Biometric Comparison

Direct 1:1 biometric facial comparison between any two facial images or image URLs with high-precision metric embeddings.

Parameter Type Status Description
image1 string Required Public HTTPS image URL or Base64 data string of the first facial portrait.
image2 string Required Public HTTPS image URL or Base64 data string of the second facial portrait.
threshold float Optional Metric similarity threshold between 0.10 and 0.99 (default: 0.45).
reference string Optional Unique custom transaction reference string for auditing and requeries.
Request Sample:
curl -X POST "https://smartverify.me/api/v1/verify/face-match" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "image1": "https://cdn.example.com/face_a.jpg",
    "image2": "https://cdn.example.com/face_b.jpg",
    "threshold": 0.45,
    "reference": "TXN_FACE_005"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "1:1 Face biometric match completed successfully",
  "service": "face_match",
  "reference": "TXN_FACE_005",
  "cached": false,
  "fee_charged": 50,
  "wallet_balance": 4750,
  "execution_time_ms": 520,
  "data": {
    "is_match": true,
    "similarity_score": 94.6,
    "match_threshold": 0.45
  }
}
POST

/api/v1/verify/facial-id-match

Biometric Vision

Matches a live facial portrait against a government-issued identity document (Nigerian Voter's Card / PVC, National Identity NIN slip, or International Passport). Features automatic orientation detection and image rotation correction.

Parameter Type Status Description
live_image string Required Public HTTPS image URL or Base64 data string of the user's live capture selfie.
id_card_image string Required Public HTTPS image URL or Base64 data string of the front of the ID card document.
threshold float Optional Similarity score threshold between 0.10 and 0.99 (default: 0.45).
reference string Optional Unique custom transaction reference string for auditing and requeries.
Request Sample (cURL):
curl -X POST "https://smartverify.me/api/v1/verify/facial-id-match" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "live_image": "https://cdn.example.com/live_selfie.jpg",
    "id_card_image": "https://cdn.example.com/nimc_slip.jpg",
    "threshold": 0.45,
    "reference": "TXN_FACE_ID_004"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "Facial ID biometric match completed successfully",
  "service": "facial_id_match",
  "reference": "TXN_FACE_ID_004",
  "cached": false,
  "fee_charged": 50,
  "wallet_balance": 4800,
  "execution_time_ms": 780,
  "data": {
    "is_match": true,
    "similarity_score": 89.25,
    "match_threshold": 0.45,
    "rotation_applied_deg": 270
  }
}
POST

/api/v1/verify/liveness

Anti-Spoofing & Depth

Evaluates passive facial liveness and biometric anti-spoofing on a captured facial photo or selfie. Detects presentation attacks including digital screen replays, paper printouts, synthetic 3D masks, and severe motion or focus blur.

Building a mobile app? Drop in our official guided active-liveness capture SDKs for React Native and Flutter.
View Mobile SDKs ↓
Parameter Type Status Description
image string Required Public image URL (HTTPS) or Base64 encoded string of the facial image (with or without data URI prefix).
threshold float Optional Minimum liveness confidence threshold percentage (default: 65.0).
reference string Optional Unique custom transaction reference string for auditing and requeries.
Request Sample (cURL):
curl -X POST "https://smartverify.me/api/v1/verify/liveness" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://storage.example.com/captured_selfie.jpg",
    "threshold": 65.0,
    "reference": "TXN_LIVE_CHECK_001"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "Biometric liveness check completed successfully",
  "service": "liveness_check",
  "reference": "TXN_LIVE_CHECK_001",
  "fee_charged": 20,
  "wallet_balance": 24980,
  "execution_time_ms": 185,
  "data": {
    "is_live": true,
    "liveness_score": 97.0,
    "liveness_status": "LIVE",
    "confidence": "HIGH",
    "spoof_detected": false,
    "spoof_type": null,
    "threshold_used": 65.0,
    "checks": {
      "face_detected": true,
      "face_count": 1,
      "face_confidence": 0.85,
      "depth_analysis": {
        "passed": true,
        "score": 100.0,
        "depth_variance": 34.58
      },
      "frequency_analysis": {
        "passed": true,
        "score": 95.0,
        "moire_detected": false
      },
      "texture_analysis": {
        "passed": true,
        "score": 95.0,
        "laplacian_variance": 537.15,
        "blur_detected": false
      },
      "glare_analysis": {
        "passed": true,
        "score": 100.0,
        "glare_detected": false
      },
      "pose_analysis": {
        "passed": true,
        "yaw": -13.71,
        "pitch": 29.98,
        "roll": 1.39
      }
    },
    "face_details": {
      "bbox": [208, 178, 352, 390],
      "age_estimate": 33,
      "gender": "Female"
    }
  }
}

Guide mobile users through real-time on-device active liveness checks (face alignment, sustained smile, and blink detection) with spoken voice guidance, capture a clean direct-face photo with zero post-blink shutter lag, and submit automatically to POST /api/v1/verify/liveness.

Security-First Public Key & Webhook Architecture
  • Both mobile SDKs authenticate exclusively with your Public Key (pk_live_...) via the X-PUBLIC-KEY header and automatically reject secret keys (sk_...) at initialization.
  • The client onComplete callback receives only the safe submission status (status, isSuccess), clear message, and correlation reference.
  • Full liveness verdicts, confidence scores, and anti-spoofing checks are never returned to the mobile device — they are delivered exclusively to your configured Server Webhook URL.

React Native SDK

react-native-smartverify-biometric

View on npm
1. Install Package & Peer Dependencies:
npm install react-native-smartverify-biometric \
  react-native-vision-camera \
  react-native-vision-camera-face-detector \
  react-native-worklets-core

# Optional voice prompts (Expo or Bare RN):
npx expo install expo-speech expo-haptics
# or: npm install react-native-tts
2. Babel & Platform Permissions:
// babel.config.js
module.exports = {
  presets: ['module:@react-native/babel-preset'],
  plugins: ['react-native-worklets-core/plugin'],
};

// Android: <uses-permission android:name="android.permission.CAMERA" />
// iOS: iOS 15.5+ deployment target & NSCameraUsageDescription
3. Initialize with Public Key:
import { SmartVerifyBiometric } from 'react-native-smartverify-biometric';

SmartVerifyBiometric.initialize({
  publicKey: 'pk_live_your_public_key_here',
  defaultThreshold: 65.0, // optional
});
4. Render Capture Screen:
import {
  SmartVerifyCaptureScreen,
  SmartVerifyLivenessResult,
} from 'react-native-smartverify-biometric';

<SmartVerifyCaptureScreen
  reference="TXN_LIVE_CHECK_001"
  options={{
    title: 'Face capture',
    enableVoicePrompts: true,
    showVoiceToggle: true,
    allowRetryOnError: true,
  }}
  onComplete={(result: SmartVerifyLivenessResult) => {
    if (result.isSuccess) {
      // Correlate full verdict on your backend via result.reference
      console.log('Submitted:', result.reference, result.message);
    }
  }}
  onCancel={() => navigation.goBack()}
/>

Flutter SDK

smartverify_biometric

View on pub.dev
1. Add Dependency (pubspec.yaml):
dependencies:
  smartverify_biometric: ^1.0.0

# Then install:
# flutter pub get
2. Platform Setup (Android & iOS):
// Android (minSdk 21+, AndroidManifest.xml):
<uses-permission android:name="android.permission.CAMERA" />
<uses-feature android:name="android.hardware.camera.front" android:required="false" />

// iOS (Podfile iOS 15.5+, Info.plist):
<key>NSCameraUsageDescription</key>
<string>Camera access is required for biometric liveness verification.</string>
3. Initialize in main():
import 'package:smartverify_biometric/smartverify_biometric.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();

  SmartVerifyBiometric.initialize(
    publicKey: 'pk_live_your_public_key_here',
    defaultThreshold: 65.0, // optional
  );

  runApp(const MyApp());
}
4. Launch Liveness Capture:
await SmartVerifyBiometric.instance.startLivenessCheck(
  context: context,
  reference: 'TXN_LIVE_CHECK_001',
  onComplete: (SmartVerifyLivenessResult result) {
    if (result.isSuccess) {
      // Correlate full webhook verdict via result.reference
      debugPrint('Submitted (${result.reference}): ${result.message}');
    } else {
      debugPrint('Error (${result.errorCode}): ${result.message}');
    }
  },
  onCancel: () => debugPrint('Capture cancelled'),
);
Client Callback Payload (SmartVerifyLivenessResult)
Property Type Description
status string API response status string (e.g. success, error).
isSuccess boolean Whether the biometric capture was accepted by the SmartVerifyNG API (HTTP 2xx).
message string Clear human-readable message returned by the API.
reference string (nullable) Transaction reference used to match the full liveness verdict delivered to your server webhook.
service / httpStatusCode / errorCode string / int / enum Service code (liveness_check), HTTP status code, and categorized SDK error code if submission failed.
Verification Category

Banking & Accounts

POST

/api/v1/verify/bank-account

NUBAN Resolution

Validates a 10-digit Nigerian NUBAN account number across commercial banks and digital fintechs, resolving the verified account holder name.

Parameter Type Status Description
account_number string Required 10-digit Nigerian NUBAN account number.
bank_code string Required 3-digit CBN bank code (e.g. 058 for GTBank, 011 for First Bank, 057 for Zenith, 035 for Wema).
reference string Optional Unique custom transaction reference string for auditing and requeries.
Request Sample:
curl -X POST "https://smartverify.me/api/v1/verify/bank-account" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "account_number": "0000000000",
    "bank_code": "058",
    "reference": "TXN_ACC_006"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "Bank account number verified successfully",
  "service": "bank_account_verification",
  "reference": "TXN_ACC_006",
  "cached": false,
  "fee_charged": 0,
  "wallet_balance": 25000,
  "execution_time_ms": 110,
  "data": {
    "account_number": "0000000000",
    "account_name": "JOHN SAMPLE DOE",
    "bank_code": "058",
    "bank_name": "Guaranty Trust Bank (GTBank)"
  }
}
GET / POST

/api/v1/banks

Free Utility

Retrieves the complete directory of all licensed Nigerian commercial banks, microfinance banks (MFBs), mortgage institutions, and digital payment fintechs along with their official CBN sort codes, USSD payment codes, and NIP routing codes.

Parameter Type Status Description
search string (Query or Body) Optional Filter banks by name or partial string (e.g. gtbank, kuda, moniepoint).
code string (Query or Body) Optional Filter specifically by 3-digit or 6-digit CBN bank code (e.g. 058, 044, 090267).
reference string Optional Unique custom transaction reference string for tracking.
Request Sample:
curl -X GET "https://smartverify.me/api/v1/banks?search=gtbank" \
  -H "X-API-KEY: sk_live_your_key"
Response (200 OK):
{
  "status": "success",
  "message": "Banks list retrieved successfully",
  "service": "banks_list",
  "reference": null,
  "cached": true,
  "fee_charged": 0,
  "wallet_balance": 25000,
  "execution_time_ms": 12,
  "data": {
    "total_banks": 1,
    "banks": [
      {
        "name": "GTBank",
        "code": "058",
        "ussd_code": "*737#",
        "transfer_ussd_template": "*737*AccountNumber#",
        "nip_bank_code": "000013"
      }
    ]
  }
}
Verification Category

Business & Corporate (CAC)

POST

/api/v1/verify/cac-basic

Basic Company Info

Fast, lightweight company information lookup returning registered company name, RC number, registration date, contact email/phone, and registered office address. Also accessible via /api/v1/verify/company-basic or /api/v1/verify/basic-company.

Parameter Type Status Description
rc_number string Conditional CAC registration number (e.g. RC-1000001 or 1000001). Required if company_name is not provided.
company_name string Conditional Registered company name (also accepts business_name). Required if rc_number is not provided.
reference string Optional Unique custom transaction reference string for auditing and requeries.
Request Sample (cURL):
curl -X POST "https://smartverify.me/api/v1/verify/cac-basic" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "rc_number": "RC-1000001",
    "reference": "TXN_CAC_BASIC_001"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "Basic company information lookup completed successfully",
  "service": "cac_basic_lookup",
  "reference": "TXN_CAC_BASIC_001",
  "cached": false,
  "fee_charged": 50,
  "wallet_balance": 24950,
  "execution_time_ms": 185,
  "data": {
    "company_id": 5000001,
    "company_name": "NORTHSTAR LOGISTICS LIMITED",
    "rc_number": "1000001",
    "raw_rc_number": "1000001",
    "registration_date": "2022-05-10T00:00:00.000+00:00",
    "email": "[email protected]",
    "phone_number": null,
    "street_number": "PLOT 4",
    "address": "SAMPLE COMMERCIAL CRESCENT",
    "branch_address": null,
    "lga": "Ikeja",
    "state": "LAGOS",
    "postcode": null,
    "full_address": "PLOT 4, SAMPLE COMMERCIAL CRESCENT, Ikeja, LAGOS"
  }
}
POST

/api/v1/verify/cac

Complete Business KYB & PSC

Performs a complete Corporate Affairs Commission (CAC) verification using an RC/BN/IT registration number or registered company name. Returns full entity status, nature of business, registered address & contact details, shareholders / Persons with Significant Control (shareholders), and a direct signed PDF download link (psc_report_pdf_url). Also accessible via /api/v1/verify/business and /api/v1/verify/company.

Parameter Type Status Description
rc_number string Conditional CAC registration number (e.g. RC-1000001, 1000001, BN-1000002). Required if business_name is not provided.
business_name string Conditional Registered business or company name (also accepts company_name). Required if rc_number is not provided.
classification_id integer Optional Filter by entity type: 1 (Business Name), 2 (Company), 3 (Incorporated Trustee), 4 (LP), 5 (LLP).
reference string Optional Unique custom transaction reference string for auditing and requeries.
Request Sample (cURL):
curl -X POST "https://smartverify.me/api/v1/verify/cac" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "rc_number": "RC-1000001",
    "reference": "TXN_CAC_001"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "CAC business verification completed successfully",
  "service": "cac_verification",
  "reference": "TXN_CAC_001",
  "cached": false,
  "fee_charged": 50,
  "wallet_balance": 24950,
  "execution_time_ms": 210,
  "data": {
    "company_name": "ACME DIGITAL VENTURES LTD",
    "rc_number": "1000001",
    "raw_rc_number": "1000001",
    "company_id": 5000001,
    "classification": "COMPANY",
    "classification_id": 2,
    "nature_of_business": "Software Development and Technology Consulting",
    "registration_date": "2023-06-15T09:00:00.000Z",
    "status": "ACTIVE",
    "email": "[email protected]",
    "phone_number": null,
    "street_number": "NO 12",
    "address": "DEMO INNOVATION WAY",
    "branch_address": null,
    "lga": "Ikeja",
    "state": "LAGOS",
    "postcode": null,
    "full_address": "NO 12, DEMO INNOVATION WAY, Ikeja, LAGOS",
    "psc_count": 1,
    "psc_report_pdf_url": "https://smartverify.me/api/v1/verify/cac/psc-report/5000001?signature=...",
    "shareholders": [
      {
        "id": 9000001,
        "full_name": "JOHN SAMPLE DOE",
        "surname": "DOE",
        "firstname": "JOHN",
        "other_name": "SAMPLE",
        "nationality": "NIGERIA",
        "gender": "MALE",
        "occupation": "BUSINESS",
        "date_of_birth": "1990-01",
        "address": "DEMO INNOVATION WAY",
        "city": "IKEJA",
        "lga": "Ikeja",
        "state": "LAGOS",
        "status": "ACTIVE",
        "date_of_appointment": "2023-06-15",
        "date_of_psc": "2023-06-14",
        "holds_shares_or_interest": true,
        "shares_percentage_direct": 100,
        "shares_percentage_indirect": 0,
        "total_shares_percentage": 100,
        "has_voting_rights": true,
        "voting_rights_percentage_direct": 100,
        "voting_rights_percentage_indirect": 0,
        "right_to_appoint_directors": true,
        "significant_influence": true,
        "is_pep": false
      }
    ]
  }
}
POST

/api/v1/verify/cac-account-match

KYB Account Match

Verifies a Nigerian business registration number against official Corporate Affairs Commission (CAC) records, resolves the supplied 10-digit NUBAN bank account holder name, and returns a normalized match_status (FULL_MATCH, PARTIAL_MATCH, or NO_MATCH) and match_percentage. Also accessible via /api/v1/verify/business-account-match.

Parameter Type Status Description
rc_number string Required CAC registration number (e.g. RC-1000001, 1000001, BN-1000002).
account_number string Required 10-digit Nigerian NUBAN corporate bank account number.
bank_code string Required CBN bank sort code (retrieve full codes from GET /api/v1/banks).
classification_id integer Optional Optional entity type filter: 1 (BN), 2 (Company), 3 (IT), 4 (LP), 5 (LLP).
reference string Optional Unique custom transaction reference string for auditing and requeries.
Request Sample (cURL):
curl -X POST "https://smartverify.me/api/v1/verify/cac-account-match" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "rc_number": "RC-1000001",
    "account_number": "0000000000",
    "bank_code": "058",
    "reference": "TXN_BIZ_MATCH_001"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "Business account name match completed successfully",
  "service": "cac_account_match",
  "reference": "TXN_BIZ_MATCH_001",
  "cached": false,
  "fee_charged": 50,
  "wallet_balance": 24900,
  "execution_time_ms": 245,
  "data": {
    "match_status": "FULL_MATCH",
    "match_percentage": 100,
    "account_name": "ACME DIGITAL VENTURES LIMITED",
    "business_name": "ACME DIGITAL VENTURES LTD",
    "rc_number": "1000001",
    "account_number": "0000000000",
    "bank_code": "058",
    "bank_name": "GTBank",
    "business_status": "ACTIVE",
    "classification": "COMPANY",
    "registration_date": "2023-06-15T09:00:00.000Z"
  }
}
POST

/api/v1/verify/cac-info-match

KYB Field Match

Matches any combination of supplied company and shareholder details against official CAC records. Supply rc_number plus at least 2 fields from: dob, email, full_address, business_name, phone, or personal_name. Also accessible via /api/v1/verify/business-info-match.

Parameter Type Status Description
rc_number string Required CAC registration number (e.g. RC-1000001).
personal_name / dob / email / phone / full_address / business_name string Min 2 Required Supply at least 2 fields to verify against CAC company & shareholder records. Only supplied fields are evaluated and returned in fields_matched.
reference string Optional Unique custom transaction reference string.
Request Sample (cURL):
curl -X POST "https://smartverify.me/api/v1/verify/cac-info-match" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "rc_number": "RC-1000001",
    "personal_name": "JOHN SAMPLE DOE",
    "dob": "1990-01-15",
    "email": "[email protected]",
    "reference": "TXN_BIZ_INFO_001"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "Business information match completed successfully",
  "service": "cac_info_match",
  "reference": "TXN_BIZ_INFO_001",
  "cached": false,
  "fee_charged": 50,
  "wallet_balance": 24850,
  "execution_time_ms": 180,
  "data": {
    "match_status": "FULL_MATCH",
    "match_percentage": 100,
    "total_fields_checked": 3,
    "matched_fields_count": 3,
    "fields_matched": {
      "personal_name": { "matched": true, "status": "FULL_MATCH", "match_percentage": 100 },
      "dob": { "matched": true, "status": "FULL_MATCH", "match_percentage": 100 },
      "email": { "matched": true, "status": "FULL_MATCH", "match_percentage": 100 }
    },
    "rc_number": "1000001",
    "business_name": "ACME DIGITAL VENTURES LTD",
    "psc_report_pdf_url": "https://smartverify.me/api/v1/verify/cac/psc-report/5000001?signature=..."
  }
}
POST

/api/v1/verify/cac-nin-match

KYB + NIN Match

Performs a Basic NIN Lookup on the supplied 11-digit NIN and matches the verified citizen identity (full name, date of birth, phone) against official CAC business and shareholder records. Also accessible via /api/v1/verify/business-nin-match.

Parameter Type Status Description
rc_number string Required CAC business registration number (e.g. RC-1000001).
nin string Required 11-digit National Identity Number of the business owner or director.
reference string Optional Unique custom transaction reference string.
Request Sample (cURL):
curl -X POST "https://smartverify.me/api/v1/verify/cac-nin-match" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "rc_number": "RC-1000001",
    "nin": "00000000001",
    "reference": "TXN_BIZ_NIN_001"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "Business NIN match completed successfully",
  "service": "cac_nin_match",
  "reference": "TXN_BIZ_NIN_001",
  "cached": false,
  "fee_charged": 100,
  "wallet_balance": 24750,
  "execution_time_ms": 220,
  "data": {
    "match_status": "FULL_MATCH",
    "match_percentage": 98,
    "matched_fields_count": 2,
    "fields_matched": {
      "personal_name": { "matched": true, "status": "FULL_MATCH", "match_percentage": 95 },
      "dob": { "matched": true, "status": "FULL_MATCH", "match_percentage": 100 }
    },
    "rc_number": "1000001",
    "business_name": "ACME DIGITAL VENTURES LTD"
  }
}
POST

/api/v1/verify/cac-bvn-match

KYB + BVN Match

Retrieves official BVN identity details for the supplied 11-digit BVN and cross-matches personal name, date of birth, email, phone number, and residential address against CAC business and shareholder records. Also accessible via /api/v1/verify/business-bvn-match.

Parameter Type Status Description
rc_number string Required CAC business registration number (e.g. RC-1000001).
bvn string Required 11-digit Bank Verification Number of the business owner or director.
reference string Optional Unique custom transaction reference string.
Request Sample (cURL):
curl -X POST "https://smartverify.me/api/v1/verify/cac-bvn-match" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "rc_number": "RC-1000001",
    "bvn": "00000000002",
    "reference": "TXN_BIZ_BVN_001"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "Business BVN match completed successfully",
  "service": "cac_bvn_match",
  "reference": "TXN_BIZ_BVN_001",
  "cached": false,
  "fee_charged": 150,
  "wallet_balance": 24600,
  "execution_time_ms": 265,
  "data": {
    "match_status": "FULL_MATCH",
    "match_percentage": 100,
    "matched_fields_count": 3,
    "fields_matched": {
      "personal_name": { "matched": true, "status": "FULL_MATCH", "match_percentage": 100 },
      "dob": { "matched": true, "status": "FULL_MATCH", "match_percentage": 100 },
      "email": { "matched": true, "status": "FULL_MATCH", "match_percentage": 100 }
    },
    "rc_number": "1000001",
    "business_name": "ACME DIGITAL VENTURES LTD"
  }
}
Verification Category

Telecom & Phone Services

POST

/api/v1/verify/phone-lookup

Subscriber Directory

Resolves subscriber registration identity, network carrier (MTN, Airtel, Glo, 9mobile), and KYC registration status for Nigerian mobile phone numbers.

Parameter Type Status Description
phone_number string Required Nigerian phone number in local (08000000003) or international (+2348000000003) format.
reference string Optional Unique custom transaction reference string for auditing and requeries.
Request Sample:
curl -X POST "https://smartverify.me/api/v1/verify/phone-lookup" \
  -H "X-API-KEY: sk_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "phone_number": "08000000003",
    "reference": "TXN_PHONE_007"
  }'
Response (200 OK):
{
  "status": "success",
  "message": "Phone number subscriber lookup completed successfully",
  "service": "phone_number_lookup",
  "reference": "TXN_PHONE_007",
  "cached": false,
  "fee_charged": 50,
  "wallet_balance": 24950,
  "execution_time_ms": 135,
  "data": {
    "phone_number": "08000000003",
    "formatted_international": "+2348000000003",
    "carrier": "MTN Nigeria",
    "line_type": "MOBILE",
    "line_status": "ACTIVE",
    "registered_name": "JANE DEMO OKAFOR",
    "state_of_registration": "Lagos",
    "nin_linked": true,
    "registration_date": "2019-04-18"
  }
}
Verification Category

Utilities & Developer Tools

GET

/api/v1/verify/reference/{reference}

Requery Utility

Re-queries and retrieves the full cached results and audit log of any past verification request using the unique transaction reference provided during the original call (billed at the standard anti-abuse requery fee). Requires your Secret Key (X-API-KEY).

Parameter Type Status Description
reference string (URL path) Required The custom reference string supplied when initiating the original verification call.
Request Sample:
curl -X GET "https://smartverify.me/api/v1/verify/reference/TXN_BVN_BIO_001" \
  -H "X-API-KEY: sk_live_your_key"
Response (200 OK):
{
  "status": "success",
  "message": "Verification request record retrieved successfully",
  "reference": "TXN_BVN_BIO_001",
  "service": "bvn_biometric_match",
  "endpoint": "/api/v1/verify/bvn-biometric",
  "is_success": true,
  "http_status": 200,
  "fee_charged": 10,
  "original_fee_charged": 100,
  "wallet_balance": 24890,
  "execution_time_ms": 18,
  "original_execution_time_ms": 320,
  "verified_at": "2026-11-20T21:40:00+01:00",
  "data": {
    "is_match": true,
    "similarity_score": 88.5,
    "bvn": "00000000002",
    "verified_name": "JOHN SAMPLE DOE"
  }
}
GET

/api/v1/wallet/balance

Account Utility

Retrieves your live developer wallet balance, currency, and dedicated virtual bank account details for instant account funding.

Parameter Type Status Description
No body or query parameters required. Authenticate using X-API-KEY header.
Request Sample:
curl -X GET "https://smartverify.me/api/v1/wallet/balance" \
  -H "X-API-KEY: sk_live_your_key"
Response (200 OK):
{
  "status": "success",
  "developer": {
    "name": "Acme Demo Technologies Ltd",
    "email": "[email protected]"
  },
  "wallet": {
    "currency": "NGN",
    "balance": 25000.00,
    "virtual_account": {
      "bank_name": "Wema Bank",
      "account_number": "0000000000",
      "account_name": "SMARTVERIFY / Acme Demo Technologies Ltd"
    }
  }
}