For developers
The interface is the smallest part of the answer.
The rule engine is a pure function — no network, no model, no clock. That is what makes it something other than a website: the same check can run inside EPFO's member portal before Submit, or inside an employer's HRMS at exit, where the missing exit date is actually created. This endpoint is that check, unauthenticated and side-effect free.
v1.0.0 · 9 rules · 7 sources
/api/preflightThe contract
Returns the rule ids the engine can produce, the full source registry with verification dates, the disclaimer, and a worked example you can POST straight back.
curl
curl -sS https://nivaaran.app/api/preflight/api/preflightThe check
POST the shape of a member record and get back every blocker, who owns it, how long the fix takes, and the rule it came from. It needs no identifier — not a UAN, not an Aadhaar number, not a full account number.
Request body
{
"intent": "final_settlement",
"daysSinceExit": 68,
"exitDateFiled": "no",
"uanAadhaarVerified": "yes",
"uanBeforeOct2017": "yes",
"multipleUans": "no",
"serviceYears": 3,
"claimAmount": 142000,
"panOnRecord": true,
"records": {
"epfo": {
"name": "RAJESH K SHARMA",
"dob": "1996-03-08",
"ifsc": "CORP0001234",
"accountLast4": "8842"
},
"aadhaar": {
"name": "Rajesh Kumar Sharma",
"dob": "1996-03-08"
},
"bank": {
"name": "Rajesh Kumar Sharma",
"ifsc": "CORP0001234",
"accountLast4": "8842"
}
}
}Response
{
apiVersion: "v1",
verdict: "clear" | "fixable" | "blocked_external",
findings: [{
ruleId: string, // e.g. "R-NAME-AADHAAR"
gate: "identity" | "kyc" | "employment"
| "eligibility" | "banking" | "tax",
severity: "blocker" | "warning" | "info",
owner: "citizen" | "employer" | "epfo" | "time",
title: { en, hi }, // every string is bilingual
why: { en, hi },
evidence?: { ... }, // the token-level diff, when there is one
fix: {
summary: { en, hi }, steps: [{ en, hi }],
minutes: number, // active effort
waitDays?: number, // queue time after you act
cost: { en, hi }, officialUrl?: string, caveat?: { en, hi }
},
source: { id, url, verifiedOn, confidence }
}],
counts: { blockers, warnings, infos },
minutesToFix: number, // citizen-owned effort only
owners: Owner[],
engineVersion: string,
evaluatedAt: string, // ISO
disclaimer: string
}curl
curl -sS https://nivaaran.app/api/v1/preflight \
-H 'content-type: application/json' \
-d '{"intent":"final_settlement","daysSinceExit":68,"exitDateFiled":"no","uanAadhaarVerified":"yes","uanBeforeOct2017":"yes","multipleUans":"no","serviceYears":3,"claimAmount":142000,"panOnRecord":true,"records":{"epfo":{"name":"RAJESH K SHARMA","dob":"1996-03-08","ifsc":"CORP0001234","accountLast4":"8842"},"aadhaar":{"name":"Rajesh Kumar Sharma","dob":"1996-03-08"},"bank":{"name":"Rajesh Kumar Sharma","ifsc":"CORP0001234","accountLast4":"8842"}}}'Run it against your own session
This posts the record from the journey you are in the middle of, to the live endpoint, and prints what comes back. Nothing is stored at either end.
You have no session yet, so this runs the example record instead. Start the check to use your own. Start the check
Versions, limits and errors
- Paths
/api/v1/preflight
/api/preflight
The same handler. Pin v1 for anything new; the unversioned path has been documented since the first build, so it stays.
- Authentication
None
It stores nothing, needs no personal identifier and logs no payload, so it needs no key. Send synthetic data only.
- Rate limit
30 per minute
Per client address, with a 32 KB body ceiling. This is prototype infrastructure, not a production SLA.
Every error comes back in one shape: a machine-readable code, a sentence you can put in front of a person, and a request id they can quote. No stack traces, no internal detail.
Error
HTTP 422
{
"error": {
"code": "INVALID_REQUEST", // INVALID_REQUEST | RATE_LIMITED
// | NOT_FOUND | INTERNAL_ERROR ...
"message": "The member record did not match the expected shape.",
"requestId": "8f3c...", // quote this
"fields": { // present only on a validation failure
"records.epfo.dob": "expected YYYY-MM-DD"
}
}
}What this endpoint is, and is not
It is advisory. EPFO makes the final decision on any claim, and a clear result removes the known causes of rejection rather than guaranteeing anything. It is unauthenticated and stateless: it stores nothing, logs no payload, and touches no government system. The rules are best-effort readings of public sources, each carrying its own confidence — send synthetic data only.