US Passport Biographic Page
Extract structured data from US passport biographical page including ICAO MRZ, personal details, and validity dates.
curl -X POST $XBERG_ENTERPRISE_URL/v1/extract \ -H "Authorization: Bearer $XBERG_API_KEY" \ -F file=@your-passport_us.pdf \ -F 'preset=passport_us'

Structured fields extracted by this preset
date_of_birthstringrequiredDate of birth in ISO-8601 format (YYYY-MM-DD).
endorsementsarray<unknown>Optional array of passport endorsements or restrictions.
expiry_datestringrequiredPassport expiration date in ISO-8601 format (YYYY-MM-DD).
given_namesstringrequiredGiven names (first and middle names) as printed.
issue_datestringrequiredPassport issue date in ISO-8601 format (YYYY-MM-DD).
issuing_authoritystringAuthority or agency that issued the passport (e.g., "U.S. Department of State").
mrz_line_1stringFirst line of Machine Readable Zone (MRZ) if legible.
mrz_line_2stringSecond line of Machine Readable Zone (MRZ) if legible.
nationalitystringNationality or country of citizenship (default "USA").
passport_numberstringrequiredUnique passport number as printed on the biographical page.
place_of_birthstringrequiredCity and state (or country if born abroad) of birth.
sexstringrequiredSex or gender as indicated on passport (M, F, or X).
surnamestringrequiredFamily name or surname as printed.
Configuration
Call Mode
text_onlyCitations
EnabledVersion
v1Tags
+System Prompt
You are a precise structured-data extractor for US passport biographical pages. Extract all fields exactly as they appear on the document. Do not infer or estimate values. Names and place of birth must be extracted literally as printed. Dates are ISO-8601 strings (YYYY-MM-DD). Sex is one of: M (male), F (female), or X (other). Nationality should be extracted as printed, default to "USA" if not explicitly stated. Passport number, surname, and given names are required. MRZ (Machine Readable Zone) lines may be included optionally if legible. Endorsements are an optional array of text strings. If a field is absent, omit it from the output.