Passport scanning with a phone, as an API
Your server asks for a passport. Your guest points a phone camera at it. You get the data in seconds: by webhook, by request, or straight in your page. Nothing to install on either side.
How it works
-
Your server creates an intent
One request with your API key. The answer holds a link for the phone and the address of its QR code.
curl https://webmrz.com/v1/intents \ -H "Authorization: Bearer wm_live_..." \ -H "Content-Type: application/json" \ -d '{"webhook_url": "https://example.com/hooks/webmrz", "reference": "booking-1042"}'{ "id": "in_9fQ2mXc7Jr0aTn4vB8yKpL3sWd6ZhE1u", "status": "pending", "url": "https://webmrz.com/s/k3VbQ9xT2mLpA7cJrN5wYe", "qr_url": "https://webmrz.com/qr/k3VbQ9xT2mLpA7cJrN5wYe.svg", "expires_at": "2026-11-27T10:15:00Z" } -
Your guest scans the passport
Show the QR code on your screen, or send the link. It opens the scanner in the phone's browser: the camera reads the two code lines at the bottom of the photo page, and the page says at once when they have read cleanly.
-
You get the passport
The names, the number, the nationality, the dates and a photo of the page. We post them to your webhook, your server can ask for them by the id of the intent, and your page can show them the moment they arrive:
<div id="passport"></div> <script src="https://webmrz.com/sdk/v1"></script> <script> WebMRZ.mount("#passport", intentId, { onPassport: function (passport) { form.surname.value = passport.surname; form.number.value = passport.document_number; } }); </script>
What you can rely on
Checked twice
The phone accepts a passport only when several camera frames agree on its code. The server then parses the two lines again and verifies every check digit before anything reaches you.
No app, any phone
The scanner is a web page: iPhone and Android, the browser the guest already has. A QR code or a link is all it takes.
A relay, not an archive
Passport data and photos are deleted 24 hours after the scan. The guest sees who asks for the passport before the camera starts.
One link, several passports
A family checks in with one QR code: tell the intent how many passports to take, and each arrives as it is scanned.
Get an API key
Keys are issued on request. The documentation shows the whole API on one page.