Reduce latency
The Verify API processing is fast, however image uploads and downloads can take some time. Use the following techniques to reduce latency:
- Use the Verify SDK instead of direct API calls. The Verify SDK automatically applies all possible image optimizations before sending requests.
- Use the multipart request body rather than sending images as base64-encoded JSON.
- Disable unused image returns:
returnFullDocumentImageand otherreturn*options for images you don't need. This reduces the size of the response. - Compress and resize images. If you're not using the Verify SDK, compress and resize images before uploading. Follow the image requirements when doing so.
- Disable checks you don't need.
For example, if you accept photocopies, disable the
photocopyCheck.