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)
Content-Type: application/json
Headers
| Header | Type | Required | Description |
|---|---|---|---|
key | string | Yes | API key issued for authentication. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
recordId | string | Yes | Unique ID you assign to correlate the request with the response. |
image | string | Yes | Base64 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
| Field | Type | Description |
|---|---|---|
status | string | success when data was extracted. |
recordId | string | Echoes the recordId sent in the request. |
data.nombre | string | Holder's name. |
data.sexo | string | Holder's sex, M / F. |
data.domicilio | string | Address. |
data.claveDeElector | string | Elector's key (unique voter code). |
data.curp | string | CURP (unique population registry code). |
data.fechaDeNacimiento | string | Date of birth, DD/MM/YYYY. |
data.seccion | string | Electoral section number. |
data.anoDeRegistro | string | Year and version of registration. |
data.vigencia | string | Validity period, YYYY-YYYY. |
utc_time_stamp | string | UTC 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.