DocumentationResponse fields

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

Profiledata shapeAdditional top-level metadata
standard (default)Eight scalar fields and mrz.Shared success envelope. No profile property.
extendedThe 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

FieldPrinted label or locationDefinition
full_nameHolder's NOMBRE / NAME blockFull name with lines joined in printed order. Excludes names of officials signing the credential.
curpCURPPrinted Clave Única de Registro de Población. Missing characters are not completed.
addressDOMICILIO / ADDRESSComplete visible residential address, with lines joined and abbreviations preserved. Can be hidden or absent.
date_of_birthFECHA DE NACIMIENTO / DATE OF BIRTHLiteral printed birth date. The string is not necessarily ISO 8601.
validityVIGENCIA / EXPIRYPrinted expiry year or year range, for example 2026-2036. Not an official registry status.
elector_keyCLAVE DE ELECTORPrinted voter key. Distinct from CURP, CIC, and the OCR identifier.
cicExplicit CIC label outside MRZCredential CIC identifier only when explicitly identifiable. An unlabelled nearby number is insufficient.
ocrExplicit OCR label outside MRZPrinted OCR identifier. This property does not contain the complete recognized text.
mrzThree machine-readable lines, usually on the reverseLiteral 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

FieldPrinted label or locationDefinition
given_namesGiven-name line of NOMBREGiven names when the line's role is identifiable from the layout.
paternal_surnameFirst-surname line of NOMBREFirst/paternal surname, preserving compound surnames.
maternal_surnameSecond-surname line of NOMBRESecond/maternal surname when identifiable. A one-line name is not split by word count.
sexSEXO / SEXLiteral printed marker; no inferred gender value.
sectionSECCIÓN / SECTIONElectoral section code, preserving zeros. It is not an address manzana, lot, or postal code.
registration_yearAÑO DE REGISTROFour-digit registration year, excluding any adjacent suffix.
issue_yearEMISIÓN / ISSUEFour-digit issue year. Not an issue-count number or a replacement for validity.
streetStreet line inside DOMICILIOComplete line, including printed exterior/interior numbers, building, manzana, or lot.
neighborhoodColonia or locality text inside DOMICILIOLiteral OCR portion, which can contain neighborhood or locality text. Parsed parts distinguish supported roles.
municipalityMunicipio/alcaldía inside DOMICILIOResidence municipality or borough. Excludes electoral geographic codes elsewhere on the card.
stateState/province inside DOMICILIOResidence state as printed; not birthplace or a state inferred from CURP.
postal_codePostal 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.

PropertyPrinted term or markerDefinition
typeCALLE, C, AV, etc.Street type, preserving the accepted abbreviation.
streetNombre de la calleSeparated street name. Unlike data.street, it excludes successfully parsed number and unit labels.
numberNO, NÚM, EXTExterior/property number, not a number that belongs to the street name.
unitINT, DEPTOInterior/apartment identifier.
buildingEDIF, EDIFICIO, TORREBuilding/tower identifier; distinct from an interior or manzana.
blockMZ, MZA, MANZANAManzana within the address. Never the electoral SECCIÓN.
lotLT, LOTELote or plot identifier; distinct from the exterior number.
neighborhoodCOL, COLONIA, etc.Labelled colonia, subdivision, or supported neighborhood.
localityLOCALIDAD, LOC.Labelled locality or settlement, kept separate from neighborhood.
municipalityMunicipio/alcaldía/delegaciónMunicipality or borough supported by the address text.
stateEstado/provinciaResidence state text with abbreviations preserved.
zipCódigo postalSupported 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

PropertyTypeMeaning
request_idstringAPI 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_reviewtrueReview is required for every result.
dataObjectFields for the selected profile.
warningsArrayObjects containing code and, where applicable, field. An empty list would not prove correctness.
expires_atstring | nullISO 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.

CodeInterpretation
authenticity_not_verifiedOCR does not verify authenticity or identity.
model_confidence_unavailableNo calibrated confidence score is available.
missing_or_unreadableNo usable scalar value; absence and illegibility are not distinguished.
conflicting_valuesScalar readings disagree; the merged value is null.
unexpected_formatA standard-profile scalar does not match its expected format; the literal value remains available.
mrz_requires_reviewRaw MRZ requires review, including its separators.
conflicting_mrzMRZ readings disagree; data.mrz is null.
front_contains_mrz_check_sidesMRZ was observed in the image submitted as front.
extended_profile_not_validatedRepresentative accuracy for the extended profile has not been established.
quality_signals_unvalidatedImage observations are uncalibrated.
side_mismatch_suspectedObserved side differs from the submitted field.
other_document_suspected, document_type_uncertainThe model observed another or uncertain document type.
image_blur_suspected, image_glare_suspected, image_cropped_suspected, image_rotation_suspectedThe model reported a possible capture issue.
address_parsing_unvalidated, address_component_ambiguous, address_source_conflictUnvalidated 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.