# Face Enrollment

## Enrol User

<mark style="color:green;">`POST`</mark> `https://api.myidentitypay.com/api/v2/biometrics/merchant/user/enroll`

This endpoint allows you to enrol users

#### Query Parameters

| Name                                          | Type   | Description                                                           |
| --------------------------------------------- | ------ | --------------------------------------------------------------------- |
| last\_name<mark style="color:red;">\*</mark>  | string | User's last name                                                      |
| first\_name<mark style="color:red;">\*</mark> | string | User's first name                                                     |
| face\_image<mark style="color:red;">\*</mark> | string | image url of user's face(use the best practices to genrate the image) |
| email<mark style="color:red;">\*</mark>       | string | User's Email address                                                  |

#### Headers

| Name                                        | Type   | Description                 |
| ------------------------------------------- | ------ | --------------------------- |
| X-Api-Key<mark style="color:red;">\*</mark> | string | \<your merchant secret key> |
| app-id<mark style="color:red;">\*</mark>    | String | \<your app id>              |

{% tabs %}
{% tab title="200 successful registration" %}

```
{
    "status": true,
    "detail": "User Enrollment Successful"
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.myidentitypass.com/products/biometric/face-1/face-authentication.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
