BankPredict.ng
API Reference

Start small. Integrate fast.

The current integration surface is intentionally small. Use the dashboard to create an API key, check your credit balance, then call the predict endpoint from your application.

Base URL
/v1
Auth
X-API-Key
Billing
Predicted only

Integration flow

Keep the dashboard for account setup. Keep your app focused on the runtime calls.

01

Create your API key

Log into the dashboard once, create a key, and keep it on the server side.

02

Check available credits

Use GET /v1/balance to confirm available credits before sending traffic.

03

Call predict

Send a 10-digit Nigerian account number to POST /v1/predict.

Endpoints

These are the core routes external developers need right now.

GET
/v1/balance

Returns the logged-in account's remaining credits. This route uses the dashboard session cookie, so it is mainly useful for your internal dashboard or operator tooling.

What it returns

  • Current available credit balance
  • Associated user identity

When to use it

  • Show account balance in your dashboard
  • Confirm a user has credits before usage
curl Dashboard session cookie required
curl "http://127.0.0.1:3000/v1/balance" \
  --cookie cookies.txt
POST
/v1/predict

Predicts the Nigerian bank or candidate banks for a 10-digit account number. Send your API key in X-API-Key. A credit is only consumed when the result resolves to predicted.

Request body

  • account_number: required 10-digit string

Headers

  • X-API-Key: required
  • Content-Type: application/json
curl Consumes 1 credit only on predicted
curl -X POST "http://127.0.0.1:3000/v1/predict" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "account_number": "0123456789"
  }'

Response states

The predict endpoint always resolves into one of three clear outcomes.

Predicted

A single verified or high-confidence bank match was found.

status: predicted

Partial

The service narrowed the result to candidate banks but could not fully resolve one.

status: partial

Unresolved

The account number could not be resolved into a useful prediction.

status: unresolved
json Predict response shape
{
  "status": "predicted" | "partial" | "unresolved",
  "account_number": "0123456789",
  "banks": [
    {
      "bank_code": "044",
      "bank_name": "Access Bank",
      "confidence": "high" | "low"
    }
  ]
}