Security & data protection

Misfora Web Scanner SDK & OCR API Security Overview

Applies to the Misfora Web Scanner SDK and the OCR API (POST /v1/sdk/session, POST /v1/scan). Reviewed for Web Scanner SDK 1.1.0 and API v1. Version 1.1 · Last updated 2 November 2026.

Security OverviewSubprocessorsData RetentionIncident Response

The Web Scanner SDK captures a passport or ID card in the end user's browser and returns the recognized data to the client's web page; the OCR API receives a document image from the client's backend and returns the recognized data in the response. Both use the same recognition pipeline. Misfora processes each document image only in memory for the duration of a single request and does not store document images or recognized document data. Misfora holds no security certifications (such as ISO 27001 or SOC 2); this page describes the measures actually in place.

1. Data flow

  1. The client's backend creates a short-lived SDK session token with its secret API key (POST /v1/sdk/session).
  2. The SDK runs in the end user's browser. Document detection and image-quality checks run on the device; the camera stream and intermediate frames are not sent to Misfora.
  3. One image per attempt — the captured frame or a photo uploaded by the user — is sent over HTTPS to POST /v1/scan.
  4. The image is recognized by Misfora's own OCR pipeline on servers in the EU (Railway, EU West — Amsterdam, Netherlands). Images are not sent to third-party OCR or AI services.
  5. The recognized fields are returned to the browser and passed to the client's page through a callback. The client decides what to store and where.

With the OCR API, the client's backend sends the image directly to POST /v1/scan with its secret API key and receives the result in the response; steps 1–2 do not apply.

2. Data handled

Data Where How long
Document image Server memory only, during one request Discarded when the request ends
Recognized fields (name, document number, dates, nationality, etc.) Server memory only, then in the response Discarded when the request ends
Request metadata: time, client company, request ID, SDK session ID, document type, recognition engine, processing time, review flag, capture method, file size, error code Misfora database (EU) 12 months, plus up to 27 days in backups
SDK session: hash of the token, allowed document types, attempt counter, expiry Misfora database (EU) 12 months after expiry, plus up to 27 days in backups
Client IP address and request time Hosting provider logs (Railway, stored in the US) Up to 90 days, set by the provider

Document images, recognized text and identifying document fields are not written to application logs. Request metadata is kept to a minimum but may, combined with the client's own data, relate to an individual, and is treated as personal data.

A fallback recognition step may write the image to a short-lived temporary file inside the application container; the file is deleted automatically before the response is returned, including when processing fails. The container file system is not persistent and is cleared on every restart and deployment.

3. Encryption

All communication between the SDK or the client's backend and the Misfora API uses HTTPS (TLS). Plain HTTP requests are redirected to HTTPS at the hosting provider's edge and are never processed by the application; the application additionally rejects API requests that reach it over HTTP. HSTS is enabled for misfora.com. TLS is terminated at the hosting provider's edge.

According to the hosting provider's Data Processing Agreement (Exhibit C), databases are encrypted at rest and traffic within the provider's infrastructure is encrypted (WireGuard). Encryption keys for the database are managed by the hosting provider.

4. Authentication and session tokens

5. Abuse and input protection

6. Infrastructure and access

7. Vulnerability and dependency management

8. Monitoring and incident response

9. Client responsibilities

A Data Processing Agreement for the Web Scanner SDK and OCR API is available on request: partners@misfora.com. Report security issues to security@misfora.com. See also the Privacy Policy.