Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer TOKEN.https://sandbox.surepass.apphttps://kyc-api.surepass.app| Header | Required | Description |
|---|---|---|
| Authorization | Yes | JWT Bearer token for API authentication. Format: Bearer {token} |
| Content-Type | Yes | Must be multipart/form-data for file upload |
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | File | Yes | Death certificate document in PDF format. Only PDF files are supported. |
| Parameter | Type | Description |
|---|---|---|
| data | Object | Container object for the response data |
| data.client_id | String | Unique identifier for this OCR extraction request. Format: ocr_death_certificate_extract_{unique_id} |
| data.page_number | Integer | The page number within the PDF document that contains the death certificate. This indicates which page was processed and from which the data was extracted |
| data.image_base64 | String | Base64-encoded processed image of the death certificate |
| status_code | Integer | HTTP status code of the response (200 for success) |
| success | Boolean | Indicates whether the request was successful |
| message | String | Human-readable message describing the result |
| message_code | String | Machine-readable code for the message (e.g., "success") |
{
"data": {
"client_id": "ocr_death_certificate_extract_EICrvgwjLPwicqvcxIjd",
"page_number": 1,
"image_base64": "iVBORw0KGgoAAAANSUhEUgAABVQAAAHUCAYAAADVR7H2xoKKsiulAuyIP4RwD"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"data": null,
"status_code": 401,
"success": false,
"message": "Unauthorized - Invalid or missing authentication token",
"message_code": "unauthorized"
}Bearer {token}.curl --location --request POST 'https://kyc-api.surepass.app/api/v1/ocr/death-certificate-extract' \
--header 'Authorization: Bearer <token>' \
--form 'file=@""'{
"data": {
"client_id": "ocr_death_certificate_extract_EICrvgwjLPwicqvcxIjd",
"page_number": 1,
"image_base64": "iVBORw0KGgoAAAANSUhEUgAABVQAAAHUCAYAAADVR7H2xoKKsiulAuyIP4RwD"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}