Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer TOKEN.https://sandbox.surepass.iohttps://kyc-api.surepass.io| Header | Required | Description |
|---|---|---|
| Authorization | Yes | JWT Bearer token for authentication (format: Bearer YOUR_JWT_TOKEN) |
| Content-Type | Yes | Set to multipart/form-data for file upload, or application/json for base64 and URL inputs |
| Parameter | Type | Required | Description |
|---|---|---|---|
| image | File | Optional | The image file containing faces to be extracted. |
| use_pdf | Boolean | No | True for PDF Inputs. |
| base64 | String | Optional | Base64-encoded string of the image. |
| link | String | Optional | Publicly accessible URL pointing to the image. The URL must be directly accessible without authentication. |
image, base64, or url in every request. Providing none or multiple inputs will result in an error.{
"base64": "/9j/4AAQSkZJRgABAQEASABIAAD..."
}{
"link": "https://example.com/path/to/image.jpg"
}multipart/form-data encoding. When using base64 or URL, the request must use application/json encoding.| Parameter | Type | Description |
|---|---|---|
| success | Boolean | Indicates if the request was successful |
| status_code | Integer | HTTP status code of the response |
| message | String | Human-readable message describing the result |
| message_code | String | Machine-readable code for the message |
| data | Object | Contains the extracted face information |
| data.client_id | String | Unique identifier for the extraction request |
| data.extracted_image | String | URL to access the extracted face image |
{
"data": {
"client_id": "face_extract_wvHkLMWtgbYzSkacgReF",
"extracted_image": "https://aadhaar-kyc-docs.s3.amazonaws.com/vishal.rathore.surepass/face/face_extract_wvHkLMWtgbYzSkacgReF/face_extract_1717752796757974.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY5K3QRM"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"success": false,
"status_code": 400,
"message": "No face detected in the image",
"message_code": "no_face_detected"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/face/face-extract' \
--header 'Authorization: Bearer <token>' \
--form 'image=@""' \
--form 'use_pdf=""' \
--form 'base64=""' \
--form 'link=""'{
"data": {
"client_id": "face_extract_rrOBzcQtOuisxLbKFDIx",
"extracted_image": "https://aadhaar-kyc-docs.s3.amazonaws.com/abndc/face/face_extract_rrOBzcQtOuisxLbKFDIx/face_extract_1773485113381704.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY5K3QRM5KVPBYKKE%2F20260314%2Fap-south-1%2Fs3%2Faws4_request&X-Amz-Date=20260314T104513Z&X-Amz-Expires=600&X-Amz-SignedHeaders=host&X-Amz-Signature=cc7ade8518572efed5fb7504482ae58fbecf07d3944ea17ade4f99e19c36ad8b"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}