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 | Bearer token for authentication (JWT format) |
Content-Type | Yes | Must be set to multipart/form-data for file upload |
Parameter | Type | Required | Description |
---|---|---|---|
file | Yes | Vehicle Insurance Policy Certificate to be processed via OCR |
Parameter | Type | Description |
---|---|---|
data | Object | Contains the response data |
data.client_id | String | Unique identifier for tracking the OCR request |
data.status | String Enum | Current status of the certificate processing |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates if the request was successful |
message | String | Human-readable description of the response |
message_code | String | Code indicating the type of response message |
processing
: Document is currently being processedsuccess
: Document was successfully processedfailed
: Document processing failed{
"data": {
"client_id": "ocr_vehicle_insurance_mfgqMpFKmzkqzCiMsXvY",
"status": "processing"
},
"status_code": 200,
"success": true,
"message": "Request Successfully Submitted",
"message_code": "success"
}
{
"data": null,
"status_code": 400,
"success": false,
"message": "Invalid file format. Only PDF files are supported.",
"message_code": "invalid_file_format"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/ocr/vehicle-insurance/submit' \
--form 'file=@""'
{
"data": {
"client_id": "ocr_vehicle_insurance_mfgqMpFKmzkqzCiMsXvY",
"status": "processing"
},
"status_code": 200,
"success": true,
"message": "Request Successfully Submitted",
"message_code": "success"
}