#
Face Verification API
The VerifEye Face Verification API provides face detection, embedding extraction, and face comparison services for identity verification and authentication use cases.
#
Overview
The Face Verification API enables you to:
- Extract face embeddings from images for identity verification
- Compare face embeddings to verify if two faces belong to the same person
- Detect faces with bounding boxes and confidence scores
- Monitor API health status
#
Base URLs
#
API Endpoints
#
Get Face Embeddings
Extract face embeddings from an image. Returns all detected faces with their bounding boxes and embeddings.
Endpoint: POST /face-verification/get-face-embeddings
Authentication: API Key (X-API-Key header)
Request Body:
{
"imageBase64": "base64-encoded-image-string",
"maxFaceCount": 1
}
Request Parameters:
Response:
{
"faces": [
{
"confidence": 0.9876,
"boundingBox": {
"x": 120,
"y": 80,
"width": 200,
"height": 250
},
"embedding": [0.123, -0.456, 0.789, ...]
}
],
"unprocessedFaceCount": 0
}
Response Fields:
Example Request:
curl -X POST "https://face-verification-api-eu.realeyes.ai/face-verification/get-face-embeddings" \
-H "X-API-Key: your-api-key-here" \
-H "Content-Type: application/json" \
-d '{
"imageBase64": "/9j/4AAQSkZJRgABAQEAYABgAAD...",
"maxFaceCount": 1
}'
Response Codes:
200- Success400- Bad Request (invalid image format)401- Unauthorized (invalid or missing API key)
#
Compare Face Embeddings
Compare two face embeddings to determine if they belong to the same person.
Endpoint: POST /face-verification/compare-face-embeddings
Authentication: API Key (X-API-Key header)
Request Body:
{
"embedding1": [0.123, -0.456, 0.789, ...],
"embedding2": [0.125, -0.450, 0.792, ...]
}
Request Parameters:
Response:
{
"similarity": 0.8542
}
Response Fields:
Similarity Score Interpretation:
Example Request:
curl -X POST "https://face-verification-api-eu.realeyes.ai/face-verification/compare-face-embeddings" \
-H "X-API-Key: your-api-key-here" \
-H "Content-Type: application/json" \
-d '{
"embedding1": [0.123, -0.456, 0.789],
"embedding2": [0.125, -0.450, 0.792]
}'
Response Codes:
200- Success401- Unauthorized (invalid or missing API key)
#
Health Check
Check the API health status.
Endpoint: GET /face-verification/ping
Authentication: API Key (X-API-Key header)
Response:
{
"status": "healthy"
}
Example Request:
curl -X GET "https://face-verification-api-eu.realeyes.ai/face-verification/ping" \
-H "X-API-Key: your-api-key-here"
Response Codes:
200- API is healthy401- Unauthorized (invalid or missing API key)
#
Common Response Codes
#
Swagger Documentation
Interactive API documentation is available via Swagger UI:
- EU: https://face-verification-api-eu.realeyes.ai/swagger/index.html
- US: https://face-verification-api-us.realeyes.ai/swagger/index.html