EPFO / UAN Verification API
After the employee shares an EPFO OTP, returns their UAN, name, current employer, full employment history with dates and recent PF contribution details.
- Source
- EPFO member records
- Turnaround
- Real time once the employee enters the OTP; slower near month end
- Endpoint
- POST /v1/epfo/passbook
- Who can use it
- Lenders, employers and screening firms with the employee's OTP-based consent.
Overview
Salary slips and offer letters are easy to fake. EPFO records aren't. With an OTP from the employee, this API fetches their UAN details from EPFO: their name, current and past employers, joining and exit dates and recent PF contributions. Lenders use it to confirm salaried income; HR teams use it to confirm work history.
Good to know
Only covers employees under EPF. Contributions are a rough guide to wages, not the actual salary.
What you get
- Employer from EPFOThe establishment name comes from PF filings, not from what the applicant typed.
- Full job historyEvery employer under the UAN with dates, so gaps and overlaps show up.
- Contribution trendRecent months of PF contributions tell you the job is current and roughly what it pays.
- OTP-based consentThe employee shares an EPFO OTP, so access is clearly with their consent.
Request
POST https://api.ampletrails.com/v1/epfo/passbook
| Field | Type | Status | Description |
|---|---|---|---|
mobile | string | Required | Mobile number linked to the UAN |
uan | string | Optional | Universal Account Number, if known |
otp | string | Optional | EPFO OTP from the employee (second step) |
consent | string | Required | Y when the employee has consented |
Response
Fields inside data. Every response also carries status, request_id and, on errors, message. See error codes.
| Field | Meaning | Example |
|---|---|---|
uan | Universal Account Number | 100123456789 |
name | Member name in EPFO records | RAVI KUMAR |
current_employer | Most recent establishment name | Example Technologies Pvt Ltd |
date_of_joining | Joining date at the current employer | 2022-04-01 |
employment_history | List of past establishments with joining and exit dates | […] |
last_contribution_month | Most recent month with a PF contribution | 2026-11 |
avg_monthly_contribution | Average employee share over the last 6 months, in ₹ | 3600 |
Example
curl -X POST https://api.ampletrails.com/v1/epfo/passbook \
-H "Authorization: Bearer $AMPLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"mobile": "9876543210", "uan": "100123456789", "otp": "123456", "consent": "Y"}'import os, requests
resp = requests.post(
"https://api.ampletrails.com/v1/epfo/passbook",
headers={"Authorization": f"Bearer {os.environ['AMPLE_API_KEY']}"},
json={
"mobile": "9876543210",
"uan": "100123456789",
"otp": "123456",
"consent": "Y"
},
timeout=30,
)
resp.raise_for_status()
print(resp.json()["data"])const resp = await fetch("https://api.ampletrails.com/v1/epfo/passbook", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AMPLE_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"mobile": "9876543210",
"uan": "100123456789",
"otp": "123456",
"consent": "Y"
}),
});
const { data } = await resp.json();$ch = curl_init("https://api.ampletrails.com/v1/epfo/passbook");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("AMPLE_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["mobile" => "9876543210", "uan" => "100123456789", "otp" => "123456", "consent" => "Y"]),
]);
$data = json_decode(curl_exec($ch), true)["data"];{
"status": "success",
"request_id": "req_7f3a9c21e4",
"data": {
"uan": "100123456789",
"name": "RAVI KUMAR",
"current_employer": "Example Technologies Pvt Ltd",
"date_of_joining": "2022-04-01",
"employment_history": "[…]",
"last_contribution_month": "2026-11",
"avg_monthly_contribution": 3600
}
}Example data. The exact field list for your account comes with your sandbox documentation.
Use cases
Salaried personal loans
Confirm the employer and that contributions are still coming in before you disburse.
Background verification
Check claimed experience against EPFO history instead of calling old HR departments.
Tenant screening
Co-living and rental platforms check that a tenant's job is real and current.
Questions about this API
What if the employee doesn't have a UAN?
Smaller firms below the EPF threshold, government and some PSU staff, and the self-employed won't have EPFO records. Use bank statements or ITR instead.
Why is the latest month missing?
Employers file PF returns monthly and some file late. A gap of one or two months is normal; a longer one is worth asking about.
Does it show the salary?
Not directly. It shows PF contributions, which are based on wages and often capped at ₹15,000 basic, so treat it as a floor, not exact pay.
What if the EPFO portal is slow?
It does slow down around month end. We return a source_unavailable error and you can retry or let the user come back.
Try the EPFO / UAN Verification API
Sandbox keys, the full field reference and a Postman collection, usually within a working day.