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 authentication using JWT |
Content-Type | Yes | Must be multipart/form-data for direct image upload or application/json for base64/URL inputs |
Parameter | Type | Required | Description |
---|---|---|---|
front | Image | Yes | Front side image of the driver's license |
back | Image | Yes | Back side image of the driver's license |
Parameter | Type | Required | Description |
---|---|---|---|
front_base64 | String | Yes | Base64 encoded string of the front side image |
back_base64 | String | Yes | Base64 encoded string of the back side image |
Parameter | Type | Required | Description |
---|---|---|---|
front_link | String | Yes | URL/link to the front side image of the license |
back_link | String | Yes | URL/link to the back side image of the license |
{
"front_link": "https://example.com/license-front.jpg",
"back_link": "https://example.com/license-back.jpg"
}
Parameter | Type | Description |
---|---|---|
data | Object | Contains the extracted license information |
data.client_id | String | Unique identifier for the OCR request |
data.license_number | String | Extracted license number |
data.dob | String | Date of birth in YYYY-MM-DD format |
data.address | String | Full address extracted from the license |
data.name | String | Full name of the license holder |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates if the request was successful |
message | String | Additional information or error message (null if successful) |
message_code | String | Code indicating the status of the request |
{
"data": {
"client_id": "ocr_license_v2_peMjfqmmkooUlVNFzhWw",
"license_number": "UP12 20200123456",
"dob": "2000-07-20",
"address": "SOUTH CIVIL LINE, Muzaffarnagar, UP 251001",
"name": "SUDHANSHU"
},
"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/license-v2' \
--form 'front=@""' \
--form 'back=@""'
{
"data": {
"client_id": "ocr_license_v2_peMjfqmmkooUlVNFzhWw",
"license_number": "UP12 20200123456",
"dob": "2000-07-20",
"address": "SOUTH CIVIL LINE, Muzaffarnagar, UP 251001",
"name": "SUDHANSHU"
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}