Face Search – Enroll
Enrolls a face embedding into the Ai-ForensiX face search index for fast similarity lookup.
The Face Search Enroll API extracts a face embedding from an input image and stores it in the search index.
This enables fast similarity-based face search in subsequent queries.
Endpoint
POST /v1/facesearch/enrollRequest Body
| Field | Type | Required | Description |
|---|---|---|---|
file | binary | Yes | Face image to enroll. |
Example Request (cURL)
curl -X POST "https://forensiz.ai/enroll" \
-H "x-api-key: YOUR_API_KEY" \
-F file=@"/path/face.jpg"Response Status Codes
| Status Code | Meaning |
|---|---|
| 200 OK | Face enrolled successfully. |
| 400 Bad Request | Invalid image or missing file. |
| 401 Unauthorized | Missing or invalid API key. |
| 403 Forbidden | API access not permitted. |
| 404 Not Found | Endpoint does not exist. |
| 415 Unsupported Media Type | Invalid file format. |
| 500 Internal Server Error | Unexpected server error. |