Skip to content

Frequently Asked Questions


You can find solutions to common issues on the Troubleshooting page.

Where can I download the latest Web API version?

Please use the Regula Download Manager tool.

Note that the Regula Downloads Manager is only required for the download of the package and has no further impact on the Regula Document Reader Web API operation.

How to change the service base address?

The config file is saved under the following path:

  • C:\Program Files\Regula\Document Reader Web API.env for the х64 version

  • C:\Program Files (x86)\Regula\Document Reader Web API.env for the x86 version

To change the service base address, you need to change the value: DOCREADER_BIND=""

By default, the service base address is:

  • "" for HTTP

  • "" for HTTPS

How to run the Web API service using HTTPS?

  • Option 1. Recommended. Nginx as a reverse-proxy

Run Nginx as a frontend container for HTTPS processing and proxy service requests to the backend docreader container. See the NGINX Reverse Proxy page.

  • Option 2. Docreader via HTTPS

To run the docreader service via HTTPS:

  • add 644 permissions to certificates so the server is able to read certificates
  • pass cert.crt & cert.key files to the container
  • pass DOCREADER_HTTPS environment variable
  • forward container port to 8443 host port
chmod 644 ~/cert.crt ~/cert.key
docker run -it -p 8443:8080 -v ~/regula.license:/app/extBin/unix_x64/regula.license -v ~/cert.crt:/app/certs/tls.crt -v ~/cert.key:/app/certs/tls.key -e DOCREADER_HTTPS="true" regulaforensics/docreader

How to recognize multi-page documents?

You should submit both document pages within a single transaction as in the example below. Please, mark every separate page image with a different page index value. The transaction will be processed as usual. When the results are ready, the XML or JSON structure will contain a list with the results in accordance with the requested result type (for each page).

    {   "Base64ImageString": "base64 string",
        "Format": ".jpg",
        "LightIndex": 6,
        "PageIndex": 0
    {   "Base64ImageString": "base64 string",
        "Format": ".jpg",
        "LightIndex": 6,
        "PageIndex": 1

Where can I find logs?

You can find logs under the following directory:

C:\Program Files\Regula\Document Reader Web API\logs

The logs are turned on in the .env file of the service root: DOCREADER_PROCESS_RESULTS_LOG_PATH='logs/process/'

LOGS_ACCESS_CONSOLE="false" LOGS_ACCESS_FILE="true" LOGS_ACCESS_FILE_PATH='logs/access/document-reader-access.log'

LOGS_APP_CONSOLE="true" LOGS_APP_FILE="true" LOGS_APP_FILE_PATH='logs/app/document-reader-app.log'

Liveness/Readiness Probes

You can leverage the /api/ping endpoint for monitoring the container health and checking the availability of the container and the status of the license - expired or not.

Make sure to pick the interval between probes responsibly. A too low interval can flood the workers and affect the processing time. A too high interval can delay the identification of a malfunctioning container.

Is there a sample client available?

Sure, check out the resources below.

The service API is simple: it is synchronous, has only one endpoint api/process for actual data processing, and api/ping for a health check. Results are delivered in JSON format.

SDK documentation

Image quality requirements:

To receive notifications once the new SDK version is released, subscribe to updates:

What capabilities value do you use on

The default capabilities value used on the demo website is 500. It includes MRZ, Visual Zone OCR, Document Type, Visual Graphics and Barcode Processing.