Face Extraction
Automatically detect and extract a human face from an image, returning it as a Base64-encoded string for use in identity verification and biometric workflows.
The Face Extraction API automatically detects and extracts a human face from a given image. It returns the cropped face as a Base64-encoded image, which can be used for downstream identity verification, face matching, or biometric processing workflows.
How It Works
Submit an image (JPG or PNG) encoded in Base64. The API detects the face region, crops it, and returns the extracted face as a Base64 string along with a transaction reference.
Request Parameters
| Parameter | Type | Location | Required | Description |
|---|---|---|---|---|
apikey | string | Header | Yes | API key provided by Syntizen. Pass 0 to skip encryption. |
authkey | string | Header | Yes | Authentication token obtained from the /userauthentication endpoint. |
rrn | string | Body | Yes | Request Reference Number — any unique identifier for the transaction (e.g., "TXN001"). |
image | string | Body | Yes | Base64-encoded image of the person. Supported formats: JPG, PNG. |
Image Guidelines
- Supported formats: JPG, PNG.
- The image must contain exactly one clearly visible, forward-facing human face.
- Ensure the face is well-lit and not heavily occluded (no sunglasses, masks, etc.).
- Avoid blurred or low-resolution images for accurate extraction.
Response
On success, the API returns the extracted face as a Base64-encoded image in the faceextracted field, along with the transaction rrn and a 200 response code.
Authorization
AuthKeyAuth Authentication token obtained from /userauthentication endpoint
In: header
Header Parameters
API key provided by Syntizen
Authentication token obtained from /userauthentication endpoint
Request Body
application/json
Request Reference Number, any unique number for the identification of transaction
Base64 image(jpg, png)
Response Body
application/json
application/json
application/json
curl -X POST "https://api.syntizen.com/FaceExtraction" \ -H "apikey: 0" \ -H "authkey: string" \ -H "Content-Type: application/json" \ -d '{ "rrn": "1", "image": "/9j/4f//RXhpZgAASUrDgfhxQDiPAwwfaOOfr6VMCW+UbQfyqI5GZGzv4zx0FS4JJV9uOg+tBVj//Z" }'{
"respcode": "200",
"respdesc": "face detected successfully.",
"rrn": "1",
"faceextracted": "/9j/4A="
}{
"respcode": "400",
"respdesc": "Bad Request - Missing or invalid request parameters"
}{
"respcode": "401",
"respdesc": "Unauthorized - Invalid or expired auth key"
}Face Enroll POST
Register a person's facial image into the system under a specified group. The enrolled identity is used as the reference for future face verification and matching operations.
Face Passive Liveness V2 POST
Detect the presence of a real, live user in an image using passive liveness biometrics. Compares facial features including expression, facial hair, and age to confirm authenticity.
