> 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/rest-api/midapi-v2/biometric-user.md).

# Biometric User

Biometric user lifecycle: registration using their facial template, authentication against the template held by the service, maintenance of that template, and deletion.

Registration and authentication are separate calls, and there is no implicit registration: authenticating an `userId` that is not registered returns `404`. Once registered, the integrator no longer sends the reference template with every request; the service holds it and compares it against the capture from the specified operation.

#### Identifier scope

The `userId` is unique within the consumer that registered it, or across the entire platform if the platform is configured to register users at that level. This is a platform setting and determines which consumers can see an already registered user: with platform scope, sibling consumers use the same registry; with consumer scope, each has its own, and a `userId` registered by another consumer is treated as nonexistent.

#### Deletion is logical

Deleting a user frees up their identifier without deleting the previous record, and a subsequent registration using the same `userId` creates a new record. A deleted user is treated as nonexistent for authentication and updates, and repeating the deletion returns `404`: this is the telltale sign of a `userId` mistyped

#### Provisioning

All four routes require the consumer to be provisioned with the `BIOMETRIC_USER`service. Authentication also requires `FACIAL_MATCHING`, and both are required: having only one returns `403`.

#### Template lifetime

The template sent during registration and update has a configurable lifetime for the tenant, counted from the time it was captured. A template older than this period is rejected with `403` and must be captured again. If the parameter is not configured, no time limit applies. This does not apply to authentication, because the capture is retrieved from storage.

#### Available services

* [**Register User**](https://docs.facephi.com/docs.facephi-en/rest-api/midapi-v2/biometric-user/register-user.md): Registers a user using their biometric template.
* [**Authenticate User**](https://docs.facephi.com/docs.facephi-en/rest-api/midapi-v2/biometric-user/authenticate-user.md): Authenticates a registered user against the capture from an operation.
* [**Update Template**](https://docs.facephi.com/docs.facephi-en/rest-api/midapi-v2/biometric-user/update-template.md): Replaces the biometric template of a registered user.
* [**Delete User**](https://docs.facephi.com/docs.facephi-en/rest-api/midapi-v2/biometric-user/delete-user.md): Deletes a registered user.
