---
Source: https://docs.microblink.com/extraction/api/authentication
Title: Authentication
---

# Authentication

<!-- interactive component omitted -->


Self-hosted API currently supports basic authentication.
To enable it set docker environemnt variable ENABLE_SECURITY to true, and provide BASIC_AUTH_USERNAME and BASIC_AUTH_PASSWORD environment variables.

After setup all recognition endpoints require Authentication header in form:

`Authorization: 'Basic ' + Base64.encode(username + ':' + password)`


Last updated on Aug 6, 2026
