Account · Developer early access
Your LEAD developer account.
Account · Early access application
Tell us what you are building.
Account · Status
Where your application stands.
Account · API keys · test mode
Test keys for your server.
Account · SDK downloads
Six SDKs, one contract.
Account · Usage · last 30 days
How much you have called the API.
LEAD Playground · sandbox
Everything LEAD does, in one place you can try.
Run a lender’s day through the sandbox API, work the review queue, prove the audit trail, then call the API yourself.
Send real requests to the live sandbox, read the route and reasons, and verify the integrity fingerprints in your browser.
POST /api/v1/check → ChallengeBeat LEADEdit an application and try to get a PKR 60,000 loan past the live API without a second look.
/beat ↗ ContextWhere it fitsHow Easypaisa, JazzCash, Upstart and Cash App Borrow describe their lending flows, and where a LEAD check would sit.
/fit ↗- Sandbox stand-in model. The API runs a small formula-based model so you can try the interface. Results from our research (under review) come from the full trained detector: 0.78 of successful simulated edits caught at 5% false alarms, pooled over six benchmark datasets (best earlier method: 0.20), in a median of 1.6 ms.
- Synthetic data. The sample day is generated in your browser. Use made-up numbers only; the sandbox scores each request in memory and keeps no copy.
- Fingerprints, not signatures. Responses carry SHA-256 integrity fingerprints you can recompute. They show a response was not changed; they are not digital signatures.
- Research prototype. By Abdul Samie and Aafreen Zahra Kazmi (FAST-NUCES, 2026). In developer early access; no lender uses LEAD in production yet.
Workspace · Applications
Bring a day of applications. LEAD checks them all.
Workspace · Review queue
Second looks, strongest alarm first.
Workspace · Live monitor · real API calls
Watch applications arrive and get checked.
Press “Start stream”. Each row is one real POST to /api/v1/check from your browser.
One synthetic application every 0.7 s, each sent to /api/v1/check. The stream pauses while this tab is hidden.
Insights · Exposure scan
How many declined applicants are one small edit from a yes?
Insights · Edit trails
Not one application: a sequence of attempts.
Insights · Fairness audit · stage 8 of the method
Does LEAD ask some groups for more second looks?
Insights · Policy simulator
Change the rules, replay the day, see the cost.
Insights · Value meter
What LEAD is worth at your volume.
Insights · Learning loop
Every review teaches LEAD where to draw the line.
Insights · Adaptive LEAD
LEAD updates on every application, and guards against being taught wrong.
Trust · Tamper-evident audit ledger
Every decision chained. Change one, and the chain shows it.
Trust · Security & encryption · what is live today
The least data, sealed and provable.
| Control | Status | What it means |
|---|---|---|
| Encryption in transit | Live | Every call is HTTPS (TLS) only, with HSTS telling browsers never to fall back to plain HTTP. |
| Integrity fingerprints | Live | Each response carries audit.request_sha256 and audit.response_sha256. Keep the fingerprints in your logs instead of the data, and recompute later to detect changes. They are not signatures yet (see “Signed decisions”). The API console checks them in your browser. |
| Tamper-evident ledger | Live · in browser | The audit ledger hash-chains every decision of a loaded day with SHA-256, so a quietly changed entry breaks the chain. It runs in your browser on the sandbox results. |
| No identity data | Live | LEAD needs no name, CNIC, phone, contacts or photos: only the numbers your model already uses. |
| Keyless sandbox stores nothing | Live | Without a key, each request is scored in memory and no copy is kept. |
| Keyed calls: model state only | Live | With a key, LEAD keeps your learned model state server-side (profile statistics, the alarm line and a short rolling window of derived numbers such as log-income), plus usage counters. No names or identity data, and nothing a browser or app can read. |
| Hardened web headers | Live | nosniff, strict referrer policy, frame protection and camera/mic/location disabled on every page. |
| Secret keys | Live · early access | Issued only after an application is approved. Shown once, stored as a SHA-256 hash, revocable at any time; a revoked key is refused immediately (tested live). |
| Client tokens for apps | Live · early access | Your server swaps its secret key for an HMAC-signed lead_ct_… token that lasts 1–15 minutes and can only run /check. Batch, feedback and model calls refuse it (403), so a key never ships inside an app. |
| Accounts | Live | Firebase Authentication (email with verification, or Google). Applying needs a verified email; approvals are made by a named admin. |
| Server-only data | Live | Firestore security rules let you read only your own profile, application, key list and usage. Approvals, keys, usage and model state are written by the server alone. |
| Rate limits and quotas | Live | Per-key rate limit and monthly quota; responses report X-RateLimit-Remaining. |
| Guarded learning | Live | Adaptive LEAD learns only from low-alarm approvals, caps how far a burst can move it, checks itself against a fixed anchor and keeps versions you can roll back with POST /api/v1/model/rollback. |
| Gated SDK downloads | Live | Packages are served only to approved accounts through /api/v1/sdk; there is no public download link. |
| Where it runs | Live | The API runs on Vercel (US East); accounts and model state are in Firebase (US). Lenders with data-residency rules can run the lead-guard Python library inside their own systems instead. |
Don't send real customer data to the sandbox. Use made-up numbers, like the presets in the console.
Trust · Regulator pack & export
Take the results with you.
Build · Live console · real requests to the sandbox
Call the sandbox from your browser.
// Press “Send request”. This calls the real endpoint from your browser.
Build · Quickstart · about 2 minutes
Your first check, against the live sandbox.
Declared income, loan amount, term, and what the wallet shows. No name, CNIC or phone number.
Do the facts agree? Who does this look like? Is it hugging the pass mark or retrying?
route + reasonsapprove, second_look or decline, with the top reasons for your reviewers and your records.
Send an application
No key needed for the sandbox. Copy this and run it.
Read the route
approve → continue as normal. decline → your score already said no. second_look → pause the payout.
Send second looks to your review queue
Attach reasons so the analyst sees why. For Ayesha’s 55,000: “Declared income is 20% above the wallet inflow.” If you prefer, log the route first without acting on it and compare it with outcomes. See a review queue →
The sandbox runs the small stand-in model from the public demo so you can try the interface. Results from our research (under review) come from the full trained detector. LEAD is a research prototype by Abdul Samie and Aafreen Zahra Kazmi (FAST-NUCES, 2026) and is not deployed with any lender.
Build · API reference
Two endpoints, one stand-in model.
POST /api/v1/check · request body
| Field | Type | Notes |
|---|---|---|
application.declared_income | number | Monthly, as typed by the applicant (1,000–10,000,000) |
application.loan_amount | number | Requested principal (1,000–10,000,000) |
application.term_months | number | 1–120 |
evidence.wallet_monthly_inflow | number | What you can verify, e.g. average wallet inflow |
context.attempts_24h | integer | Optional (default 1). Applications from this applicant in 24 h |
POST /api/v1/batch
items | Up to 1,000 objects shaped like a /check body, each with an optional id |
summary | Counts of approve, second_look, decline, invalid |
results[] | id, route, alarm, score, lens signals and reason texts; or error for an invalid item |
GET /api/v1/check
Returns {"status":"ok"} and a usage example. The header status pill uses it.
| Field | Meaning |
|---|---|
route | approve · second_look · decline |
alarm | 0–1; a second look at or above alarm_line (0.5) |
score | Stand-in credit score, pass mark 60 |
lenses | Signal 0–1 and a reason for each lens |
reasons | Strongest reasons first, ready for a reviewer |
compute_ms | Server time spent on the check |
audit | SHA-256 fingerprints of the request and of the response without this block, plus issued_at. Not a signature. |
400 invalid_request | Missing or out-of-range fields; each one is listed |
400 invalid_json | Body is not JSON |
400 too_many | More than 1,000 items in a batch |
405 | Use POST (GET on /check returns a usage example) |
413 | Body over 4.5 MB (a platform limit): split into batches of up to 1,000 |
Build · From methodology to API · every field has a stage
Nothing in the response is decoration. Each field is a stage of the method.
| In the response | Lens in the story | Stage of the method | What the full detector does |
|---|---|---|---|
lenses.facts_agree | Do the facts agree? | 1 · Rule sheet | Validity domains, step limits and cross-field rules learned from the training split |
lenses.looks_like | Who does this look like? | 4 · LEAD checks | Ledoit–Wolf Mahalanobis distances to approved and declined profiles, in input space and TreeSHAP space |
lenses.on_the_line | Hugging the line, or knocking again? | 4 · Boundary closeness + 7 · Query monitor | Margin to the decision line, plus nearest-neighbour checks on recent near-identical queries |
alarm, alarm_line | Six clues → one alarm | 5 · Attack-likeness + 6 · Conformal fusion | Self-simulated attacks train a classifier; six conformal p-values merged with the Cauchy rule, calibrated so about 5 in 100 honest applicants get a second look |
reasons | The “why” a reviewer reads | 3 · One-pass explanation | Exact TreeSHAP attributions computed with the prediction |
route | Decide, or second look | 7 · Route, don’t reject | Alarms go to an adversarially trained copy of the model or to a person |
| audit (offline) | Fairness check | 8 · Fairness audit | Alarm and approval gaps across sex and age groups; worst gap 0.039 against a 0.05 target |
The sandbox approximates each lens with simple formulas so the interface can be tried; the full detector computes them as described in Section IV of our research write-up (under review).
Build · Deployment · what you can use today
Four ways to run LEAD, all live in early access.
One HTTPS call after your model scores: POST /api/v1/check with your secret key. Every response carries the route, the alarm, reasons, all 11 algorithm signals (8 computed in the API) and SHA-256 fingerprints. Runs on Vercel, US East.
Your server mints a short-lived client token (POST /api/v1/client-token); the app checks with it using the Android, iOS, React Native, Flutter or JavaScript SDK. Secret keys never ship in apps.
lead-guard runs the full research detector next to your XGBoost, LightGBM or CatBoost model, trained on your own data, with no network hop and no data leaving your systems. Includes adaptive learning.
Send up to 1,000 applications in one POST /api/v1/batch call, for example yesterday's approvals, and get a route and reasons for each plus a summary.
Packages download from SDK downloads after approval. Versions, minimums and tested code in 14 languages: Compatibility.