Age Detection
Analyze an image to estimate the age of detected persons, supporting both face images and identity documents. Returns estimated age and cropped face for each detected face.
The Age Detection API analyzes a submitted image and estimates the age of the person detected in it. It supports both face images and identity document images, returning a detected age value along with a cropped face image for each face found.
How It Works
Submit a Base64-encoded image along with the document type. The API detects faces in the image, estimates the age of each detected face, and returns the results as an array — each entry containing the estimated age and a cropped face image.
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"). |
adimage | string | Body | Yes | Base64-encoded image to analyze. Supported formats: JPG, PNG. |
doctype | string | Body | Yes | Type of image being submitted. Use face for a selfie/portrait or document for an identity document containing a photo. |
doctype Values
| Value | Description |
|---|---|
face | A selfie or portrait image directly showing a person's face. |
document | An identity document image (e.g., Aadhaar, PAN) containing a face photo. |
Image Guidelines
- Supported formats: JPG, PNG.
- The face must be clearly visible, well-lit, and forward-facing.
- Avoid heavy occlusions such as sunglasses, hats, or masks.
- For document images, ensure the photo on the document is sharp and unobstructed.
Response
On success, the API returns a data array where each item contains:
age— estimated age of the detected person.image— Base64-encoded cropped face extracted from the input image.
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
Base64 image(jpg, png)
Type of the image (document, face image)
Request Reference Number, any unique number for the identification of transaction
Response Body
application/json
application/json
application/json
curl -X POST "https://api.syntizen.com/AgeDetection" \ -H "apikey: 0" \ -H "authkey: string" \ -H "Content-Type: application/json" \ -d '{ "adimage": "/9j/ZswBL72vylZ+XhCdoexp1Dv/AOVvmT+uXXVvxqGXHyHa4HNbtwuXnmMkhkBid5h2tctYz5P/2Q==", "doctype": "face", "rrn": "456447" }'{
"respcode": "200",
"respdesc": "Success.",
"rrn": "456447",
"data": [
{
"age": "5",
"image": "/9j/4AAQSkZJRgABAQAAAQABAAD..."
}
]
}{
"respcode": "400",
"respdesc": "Bad Request - Missing or invalid request parameters"
}{
"respcode": "401",
"respdesc": "Unauthorized - Invalid or expired auth key"
}SWS API
Welcome to the Developer Zone of Syntizen Products. SWS is a repo of various API services provided by Syntizen.
Face Passive Liveness V1 POST
Verify the presence of a real, live person in an image using passive liveness detection — no user action required. Returns a liveness score and confidence percentage.
