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 | JWT Bearer token for authentication. Format: Bearer <token> |
Content-Type | Yes | Must be set to application/json |
Parameter | Type | Description |
---|---|---|
file | Image | Upload Cheque Image |
use_pdf | Boolean | If the file type is PDF, set this to true |
Parameter | Type | Description |
---|---|---|
base_64 | String | Cheque Image in Base64 format |
Parameter | Type | Description |
---|---|---|
link | String | Cheque Image Link/URL |
{
"base64": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/..."
}
Parameter | Type | Description |
---|---|---|
data | Object | Contains the main response data |
data.documents | Array | Array of Document objects |
status_code | Integer | HTTP status code indicating the result |
message_code | String | Code representing the result status |
message | String | Additional message, if any |
success | Boolean | Indicates whether the request was successful |
Parameter | Type | Description |
---|---|---|
type | String | Type of the document identified |
score | Float | Confidence score for classification |
{
"data": {
"documents": [
{
"type": "aadhaar_front_bottom",
"score": 0.9931775331497192
}
]
},
"status_code": 200,
"message_code": "success",
"message": null,
"success": true
}
{
"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/document-detect' \
--form 'file=@""'
{
"data": {
"documents": [
{
"type": "aadhaar_front_bottom",
"score": 0.9931775331497192
}
]
},
"status_code": 200,
"message_code": "success",
"message": null,
"success": true
}