Recipe

Recipe: KYC Document Review

Extract structured fields from identity documents, validate completeness, and flag missing or suspicious entries — all in a single vision pipeline.

1.2s
Avg latency
98.7%
Field accuracy
14
Supported doc types

Pipeline steps

  1. 1Upload — accept JPEG, PNG, or PDF (first page rasterized). Max 20 MB.
  2. 2Classify — detect document type: passport, driver license, national ID, residence permit.
  3. 3Extract — pull structured fields: full name, DOB, document number, expiry, nationality, MRZ lines.
  4. 4Validate — check expiry date, cross-reference MRZ checksums, verify field formats.
  5. 5Flag — return amissing_fieldsarray and a confidence score per field.

Flagged conditions

  • Document expired or expiring within 30 days
  • MRZ checksum mismatch (tamper indicator)
  • Required field missing (e.g. no DOB on a passport)
  • Image quality below threshold (glare, blur, low resolution)
  • Document type mismatch with expected type