StampMitraDevelopers
LiveVerification API

Verify Voter ID

Verify a Voter ID in real time.

Pricing, how it works and related APIs: Voter ID product page. Integrate with AI: copy the ready-made prompt. Markdown version: voter-id.md.

Endpoint

POST /v1/verify/voter-id

POST/v1/verify/voter-idScope verification.voter.read₹5 per successful callLive

Validates 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

Request parameters
FieldTypeDescription
AuthorizationrequiredheaderBearer <api-key> (e.g. sk_test_... in sandbox, sk_live_... in production). The x-api-key header is also accepted.
voterIdrequiredstringEPIC / Voter ID number, format ABC1234567.
namestringName 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"
}
Response fields
FieldTypeDescription
referenceIdstringStampMitra's own transaction id for this call (SMV-YYYYMMDD-XXXXXXX). Always present, including on a negative result.
verificationIdstringStampMitra'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.
validbooleanWhether the voter ID is valid. Always present.
statusstringOutcome of the lookup: VALID or INVALID.
epicNumberstringThe voter ID (EPIC) number that was looked up.
namestringThe voter's registered name, when the voter ID is valid.
nameInRegionalLangstringThe voter's name in the regional language of the roll.
agestringThe voter's age in years, as a string, when available.
relationTypestringType of the relation named on the roll (for example FTHR for father, HUSB for husband).
relationNamestringName of the relative named on the roll.
relationNameInRegionalLangstringThe relative's name in the regional language of the roll.
fatherNamestringThe voter's father's name, when the roll gives it.
dobstringThe voter's date of birth, ISO yyyy-mm-dd, when the roll has one.
genderstringThe voter's gender, when the voter ID is valid.
addressstringThe registered address as one line, when the voter ID is valid.
photoUrlstringA link to the voter photo, when the roll has one. A link only, never image data; it can expire, so fetch it promptly.
splitAddressobjectThe registered address split into parts.
splitAddress.districtarrayDistrict(s).
splitAddress.statearrayState name(s), as a flat list.
splitAddress.cityarrayCity or town name(s).
splitAddress.pincodestringPIN code.
splitAddress.countryarrayCountry, as the codes and name given by the registry.
splitAddress.addressLinestringThe address as one line.
statestringThe registered state, when the voter ID is valid.
assemblyConstituencyNumberstringAssembly constituency number.
assemblyConstituencystringAssembly constituency name.
parliamentaryConstituencyNumberstringParliamentary constituency number.
parliamentaryConstituencystringParliamentary constituency name.
partNumberstringPart number of the electoral roll.
partNamestringPart name of the electoral roll.
serialNumberstringSerial number of the voter within the part.
pollingStationstringName 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.