Authentication
All requests to the afihan API are authenticated using an API key — no OAuth, no bearer tokens.
Your two keys
Every account has two separate keys:
- Test key (
LV_TEST_...) — available immediately after signup.
Use this while building and testing your integration. No real
verification checks are performed and nothing is billed. - Live key (
LV_LIVE_...) — unlocked once your business
verification is approved (see Quick Start). Use this for real
transactions in production.
Making an authenticated request
Pass your key in the api-key header on every request:
curl https://api.lendoverify.com/customers/identities/bvn \
-H "api-key: LV_TEST_xxxxxxxxxxxx" \
-d "bvn=12345678901"The key you use determines the mode of the request — a test key always
hits test mode, a live key always hits live mode. You don't need to
set mode separately.
Invalid or missing keys
A request with a missing or unrecognized api-key header returns:
{
"status": false,
"message": "Invalid API Key"
}
with a 401 Unauthorized status.
Rotating a key
If a key is compromised, regenerate it from your dashboard's API
settings. The old key stops working immediately — update your
integration with the new one before rotating in production.
Keep your keys secret
Never expose your LV_LIVE_ key in client-side code, public
repositories, or logs. Treat it like a password.
Updated about 2 months ago
