Business
Employment history by UAN
Fetch the EPFO member profile and every establishment a person has worked at, from their UAN.
POST
/
v2
/
verify
/
employment_history
Fetch EPFO employment history
curl --request POST \
--url https://prod.idto.ai/v2/verify/employment_history \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-Client-ID: <api-key>' \
--data '
{
"uan": "000111222333",
"user_id": "customer-001"
}
'const options = {
method: 'POST',
headers: {
'X-Client-ID': '<api-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({uan: '000111222333', user_id: 'customer-001'})
};
fetch('https://prod.idto.ai/v2/verify/employment_history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {
'X-Client-ID': '<api-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({uan: '000111222333', user_id: 'customer-001'})
};
fetch('https://prod.idto.ai/v2/verify/employment_history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod.idto.ai/v2/verify/employment_history"
payload = {
"uan": "000111222333",
"user_id": "customer-001"
}
headers = {
"X-Client-ID": "<api-key>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://prod.idto.ai/v2/verify/employment_history"
payload := strings.NewReader("{\n \"uan\": \"000111222333\",\n \"user_id\": \"customer-001\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Client-ID", "<api-key>")
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://prod.idto.ai/v2/verify/employment_history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'uan' => '000111222333',
'user_id' => 'customer-001'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-Client-ID: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://prod.idto.ai/v2/verify/employment_history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Client-ID"] = '<api-key>'
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"uan\": \"000111222333\",\n \"user_id\": \"customer-001\"\n}"
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.post("https://prod.idto.ai/v2/verify/employment_history")
.header("X-Client-ID", "<api-key>")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"uan\": \"000111222333\",\n \"user_id\": \"customer-001\"\n}")
.asString();{
"status": "success",
"message": "Employment history fetched successfully.",
"error_code": null,
"data": {
"uan": "000111222333",
"profile": {
"name": "RAHUL SHARMA",
"gender": "MALE",
"date_of_birth": "1990-01-01"
},
"employment_history": [
{
"member_id": "KABLR00112340000012345",
"establishment_id": "KABLR0011234000",
"establishment_name": "SAMPLE PRIVATE LIMITED",
"date_of_joining": "2022-01-10",
"date_of_exit": null,
"is_current_employment": true
},
{
"member_id": "KABLR00198760000054321",
"establishment_id": "KABLR0019876000",
"establishment_name": "SAMPLE SOLUTIONS PRIVATE LIMITED",
"date_of_joining": "2019-06-01",
"date_of_exit": "2021-12-31",
"is_current_employment": false
}
]
},
"billed": true,
"tranx_id": "8f14e45f-ceea-467e-bd93-4a2c11e0a1b2",
"timestamp": "2026-09-14T10:15:30Z"
}Fetch a person’s EPFO member profile (name, gender, date of birth) and their employment history: one record per establishment, with member id, establishment id and name, joining date and exit date, newest first. Use it to confirm a borrower’s current employer or a candidate’s past employers.
The only input is the 12-digit UAN. Anything else is rejected with
Branch on
Questions about employment lookups are answered in the Business FAQ.
Was this page helpful? Email us at tech@idto.ai with the page link.
IDTO_001 before any lookup and is not billed. Dates are returned as YYYY-MM-DD, or null when the source has no usable date. is_current_employment is true when the record has no exit date; it reflects the EPF record, not proof of active payroll.
Environments
| Environment | Base URL | Notes |
|---|---|---|
| Production | https://prod.idto.ai | Keys from the dashboard after go-live. Billed. |
| Staging | https://dev.idto.ai | Keys on request from your idto account manager. Calls reach live sources, so use identities you are authorised to verify. Staging credits are deducted from your staging account. |
Errors
| Code | HTTP | Message | Billed |
|---|---|---|---|
IDTO_202 | 200 | No EPFO employment record found for the provided UAN. | Yes |
IDTO_001 | 400 | Invalid UAN. Please provide a valid 12-digit UAN. | No |
IDTO_001 | 422 | Invalid request. The body is missing uan, or uan is longer than 12 characters. | No |
IDTO_004 | 409 | An identical request is already in progress; retry shortly. | No |
IDTO_006 | 429 | Too many requests. Please wait a moment and retry. | No |
IDTO_007 | 500 | Verification could not be completed due to a service configuration issue. Please contact support at tech@idto.ai. | No |
null | 400 | Insufficient credits for this operation. (your idto balance is too low; recharge and retry) | No |
IDTO_010 | 422 | Idempotency-Key was already used with a different request body. | No |
IDTO_008 | 503 | The verification service is facing downtime due to issues from the source. Please drop a mail to tech@idto.ai, and try again later. | No |
error_code, not on status: a no-record result is status: "success" with an error_code. Full list in v2 error codes.
Retries
Send anIdempotency-Key header (up to 255 characters) to make retries safe. Replaying the same key with the same body returns the stored result without running or billing the verification again. The same key with a different body returns IDTO_010; a replay while the first call is still running returns IDTO_004. If the first call returned an error, nothing is stored and a retry runs the verification again.
Test scenarios
Use these input classes in staging to exercise each outcome.| Input | Expected result | Billed |
|---|---|---|
| UAN with EPF contributions | error_code: null, data filled | Yes |
| 12-digit UAN with no EPFO record | IDTO_202, data: null | Yes |
uan empty or blank | IDTO_001 (400) | No |
uan with letters or fewer than 12 digits | IDTO_001 (400) | No |
uan longer than 12 characters, or missing | IDTO_001 (422) | No |
Same Idempotency-Key, different body | IDTO_010 (422) | No |
Was this page helpful? Email us at tech@idto.ai with the page link.
Authorizations
Headers
Make retries of this exact request safe. If the same key is replayed with an identical request body, the original result is returned without re-running the verification or billing again. If the same key is replayed with a different body, the request is rejected with IDTO_010 (422). Omitting this header runs every request as new.
Maximum string length:
255Body
application/json
Response
The EPFO lookup ran to completion.
Last modified on December 1, 2026
Fetch EPFO employment history
curl --request POST \
--url https://prod.idto.ai/v2/verify/employment_history \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--header 'X-Client-ID: <api-key>' \
--data '
{
"uan": "000111222333",
"user_id": "customer-001"
}
'const options = {
method: 'POST',
headers: {
'X-Client-ID': '<api-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({uan: '000111222333', user_id: 'customer-001'})
};
fetch('https://prod.idto.ai/v2/verify/employment_history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {
'X-Client-ID': '<api-key>',
'X-API-Key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({uan: '000111222333', user_id: 'customer-001'})
};
fetch('https://prod.idto.ai/v2/verify/employment_history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://prod.idto.ai/v2/verify/employment_history"
payload = {
"uan": "000111222333",
"user_id": "customer-001"
}
headers = {
"X-Client-ID": "<api-key>",
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://prod.idto.ai/v2/verify/employment_history"
payload := strings.NewReader("{\n \"uan\": \"000111222333\",\n \"user_id\": \"customer-001\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Client-ID", "<api-key>")
req.Header.Add("X-API-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://prod.idto.ai/v2/verify/employment_history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'uan' => '000111222333',
'user_id' => 'customer-001'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>",
"X-Client-ID: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://prod.idto.ai/v2/verify/employment_history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Client-ID"] = '<api-key>'
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"uan\": \"000111222333\",\n \"user_id\": \"customer-001\"\n}"
response = http.request(request)
puts response.read_bodyHttpResponse<String> response = Unirest.post("https://prod.idto.ai/v2/verify/employment_history")
.header("X-Client-ID", "<api-key>")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"uan\": \"000111222333\",\n \"user_id\": \"customer-001\"\n}")
.asString();{
"status": "success",
"message": "Employment history fetched successfully.",
"error_code": null,
"data": {
"uan": "000111222333",
"profile": {
"name": "RAHUL SHARMA",
"gender": "MALE",
"date_of_birth": "1990-01-01"
},
"employment_history": [
{
"member_id": "KABLR00112340000012345",
"establishment_id": "KABLR0011234000",
"establishment_name": "SAMPLE PRIVATE LIMITED",
"date_of_joining": "2022-01-10",
"date_of_exit": null,
"is_current_employment": true
},
{
"member_id": "KABLR00198760000054321",
"establishment_id": "KABLR0019876000",
"establishment_name": "SAMPLE SOLUTIONS PRIVATE LIMITED",
"date_of_joining": "2019-06-01",
"date_of_exit": "2021-12-31",
"is_current_employment": false
}
]
},
"billed": true,
"tranx_id": "8f14e45f-ceea-467e-bd93-4a2c11e0a1b2",
"timestamp": "2026-09-14T10:15:30Z"
}