Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer {JWT_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 multipart/form-data when sending file uploads |
| Parameter | Type | Description |
|---|---|---|
| file | File | The OCI card document file. Supported formats: PDF, JPG, PNG. |
| use_pdf | Boolean | If the file type is PDF, set this to true |
| Parameter | Type | Description |
|---|---|---|
| base_64 | String | The OCI card document in Base64 format |
| Parameter | Type | Description |
|---|---|---|
| link | String | The OCI card document Link/URL |
| Parameter | Type | Description |
|---|---|---|
data.client_id | string | Unique identifier generated for this OCR processing request |
data.oci_number | string | The OCI registration number extracted from the card |
data.document_type | string | Type of document (e.g., 'V' for visa holder variant) |
data.surname | string | Family name of the OCI cardholder |
data.given_name | string | First and middle names of the OCI cardholder |
data.nationality | string | ISO 3166-1 alpha-3 country code of the cardholder's nationality |
data.date_of_birth | string | Birth date in DD/MM/YYYY format |
data.gender | string | Gender code ('M' for Male, 'F' for Female) |
data.place_of_birth | string | City or region where the cardholder was born |
data.date_of_issue | string | Date when the OCI card was issued in DD/MM/YYYY format |
data.place_of_issue | string | Location where the OCI card was issued |
data.file_number | string | Administrative file number assigned to the cardholder |
data.mrz_line_1 | string | First line of Machine Readable Zone from the document |
data.mrz_line_2 | string | Second line of Machine Readable Zone from the document |
data.is_valid | boolean | Indicates whether the extracted data and MRZ validation passed successfully |
status_code | integer | HTTP status code of the response |
success | boolean | Overall success indicator for the API request |
message | string | Human-readable status message |
message_code | string | Machine-readable code for the response status |
{
"data": {
"client_id": "ocr_oci_card_FsQnoEalUEURmbwpLNyV",
"oci_number": "A0168461",
"document_type": "V",
"surname": "",
"given_name": "RAVI KRISHNAN",
"nationality": "SGP",
"date_of_birth": "01/01/1984",
"gender": "M",
"place_of_birth": "MUMBAI",
"date_of_issue": "01/03/2022",
"place_of_issue": "SINGAPORE",
"file_number": "SGPS123E1N21",
"mrz_line_1": "V<IND<<RAVI<KRISHNAN<<<<<<<<<<<<<<<<<<<<<<<<",
"mrz_line_2": "A0168461<0SGP8401018M8312317SGPS123E1N21<<<<",
"is_valid": true
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"data": null,
"status_code": 400,
"success": false,
"message": "Invalid file format. Supported formats: PDF, JPG, PNG, TIFF",
"message_code": "invalid_file_format"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/ocr/oci-card' \
--header 'Authorization: Bearer <token>' \
--form 'file=@""' \
--form 'use_pdf=""'{
"data": {
"client_id": "ocr_oci_card_FsQnoEalUEURmbwpLNyV",
"oci_number": "A0168461",
"document_type": "V",
"surname": "",
"given_name": "RAVI KRISHNAN",
"nationality": "SGP",
"date_of_birth": "01/01/1984",
"gender": "M",
"place_of_birth": "MUMBAI",
"date_of_issue": "01/03/2022",
"place_of_issue": "SINGAPORE",
"file_number": "SGPS123E1N21",
"mrz_line_1": "V<IND<<RAVI<KRISHNAN<<<<<<<<<<<<<<<<<<<<<<<<",
"mrz_line_2": "A0168461<0SGP8401018M8312317SGPS123E1N21<<<<",
"is_valid": true
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}