Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer TOKEN.https://sandbox.surepass.apphttps://kyc-api.surepass.app| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token for API authentication. Format: Bearer <JWT_TOKEN> |
| Content-Type | Yes | Must be set to multipart/form-data to support file upload |
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | file | Optional | The PAN card document to be analyzed for tampering. Supported formats include images (JPEG, PNG) and PDF documents. |
| use_pdf | boolean | Optional | Set to "true" if the uploaded file is a PDF document, or "false" if it is an image file. |
| base64 | string | Optional | The PAN card document base64 string to be analyzed for tampering. |
| link | string | Optional | The PAN card document link to be analyzed for tampering. |
multipart/form-data encoding to support file uploads. The use_pdf parameter should be provided as form data alongside the file.| Parameter | Type | Description |
|---|---|---|
| data | object | Container object holding the tampering detection results |
| data.client_id | string | Unique identifier for this tampering detection request, useful for tracking and support |
| data.is_tampered | boolean | Indicates whether the PAN card document is detected as tampered (true) or authentic (false) |
| data.confidence | float | Confidence score (0–100) representing the likelihood of tampering. Higher values indicate greater confidence in the tampering verdict |
| status_code | integer | HTTP status code of the response (200 for success) |
| success | boolean | Indicates if the API request was processed successfully |
| message | string | Human-readable message describing the result |
| message_code | string | Machine-readable status code for programmatic handling |
{
"data": {
"client_id": "pan_tampering_detection_uiraomdjqHggkwZeNSyD",
"is_tampered": true,
"confidence": 58.0
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}is_tampered: true with confidence: 58.0 means the system detected signs of tampering with 58% confidence{
"data": null,
"status_code": 400,
"success": false,
"message": "Invalid file format. Please specify 'use_pdf=True' for PDF inputs.",
"message_code": null
}curl --location 'https://kyc-api.surepass.app/api/v1/ocr/pan-tampering-detection' \
--header 'Authorization: Bearer <token>' \
--form 'file=@""' \
--form 'use_pdf=""'{
"data": {
"client_id": "pan_tampering_detection_uiraomdjqHggkwZeNSyD",
"is_tampered": true,
"confidence": 58.0
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}