LEADPlayground

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.

Read this first
  • 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.
See the borrower’s side: the phone demo ↗

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.

timeidwhat came inrouteround trip

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.

ControlStatusWhat it means
Encryption in transitLiveEvery call is HTTPS (TLS) only, with HSTS telling browsers never to fall back to plain HTTP.
Integrity fingerprintsLiveEach 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 ledgerLive · in browserThe 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 dataLiveLEAD needs no name, CNIC, phone, contacts or photos: only the numbers your model already uses.
Keyless sandbox stores nothingLiveWithout a key, each request is scored in memory and no copy is kept.
Keyed calls: model state onlyLiveWith 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 headersLivenosniff, strict referrer policy, frame protection and camera/mic/location disabled on every page.
Secret keysLive · early accessIssued 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 appsLive · early accessYour 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.
AccountsLiveFirebase Authentication (email with verification, or Google). Applying needs a verified email; approvals are made by a named admin.
Server-only dataLiveFirestore 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 quotasLivePer-key rate limit and monthly quota; responses report X-RateLimit-Remaining.
Guarded learningLiveAdaptive 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 downloadsLivePackages are served only to approved accounts through /api/v1/sdk; there is no public download link.
Where it runsLiveThe 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.

Request · POST /api/v1/check⌘/Ctrl + Enter
Response
// Press “Send request”. This calls the real endpoint from your browser.
This session

Build · Quickstart · about 2 minutes

Your first check, against the live sandbox.

You sendApplication + evidence

Declared income, loan amount, term, and what the wallet shows. No name, CNIC or phone number.

LEAD checksThree lenses

Do the facts agree? Who does this look like? Is it hugging the pass mark or retrying?

You getroute + reasons

approve, second_look or decline, with the top reasons for your reviewers and your records.

1

Send an application

No key needed for the sandbox. Copy this and run it.

2

Read the route

approve → continue as normal. decline → your score already said no. second_look → pause the payout.

3

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
FieldTypeNotes
application.declared_incomenumberMonthly, as typed by the applicant (1,000–10,000,000)
application.loan_amountnumberRequested principal (1,000–10,000,000)
application.term_monthsnumber1–120
evidence.wallet_monthly_inflownumberWhat you can verify, e.g. average wallet inflow
context.attempts_24hintegerOptional (default 1). Applications from this applicant in 24 h
POST /api/v1/batch
itemsUp to 1,000 objects shaped like a /check body, each with an optional id
summaryCounts 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.

Response
FieldMeaning
routeapprove · second_look · decline
alarm0–1; a second look at or above alarm_line (0.5)
scoreStand-in credit score, pass mark 60
lensesSignal 0–1 and a reason for each lens
reasonsStrongest reasons first, ready for a reviewer
compute_msServer time spent on the check
auditSHA-256 fingerprints of the request and of the response without this block, plus issued_at. Not a signature.
Errors
400 invalid_requestMissing or out-of-range fields; each one is listed
400 invalid_jsonBody is not JSON
400 too_manyMore than 1,000 items in a batch
405Use POST (GET on /check returns a usage example)
413Body 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 responseLens in the storyStage of the methodWhat the full detector does
lenses.facts_agreeDo the facts agree?1 · Rule sheetValidity domains, step limits and cross-field rules learned from the training split
lenses.looks_likeWho does this look like?4 · LEAD checksLedoit–Wolf Mahalanobis distances to approved and declined profiles, in input space and TreeSHAP space
lenses.on_the_lineHugging the line, or knocking again?4 · Boundary closeness + 7 · Query monitorMargin to the decision line, plus nearest-neighbour checks on recent near-identical queries
alarm, alarm_lineSix clues → one alarm5 · Attack-likeness + 6 · Conformal fusionSelf-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
reasonsThe “why” a reviewer reads3 · One-pass explanationExact TreeSHAP attributions computed with the prediction
routeDecide, or second look7 · Route, don’t rejectAlarms go to an adversarially trained copy of the model or to a person
audit (offline)Fairness check8 · Fairness auditAlarm 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.

Live · sandbox + early accessCloud API from your server

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.

Live · early accessMobile and web apps

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.

Live · early accessIn-process Python library

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.

Live · sandbox + early accessBatch review

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.