Endpoint
POST /v1/verify/voter-id
POST
/v1/verify/voter-idScope verification.voter.read₹5 per successful callLiveValidates and verifies a Voter ID. Requires the verification.voter.read scope on the API key. Metered as voter.verify after a successful response - usage is only recorded (and the fulfilment wallet debited, for priced services) once verification completes successfully. The response below is the exact real shape returned by /v1/verify/voter-id, including its referenceId field.
Request
Request parameters
| Field | Type | Description |
|---|---|---|
Authorizationrequired | header | Bearer <api-key> (e.g. sk_test_... in sandbox, sk_live_... in production). The x-api-key header is also accepted. |
voterIdrequired | string | EPIC / Voter ID number, format ABC1234567. |
name | string | Name to match against records. |
Example
Make the call
curl -X POST "https://api-b2b.stampmitra.in/v1/verify/voter-id" \
-H "Authorization: Bearer sk_test_xxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"voterId":"UAI4574761","name":"HARSHIT PRAJAPATI"}'Playground
Try it
Response
Response example
ResponseJSON
{
"referenceId": "SMV-20260927-7H83M1",
"verificationId": "VRF-4C8P2WJ6ZK9T",
"valid": true,
"status": "VALID",
"epicNumber": "UAI4574761",
"name": "HARSHIT PRAJAPATI",
"nameInRegionalLang": "हर्षित",
"age": "23",
"relationType": "FTHR",
"relationName": "RAJ PRAJAPATI",
"relationNameInRegionalLang": "राज",
"fatherName": "RAJ PRAJAPATI",
"dob": "2000-12-07",
"gender": "Male",
"address": "GOVT JUNIOR COLLEGE SIRWAR",
"photoUrl": "https://example.com/voter-photos/UAI4574761.jpeg",
"splitAddress": {
"district": [
"INDORE"
],
"state": [
"Madhya Pradesh"
],
"city": [
"SANER"
],
"pincode": "560034",
"country": [
"IN",
"IND",
"INDIA"
],
"addressLine": "GOVT JUNIOR COLLEGE SIRWAR"
},
"state": "Madhya Pradesh",
"assemblyConstituencyNumber": "211",
"assemblyConstituency": "SANER",
"parliamentaryConstituencyNumber": "25",
"parliamentaryConstituency": "INDORE",
"partNumber": "27",
"partName": "SIRWAR",
"serialNumber": "713",
"pollingStation": "GOVT JUNIOR COLLEGE SIRWAR"
}| Field | Type | Description |
|---|---|---|
referenceId | string | StampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result. |
verificationId | string | StampMitra's own id for this verification (VRF- followed by 12 base32 characters). Generated for every call, unique to it. Always present. Quote it in support requests. |
valid | boolean | Whether the voter ID is valid. Always present. |
status | string | Outcome of the lookup: VALID or INVALID. |
epicNumber | string | The voter ID (EPIC) number that was looked up. |
name | string | The voter's registered name, when the voter ID is valid. |
nameInRegionalLang | string | The voter's name in the regional language of the roll. |
age | string | The voter's age in years, as a string, when available. |
relationType | string | Type of the relation named on the roll (for example FTHR for father, HUSB for husband). |
relationName | string | Name of the relative named on the roll. |
relationNameInRegionalLang | string | The relative's name in the regional language of the roll. |
fatherName | string | The voter's father's name, when the roll gives it. |
dob | string | The voter's date of birth, ISO yyyy-mm-dd, when the roll has one. |
gender | string | The voter's gender, when the voter ID is valid. |
address | string | The registered address as one line, when the voter ID is valid. |
photoUrl | string | A link to the voter photo, when the roll has one. A link only, never image data; it can expire, so fetch it promptly. |
splitAddress | object | The registered address split into parts. |
splitAddress.district | array | District(s). |
splitAddress.state | array | State name(s), as a flat list. |
splitAddress.city | array | City or town name(s). |
splitAddress.pincode | string | PIN code. |
splitAddress.country | array | Country, as the codes and name given by the registry. |
splitAddress.addressLine | string | The address as one line. |
state | string | The registered state, when the voter ID is valid. |
assemblyConstituencyNumber | string | Assembly constituency number. |
assemblyConstituency | string | Assembly constituency name. |
parliamentaryConstituencyNumber | string | Parliamentary constituency number. |
parliamentaryConstituency | string | Parliamentary constituency name. |
partNumber | string | Part number of the electoral roll. |
partName | string | Part name of the electoral roll. |
serialNumber | string | Serial number of the voter within the part. |
pollingStation | string | Name of the polling station. |
Errors
Error responses
401Missing or invalid API key
{
"error": {
"code": "UNAUTHORIZED",
"message": "Missing or invalid API key.",
"requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
}
}403Valid key, missing required scope
{
"error": {
"code": "FORBIDDEN",
"message": "API key is valid but lacks the required scope for this endpoint.",
"requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
}
}400Validation error
{
"error": {
"code": "BAD_REQUEST",
"message": "voterId must match the format ABC1234567",
"requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
}
}402Insufficient wallet balance
{
"error": {
"code": "PAYMENT_REQUIRED",
"message": "Insufficient fulfilment wallet balance to cover this call.",
"requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
}
}429Rate limited
{
"error": {
"code": "TOO_MANY_REQUESTS",
"message": "Rate limit exceeded: 60 requests per 60 seconds for this endpoint.",
"requestId": "a1b2c3d4-e5f6-4a1b-8c2d-9f0e1a2b3c4d"
}
}502Upstream verification service unreachable
{
"error": {
"code": "INTERNAL_ERROR",
"message": "Unable to reach the order/customer service right now",
"requestId": "5c1c1e9e-2f7b-4b7a-9b0e-0f1a2b3c4d5e"
}
}Notes
Good to know
Note
Input format is validated up front - a malformed pan/gstin/etc. fails fast with a 400 rather than being submitted for verification. referenceId (format SMV-YYYYMMDD-XXXXXXX) is StampMitra's own transaction id for this call and is always present, including on a negative (valid: false / found: false) result - both positive and negative determinations are completed, billable verifications. This is not an idempotency key. verificationId (format VRF-XXXXXXXXXXXX) is StampMitra's own id for this verification, generated for every call; quote it in support requests. Every field except referenceId, verificationId and valid is optional and is omitted when the electoral roll does not provide it. Dates are ISO yyyy-mm-dd strings and age is a string. photoUrl is a link only, never image data, and can expire. The voter's personal details are masked in your call records; the response itself carries them in full.