Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer TOKEN.https://sandbox.surepass.iohttps://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 or PDF | Yes | Front side image of the driver's license |
| back | Image or PDF | Yes | Back side image of the driver's license |
| use_pdf | Text | Optional | Set this parameter to "true" when uploading license documents in PDF format. |
| 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 |
# Using multipart/form-data
Content-Disposition: form-data; name="front";
filename="front.jpg"
Content-Type: image/jpeg
or
filename="front.pdf"
Content-Type: application/pdf
--boundary
Content-Disposition: form-data; name="back";
filename="back.jpg"
Content-Type: image/jpeg
or
filename="back.pdf"
Content-Type: application/pdf
| 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' \
--header 'Authorization: Bearer <token>' \
--form 'front=@""' \
--form 'back=@""' \
--form 'use_pdf="true"'{
"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"
}