Skip manually typing guest ID details: passport & ID card extraction via API
TL;DR: sys_id_document extracts document type, full name, dates of birth/issue/expiry, document number, nationality, and issuing authority from a photo of a passport, driving license, or national ID card — built for front-desk and intake workflows (hotels, car rental, event check-in, property management) that just need the data typed out of a photo, not a compliance-grade identity-verification product. It doesn't check authenticity, cross-reference a database, or detect forgeries — for regulated KYC/AML use cases, use a dedicated identity-verification vendor instead.
A hotel front desk, a car rental counter, an event check-in table, a property manager screening a rental applicant — all of them do the same manual task dozens of times a day: look at a guest's ID, and type the name, date of birth, and document number into a system by hand. sys_id_document replaces the typing with one API call, turning a photo of the ID into structured JSON.
This is not a KYC/AML or fraud-prevention product — if you need liveness detection, database cross-checks, or forgery detection for a regulated identity-verification use case, that's a different, dedicated vendor. This is for the much more common case: a front-desk or intake workflow that just needs the data typed out of the photo, accurately, without a human re-keying it — with two safety behaviors turned on automatically rather than left as something you have to remember to configure.
What gets extracted
| Field | Type | Notes |
|---|---|---|
documentType |
passport | driving_licence | national_id |
|
fullName |
string | |
dateOfBirth |
date | |
documentNumber |
string | |
issueDate / expiryDate |
date | |
nationality |
string | |
issuingAuthority |
string |
The API call
curl -X POST "https://api.logicspoke.com/pdf/v1/pdf/parse/sync" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "[email protected]" \
-F "schemaId=sys_id_document"
Response:
{
"success": true,
"parseId": "parse_pqr678",
"data": {
"documentType": "passport",
"fullName": "John Q. Public",
"dateOfBirth": "1990-01-01",
"documentNumber": "A1234567",
"issueDate": "2020-05-10",
"expiryDate": "2030-05-09",
"nationality": "United States",
"issuingAuthority": "Department of State"
},
"usage": { "pages": 1, "creditsUsed": 20 }
}
Two things that happen automatically
sys_id_document is the one schema where two safety-relevant behaviors are on by default, not opt-in:
- Vision mode is forced on —
visionis set totrueautomatically for this schema, regardless of what you pass, since ID photos are almost never a clean text layer. - PII redaction is forced on —
sys_id_documentis an identity-category schema, soredactapplies automatically too, even without setting it yourself.
The credit cost reflects the Vision-mode rate (20 credits/page) — this is priced as Vision extraction because it always runs that way.
Questions
Does this verify the document is genuine, or just read what's on it?
Just extraction — it reads and structures whatever text/data is on the document. It doesn't verify authenticity, check against a government database, or detect forgeries.
Since redaction and structured extraction both run, doesn't redacting the text before extraction risk blanking out the very fields (name, document number) you're trying to extract?
That's a fair concern with text-only extraction, but sys_id_document forces Vision mode on specifically because of this — the structured-extraction step receives both the redacted text and the original image, so it can still read the name/document number directly off the image even where the OCR'd text was redacted. This pairing (forced vision + forced redact) is deliberate for that reason, not a coincidence.
Does this work for ID cards from any country?
The schema's fields are generic enough to cover most passport/driving-license/national-ID formats, but extraction accuracy on documents in scripts or formats very different from the training examples should be verified against your own real documents before relying on it.
Stop retyping guest ID details by hand.
Starter credits included on signup. No card required.