Skip to main content
Version: v2

Reduce latency

The Verify API processing is fast, however image uploads and downloads can take some time. Use the following techniques to reduce latency:

  1. Use the Verify SDK instead of direct API calls. The Verify SDK automatically applies all possible image optimizations before sending requests.
  2. Use the multipart request body rather than sending images as base64-encoded JSON.
  3. Disable unused image returns: returnFullDocumentImage and other return* options for images you don't need. This reduces the size of the response.
  4. 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.
  5. Disable checks you don't need. For example, if you accept photocopies, disable the photocopyCheck.