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 format: Bearer <your_token> |
Content-Type | Yes | Must be set to multipart/form-data for file upload |
Parameter | Type | Required | Description |
---|---|---|---|
front | File (Image) | Yes | Upload front image of license |
back | File (Image) | Yes | Upload back image of license |
Parameter | Type | Required | Description |
---|---|---|---|
front_base64 | String | Yes | Front image of license in Base64 format |
back_base64 | String | Yes | Back image of license in Base64 format |
Parameter | Type | Required | Description |
---|---|---|---|
front_link | String | Yes | URL for front image of license |
back_link | String | Yes | URL for back image of license |
# Using multipart/form-data
Content-Disposition: form-data; name="front"; filename="front.jpg"
Content-Type: image/jpeg
--boundary
Content-Disposition: form-data; name="back"; filename="back.jpg"
Content-Type: image/jpeg
Parameter | Type | Description |
---|---|---|
data | Object | Container for the extracted license information |
data.document_type | String/null | Type of the document identified (null if not determined) |
data.license_number | Object | Contains the extracted license number information |
data.license_number.value | String | The extracted license number |
data.license_number.confidence | Integer | Confidence score (0-100) for the extracted license number |
data.dob | Object | Contains the extracted date of birth information |
data.dob.value | String | The extracted date of birth in YYYY-MM-DD format |
data.dob.confidence | Integer | Confidence score (0-100) for the extracted date of birth |
data.image_url | String/null | URL to the processed image (if available) |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates if the API call was successful |
message | String/null | Additional information about the response (null if no message) |
message_code | String | Code indicating the status of the operation |
{
"data": {
"document_type": null,
"license_number": {
"value": "ANO1 20131234567",
"confidence": 83
},
"dob": {
"value": "1990-01-01",
"confidence": 84
},
"image_url": 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/license' \
--form 'front=@""' \
--form 'back=@""'
{
"data": {
"document_type": null,
"license_number": {
"value": "ANO1 20131234567",
"confidence": 83
},
"dob": {
"value": "1990-01-01",
"confidence": 84
},
"image_url": null
},
"status_code": 200,
"success": true,
"message": null,
"message_code": "success"
}