> For the complete documentation index, see [llms.txt](https://pruvly.gitbook.io/pruvly/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://pruvly.gitbook.io/pruvly/document-engine/document-check-2.md).

# Age Detection

The Age Prediction API analyzes a user-submitted face image to estimate the person's age range. This endpoint processes the image, applies facial analysis, and returns a response indicating the predicted minimum and maximum age, along with a confidence score.

## Age Detection

<mark style="color:green;">`POST`</mark> {{BASE-URL}}/verification/external/face/age

**Headers**

| Name         | Value                       |
| ------------ | --------------------------- |
| Content-Type | `application/json`          |
| api-key      | \<api key from your portal> |

**Body**

| Name  | Type   | Description         |
| ----- | ------ | ------------------- |
| image | string | face image - base64 |

**Response**

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

````json
```json
{
    "status": true,
    "message": "Age detection successful",
    "data": {
         "status": true, 
         "age_low": 20,
         "age_high": 23
    }
}
```
````

{% endtab %}

{% tab title="400" %}

```json
{
  "status": false
  "message": "Could not detect face age"
}
```

{% endtab %}
{% endtabs %}
