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 YOUR_JWT_TOKEN |
Content-Type | Yes | Must be multipart/form-data for file uploads |
Parameter | Type | Required | Description |
---|---|---|---|
file | File (Image/PDF) | Conditional* | Complete UAE ID image or PDF containing both sides |
front | File (Image/PDF) | Conditional* | Front side image or PDF of the UAE ID |
back | File (Image/PDF) | Conditional* | Back side image or PDF of the UAE ID |
use_pdf | Boolean | No | Set to true if the uploaded file is a PDF. Default is false |
link | String | No | Url |
front_link | String | Conditional* | Front side image url |
back_link | String | Conditional* | Back side image url |
file
, front
, or back
is required to process the request.
Parameter | Type | Description |
---|---|---|
data | Object | Contains all the extracted information |
data.client_id | String | Unique identifier for the OCR request |
data.name | OCR Object | Extracted name from the Emirates ID |
data.gender | OCR Object | Extracted gender (M/F) |
data.dob | OCR Object | Extracted date of birth in YYYY-MM-DD format |
data.nationality | OCR Object | Extracted nationality of the ID holder |
data.issue_date | OCR Object | ID issue date in YYYY-MM-DD format |
data.expiry_date | OCR Object | ID expiry date in YYYY-MM-DD format |
data.occupation | OCR Object | Extracted occupation of the ID holder |
data.employer | OCR Object | Extracted employer information |
data.issuing_place | OCR Object | Location where the ID was issued |
status_code | Integer | HTTP status code of the response |
success | Boolean | Indicates if the request was successful |
message | String | Human-readable status message |
message_code | String | Machine-readable status code |
Field | Type | Description |
---|---|---|
value | String | The extracted value of the field |
confidence | Float | Confidence score between 0 and 1 indicating extraction accuracy |
{
"data": {
"client_id": "ocr_uae_emirates_v2_vTPbNlWAsxbtCMqmgeaW",
"name": {
"value": "Muhammad",
"confidence": 0.96
},
"gender": {
"value": "M",
"confidence": 0.98
},
"dob": {
"value": "1800-01-04",
"confidence": 0.99
},
"nationality": {
"value": "Pakistan",
"confidence": 0.98
},
"issue_date": {
"value": "2022-01-21",
"confidence": 0.99
},
"expiry_date": {
"value": "2024-01-20",
"confidence": 0.99
},
"occupation": {
"value": "Light Vehicle Driver",
"confidence": 0.95
},
"employer": {
"value": "Engineering Techniques ServicesL",
"confidence": 0.97
},
"issuing_place": {
"value": "Fujairah",
"confidence": 0.98
}
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}
{
"status_code": 400,
"success": false,
"message": "At least one of file, front, or back is required",
"message_code": "missing_required_parameters"
}
curl --location --request POST 'https://kyc-api.surepass.app/api/v1/ocr/uae-emirates-v2' \
--form 'file=@""'
{
"data": {
"client_id": "ocr_uae_emirates_v2_vTPbNlWAsxbtCMqmgeaW",
"name": {
"value": "Muhammad",
"confidence": 0.96
},
"gender": {
"value": "M",
"confidence": 0.98
},
"dob": {
"value": "1800-01-04",
"confidence": 0.99
},
"nationality": {
"value": "Pakistan",
"confidence": 0.98
},
"issue_date": {
"value": "2022-01-21",
"confidence": 0.99
},
"expiry_date": {
"value": "2024-01-20",
"confidence": 0.99
},
"occupation": {
"value": "Light Vehicle Driver",
"confidence": 0.95
},
"employer": {
"value": "Engineering Techniques ServicesL",
"confidence": 0.97
},
"issuing_place": {
"value": "Fujairah",
"confidence": 0.98
}
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}