Identity documents

Extract structured data from identity documents such as passports and driving licences.

document_type value

Use identity in the Extract request when you want InfraRed to validate and extract an identity document.

When to use it

Use the Identity flow when your workflow needs to verify a personal identity document before onboarding, account access, or compliance review.

What InfraRed checks first

Before extraction runs, InfraRed checks that the uploaded file is an identity document. If it is not, the request fails with document_not_of_type and no extraction is attempted.

Key extracted fields

  • issuing_country
  • document_number
  • document_date_of_issue
  • document_expiry_date
  • document_issuing_authority
  • surname
  • given_name
  • date_of_birth
  • place_of_birth

Supported validations

  • Field matching for document_number, surname, and given_name
  • Expiry validation to confirm the document is not expired
  • Minimum months until expiry

Use the API reference

For exact request and response schemas, authentication requirements, and endpoint details, use the API section.