Response fields
JSON types, printed-field meanings, address components, provenance, and warnings.
On this page
Successful responses use English property names, enums, and error values in every documentation locale. Printed values remain literal.
Profiles
| Profile | data shape | Additional top-level metadata |
|---|---|---|
standard (default) | Eight scalar fields and mrz. | Shared success envelope. No profile property. |
extended | The same eight scalars, twelve additional scalars, mrz, and address_parts on new readings. | profile: "extended", sources, checks, and quality. |
All twenty printed scalar fields use string | null. Identifiers, years, and address numbers remain strings, preserving leading zeros. mrz is an array of exactly three strings or null. A single-side reading retains the profile's keys; it does not omit keys for unavailable fields.
null covers absent, hidden, unreadable, ambiguous, or conflicting values; these cases are not always distinguished. Populated fields are not certified correct. needs_review is always true.
Fields shared by both profiles
| Field | Printed label or location | Definition |
|---|---|---|
full_name | Holder's NOMBRE / NAME block | Full name with lines joined in printed order. Excludes names of officials signing the credential. |
curp | CURP | Printed Clave Única de Registro de Población. Missing characters are not completed. |
address | DOMICILIO / ADDRESS | Complete visible residential address, with lines joined and abbreviations preserved. Can be hidden or absent. |
date_of_birth | FECHA DE NACIMIENTO / DATE OF BIRTH | Literal printed birth date. The string is not necessarily ISO 8601. |
validity | VIGENCIA / EXPIRY | Printed expiry year or year range, for example 2026-2036. Not an official registry status. |
elector_key | CLAVE DE ELECTOR | Printed voter key. Distinct from CURP, CIC, and the OCR identifier. |
cic | Explicit CIC label outside MRZ | Credential CIC identifier only when explicitly identifiable. An unlabelled nearby number is insufficient. |
ocr | Explicit OCR label outside MRZ | Printed OCR identifier. This property does not contain the complete recognized text. |
mrz | Three machine-readable lines, usually on the reverse | Literal lines with < separators preserved. Encoded MRZ values do not fill missing printed fields. |
Raw dates and validity retain the printed representation. Extended date checks are separate metadata. A printed year does not establish an exact expiry day.
Additional printed fields in the extended profile
| Field | Printed label or location | Definition |
|---|---|---|
given_names | Given-name line of NOMBRE | Given names when the line's role is identifiable from the layout. |
paternal_surname | First-surname line of NOMBRE | First/paternal surname, preserving compound surnames. |
maternal_surname | Second-surname line of NOMBRE | Second/maternal surname when identifiable. A one-line name is not split by word count. |
sex | SEXO / SEX | Literal printed marker; no inferred gender value. |
section | SECCIÓN / SECTION | Electoral section code, preserving zeros. It is not an address manzana, lot, or postal code. |
registration_year | AÑO DE REGISTRO | Four-digit registration year, excluding any adjacent suffix. |
issue_year | EMISIÓN / ISSUE | Four-digit issue year. Not an issue-count number or a replacement for validity. |
street | Street line inside DOMICILIO | Complete line, including printed exterior/interior numbers, building, manzana, or lot. |
neighborhood | Colonia or locality text inside DOMICILIO | Literal OCR portion, which can contain neighborhood or locality text. Parsed parts distinguish supported roles. |
municipality | Municipio/alcaldía inside DOMICILIO | Residence municipality or borough. Excludes electoral geographic codes elsewhere on the card. |
state | State/province inside DOMICILIO | Residence state as printed; not birthplace or a state inferred from CURP. |
postal_code | Postal code inside DOMICILIO, sometimes C.P. | Original OCR postal-code field. Parsed address_parts.zip is a separate substring of this field. |
These values must be visibly supported on a supplied side. They are not enriched from postal databases, CURP, QR codes, or MRZ. Separate name fields require identifiable roles; a full name does not guarantee usable name components.
Parsed address fields
New extended readings include data.address_parts, with the twelve nullable string properties below. These are deterministic interpretations of existing OCR text, not twelve additional model-extracted fields. Older saved results can omit the object.
| Property | Printed term or marker | Definition |
|---|---|---|
type | CALLE, C, AV, etc. | Street type, preserving the accepted abbreviation. |
street | Nombre de la calle | Separated street name. Unlike data.street, it excludes successfully parsed number and unit labels. |
number | NO, NÚM, EXT | Exterior/property number, not a number that belongs to the street name. |
unit | INT, DEPTO | Interior/apartment identifier. |
building | EDIF, EDIFICIO, TORRE | Building/tower identifier; distinct from an interior or manzana. |
block | MZ, MZA, MANZANA | Manzana within the address. Never the electoral SECCIÓN. |
lot | LT, LOTE | Lote or plot identifier; distinct from the exterior number. |
neighborhood | COL, COLONIA, etc. | Labelled colonia, subdivision, or supported neighborhood. |
locality | LOCALIDAD, LOC. | Labelled locality or settlement, kept separate from neighborhood. |
municipality | Municipio/alcaldía/delegación | Municipality or borough supported by the address text. |
state | Estado/provincia | Residence state text with abbreviations preserved. |
zip | Código postal | Supported substring of data.postal_code, retaining leading zeros. |
For the fictional street CALLE EJEMPLO NO 012 EDIF B INT 04 MZA 003 LOTE 007, number can be "012", building "B", unit "04", block "003", and lot "007". These optional address details do not appear on every INE.
A number or place name without sufficient role evidence stays null. data.address and data.street retain the original OCR. Address parts defines source offsets and ambiguity semantics.
Standard success envelope
| Property | Type | Meaning |
|---|---|---|
request_id | string | API job identifier used for retrieval and support; not printed on the INE. |
status | "succeeded" | A reading was produced. Does not certify complete or correct extraction. |
needs_review | true | Review is required for every result. |
data | Object | Fields for the selected profile. |
warnings | Array | Objects containing code and, where applicable, field. An empty list would not prove correctness. |
expires_at | string | null | ISO timestamp for result access expiry. Historical compatible results may use null. Unrelated to printed validity. |
The following complete standard example uses a fictional name and address:
{
"request_id": "00000000-0000-4000-8000-000000000001",
"status": "succeeded",
"needs_review": true,
"data": {
"full_name": "PERSONA DE EJEMPLO",
"curp": null,
"address": "CALLE EJEMPLO NO 012 EDIF B INT 04",
"date_of_birth": null,
"validity": null,
"elector_key": null,
"cic": null,
"ocr": null,
"mrz": null
},
"warnings": [
{ "code": "model_confidence_unavailable" },
{ "code": "authenticity_not_verified" },
{ "code": "missing_or_unreadable", "field": "curp" },
{ "code": "missing_or_unreadable", "field": "date_of_birth" },
{ "code": "missing_or_unreadable", "field": "validity" },
{ "code": "missing_or_unreadable", "field": "elector_key" },
{ "code": "missing_or_unreadable", "field": "cic" },
{ "code": "missing_or_unreadable", "field": "ocr" }
],
"expires_at": "2026-09-30T00:00:00.000Z"
}
Extended metadata
sources.FIELD is an array of { side, region } observations for a scalar field. An empty array means no source was reported; multiple entries can indicate readings from both sides. Sources do not contain image bounding boxes or confidence percentages.
sources.address_parts.PART is instead a { method: "parsed", field, start, end } object or null. Offsets use zero-based UTF-16 code units and an exclusive end, matching JavaScript String.slice. They point into an original OCR string under data.
checks contains separate format, checksum, and consistency results; raw fields remain unchanged. quality contains unvalidated image observations per supplied side. Neither is an identity or authenticity decision. Full shapes are defined in extended metadata.
Warnings
code identifies the warning. Optional field identifies a scalar such as curp, a side such as front, or a path such as address_parts.number. Warning codes are extensible.
| Code | Interpretation |
|---|---|
authenticity_not_verified | OCR does not verify authenticity or identity. |
model_confidence_unavailable | No calibrated confidence score is available. |
missing_or_unreadable | No usable scalar value; absence and illegibility are not distinguished. |
conflicting_values | Scalar readings disagree; the merged value is null. |
unexpected_format | A standard-profile scalar does not match its expected format; the literal value remains available. |
mrz_requires_review | Raw MRZ requires review, including its separators. |
conflicting_mrz | MRZ readings disagree; data.mrz is null. |
front_contains_mrz_check_sides | MRZ was observed in the image submitted as front. |
extended_profile_not_validated | Representative accuracy for the extended profile has not been established. |
quality_signals_unvalidated | Image observations are uncalibrated. |
side_mismatch_suspected | Observed side differs from the submitted field. |
other_document_suspected, document_type_uncertain | The model observed another or uncertain document type. |
image_blur_suspected, image_glare_suspected, image_cropped_suspected, image_rotation_suspected | The model reported a possible capture issue. |
address_parsing_unvalidated, address_component_ambiguous, address_source_conflict | Unvalidated parsing, ambiguous component, or conflicting source; defined in address warnings. |
The contract has no calibrated confidence percentage. Supported fields, passed checks, and HTTP success are not accuracy guarantees. Evaluation defines the available evidence and its limits.