Skip to main content

Mexican Voter ID Front Extraction

Extracts the following fields from the front of a Mexican Voter ID (INE) card:

  • Nombre (name)
  • Sexo (sex)
  • Domicilio (address)
  • Clave de elector
  • CURP number
  • Fecha de nacimiento (date of birth)
  • Año de registro (year of registration)
  • Sección (section)
  • Vigencia (validity)
POSThttps://sandbox/pcs/MexicanVoterIdFront

Content-Type: application/json

Headers​

HeaderTypeRequiredDescription
keystringYesAPI key issued for authentication.

Request body​

FieldTypeRequiredDescription
recordIdstringYesUnique ID you assign to correlate the request with the response.
imagestringYesBase64 string / data URI of the Mexican Voter ID front image.

Example​

POST/pcs/MexicanVoterIdFront
curl --location 'https://sandbox/pcs/MexicanVoterIdFront' \
--header 'key: <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{
  "recordId": "1",
  "image": "data:image/png;base64,<BASE64_STRING>"
}'
200
{
"status": "success",
"recordId": "1",
"data": {
  "nombre": "name-string",
  "sexo": "M",
  "domicilio": "address-string",
  "claveDeElector": "ABCD1234",
  "curp": "ABC12345",
  "fechaDeNacimiento": "13/03/1964",
  "seccion": "3561",
  "anoDeRegistro": "1991 04",
  "vigencia": "2020-2030"
},
"utc_time_stamp": "29/10/2024, 07:23:03"
}

Response​

FieldTypeDescription
statusstringsuccess when data was extracted.
recordIdstringEchoes the recordId sent in the request.
data.nombrestringHolder's name.
data.sexostringHolder's sex, M / F.
data.domiciliostringAddress.
data.claveDeElectorstringElector's key (unique voter code).
data.curpstringCURP (unique population registry code).
data.fechaDeNacimientostringDate of birth, DD/MM/YYYY.
data.seccionstringElectoral section number.
data.anoDeRegistrostringYear and version of registration.
data.vigenciastringValidity period, YYYY-YYYY.
utc_time_stampstringUTC timestamp of the response, DD/MM/YYYY, HH:mm:ss.

Error handling​

200 on success, 422 on a validation error — see Error handling for the common error shape.