Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization
header as Bearer TOKEN
.https://sandbox.surepass.io
https://kyc-api.surepass.io
Header | Required | Description |
---|---|---|
Authorization | Yes | JWT Bearer token for authentication. Format: Bearer <your_token> |
Content-Type | Yes | Must be set to multipart/form-data |
Parameter | Type | Description |
---|---|---|
file | Image | Upload Cheque Image |
use_pdf | Boolean | If the file type is PDF, set this to true |
Parameter | Type | Description |
---|---|---|
base_64 | String | Cheque Image in Base64 format |
Parameter | Type | Description |
---|---|---|
link | String | Cheque Image Link/URL |
Parameter | Type | Description |
---|---|---|
data | Object | Container for the OCR results |
data.client_id | String | Unique identifier for the OCR request |
data.ocr_fields | Array | List of extracted document information |
data.ocr_fields[].document_type | String | Type of document detected (e.g., "aadhaar_front_bottom") |
data.ocr_fields[].full_name | Object | Extracted name with value and confidence score |
data.ocr_fields[].gender | Object | Extracted gender with value and confidence score |
data.ocr_fields[].mother_name | Object | Extracted mother's name if available |
data.ocr_fields[].dob | Object | Extracted date of birth in YYYY-MM-DD format with confidence score |
data.ocr_fields[].aadhaar_number | Object | Extracted Aadhaar number with confidence score and masking status |
data.ocr_fields[].image_url | String | URL to the processed image (if available) |
data.ocr_fields[].uniqueness_id | String | Unique identifier for the document (if available) |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates if the request was successful |
message | String | Additional information about the response (if any) |
message_code | String | Code indicating the status of the request |
{
"data": {
"client_id": "ocr_aadhaar_MRIosSXyczVbedsZvElu",
"ocr_fields": [
{
"document_type": "aadhaar_front_bottom",
"full_name": {
"value": "Munna Bhaiya",
"confidence": 91
},
"gender": {
"value": "M",
"confidence": 91
},
"mother_name": {
"value": null,
"confidence": null
},
"dob": {
"value": "1990-01-01",
"confidence": 93
},
"aadhaar_number": {
"value": "123456789010",
"confidence": 91,
"is_masked": false
},
"image_url": null,
"uniqueness_id": null
}
]
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}
{
"error": null,
"message": "Your token is invalid. Please ensure that correct token is being used.",
"status_code": 401,
"success": false,
"message_code": "invalid_token"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/ocr/aadhaar' \
--form 'file=@""'
{
"data": {
"client_id": "ocr_aadhaar_MRIosSXyczVbedsZvElu",
"ocr_fields": [
{
"document_type": "aadhaar_front_bottom",
"full_name": {
"value": "Munna Bhaiya",
"confidence": 91
},
"gender": {
"value": "M",
"confidence": 91
},
"mother_name": {
"value": null,
"confidence": null
},
"dob": {
"value": "1990-01-01",
"confidence": 93
},
"aadhaar_number": {
"value": "123456789010",
"confidence": 91,
"is_masked": false
},
"image_url": null,
"uniqueness_id": null
}
]
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}