API reference
The same engine the studio uses, exposed as JSON. Handy for tests and scripts.
Requests sent from Try it are posted to this server. Do not send real document data. Everything is processed in memory and never stored.
Endpoints
| Method | Path | Body | Description |
|---|---|---|---|
| GET | /api/mrz | — | Discoverability help: lists actions, formats and example bodies. |
| POST | /api/mrz | action, format?, text?, values? | Build, parse or randomly generate an MRZ. One endpoint, three actions. |
Try it
curl -s https://your-host/api/mrz \
-H 'content-type: application/json' \
-d '{"action":"parse","text":"P<UTOERIKSSON<<ANNA<MARIA<<<<<<<<<<<<<<<<<<<\nL898902C36UTO7408122F1204159ZE184226B<<<<<10"}'Response
Send a request to see the JSON response.