# Compare 2d

## Compare 2d

<mark style="color:green;">`POST`</mark> `https://biometrid.com/api/providers/custom/face02/compare-2d2d`

This endpoint allows you to compare two photos.

#### Query Parameters

| Name      | Type   | Description          |
| --------- | ------ | -------------------- |
| processId | string | Reference process id |

#### Headers

| Name           | Type   | Description                  |
| -------------- | ------ | ---------------------------- |
| Authentication | string | Authentication account token |

#### Request Body

| Name      | Type   | Description   |
| --------- | ------ | ------------- |
| template1 | string | Base64 string |
| template2 | string | Base64 string |

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

```bash
{
  "data": {
    "status": true,
    "confidence": 1.0000002980232239,
    "result": {
      "bbox1": {
        "x1": 229,
        "x2": 495,
        "y1": 81,
        "y2": 347
      },
      "bbox2": {
        "x1": 229,
        "x2": 495,
        "y1": 81,
        "y2": 347
      },
      "confidence": 1.0000002980232239,
      "verified": true
    }
  },
  "meta": {
    "message": "Success."
  },
  "status": true
}
```

{% endtab %}
{% endtabs %}
