Analyze one document
Reads one document and returns a verdict, its reason, what was compared and the fields read, with no customer and no stored record. The same reader and rules OZAV uses on its own onboarding documents.
Send the file as base64 (up to 3 MB; PDF, JPEG, PNG or WebP) with its document_type. Send subject to compare the holder and the address against who the document should belong to; without it, comparisons say not_compared and the verdict covers the rest (legibility, the right kind of document, its age, signs of editing).
- verdict: accepted - the document is what was asked and nothing holds it.
- verdict: review - a person should look; reason says why.
- verdict: rejected - unreadable, the wrong kind of document, or too old for its purpose.
Every verdict, rejected included, is a real answer and is charged. A file that cannot be analyzed (empty, too large, content not matching mime_type, password-protected PDF) is 400 INVALID_FILE. When the document cannot be analyzed right now, the answer is 503 DOCUMENT_ANALYSIS_UNAVAILABLE: it says nothing about the document. The charge for either is refunded.
Nothing about the document is stored, so this operation takes no Idempotency-Key: a retry is a new analysis.
Request
- Base URLhttps://developers.ozav.io/v2
- Auth
- API key in header X-API-Key
- or HTTP bearer
Request body
Response
The analysis.
Changes
No recorded changes to this operation across all 1 revision of this API.