> For the complete documentation index, see [llms.txt](https://docs.facephi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.facephi.com/docs.facephi-en/sdks/backend-sdk/backend1n.md).

# Backend1N Service

**Facephi Backend1N Service** is a Rest API service in C++ that allows 1:N authentication using collections of biometric patterns stored in a database (MongoDB, PostgreSQL). The service offers several endpoints to extract facial patterns from images, register patterns in a gallery and perform searches. The service uses SelphID-SDK for biometric operations and supports optional JWT authentication, configurable from `config.json` or via environment variables `FACEPHI_BACKEND1N_REST_*`.

The main distribution contains the following resources:

* Docker container. The container is available in the FacePhi Docker repository and is based on Ubuntu 26.04. The container includes the service and all the dependencies necessary to run it.
