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_countrydocument_numberdocument_date_of_issuedocument_expiry_datedocument_issuing_authoritysurnamegiven_namedate_of_birthplace_of_birth
Supported validations
- Field matching for
document_number,surname, andgiven_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.