m2pfintech
API LibraryMl falcon fly

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

ParameterTypeLocationRequiredDescription
apikeystringHeaderYesAPI key provided by Syntizen. Pass 0 to skip encryption.
authkeystringHeaderYesAuthentication token obtained from the /userauthentication endpoint.
rrnstringBodyYesRequest Reference Number — any unique identifier for the transaction (e.g., "TXN001").
imagestringBodyYesBase64-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.

POST
/FaceExtraction

Authorization

AuthKeyAuth
authkey<token>

Authentication token obtained from /userauthentication endpoint

In: header

Header Parameters

apikey*string

API key provided by Syntizen

authkey*string

Authentication token obtained from /userauthentication endpoint

Request Body

application/json

rrn*string

Request Reference Number, any unique number for the identification of transaction

image*string

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"
}

On this page