Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer <YOUR_JWT_TOKEN>.https://sandbox.surepass.apphttps://kyc-api.surepass.app⚠️ Never share your JWT token publicly or embed it in client-side code. Use environment variables or a secrets manager to store credentials securely.
| Header | Required | Description |
|---|---|---|
Authorization | Yes | JWT Bearer token in the format Bearer <YOUR_JWT_TOKEN> |
Content-Type | Yes | Must be multipart/form-data when uploading files |
| Parameter | Type | Required | Description |
|---|---|---|---|
file | File | Yes | The Udyog Aadhaar / Udyam registration certificate to be processed. Accepted formats include common image types (JPEG, PNG) and PDF. |
use_pdf | Boolean | No | Set to true when the uploaded file is a PDF document. If omitted or false, the file is treated as an image. |
| Parameter | Type | Description |
|---|---|---|
data | Object | Contains the extracted document data. |
data.client_id | String | A unique identifier for this specific OCR request, prefixed with ocr_udyog_aadhaar_. |
data.id_number | String | The extracted UDYAM registration number from the certificate (e.g., UDYAM-UP-11-0001234). |
data.document_type | String | The type of document identified. Returns "udyam" for Udyam/Udyog Aadhaar certificates. |
status_code | Integer | HTTP status code of the response. 200 indicates success. |
success | Boolean | true if the request was processed successfully; false otherwise. |
message | String | A human-readable status message (e.g., "success"). |
message_code | String | A machine-readable status code string (e.g., "success"). |
{
"data": {
"client_id": "ocr_udyog_aadhaar_ZsqtIuswKMrjVxCryfXu",
"id_number": "UDYAM-UP-11-0001234",
"document_type": "udyam"
},
"status_code": 200,
"success": true,
"message": "success",
"message_code": "success"
}{
"data": null,
"status_code": 401,
"success": false,
"message": "Authentication credentials were not provided or are invalid.",
"message_code": "unauthorized"
}Authorization header is missing, malformed, or contains an expired/invalid JWT token. Ensure you are passing a valid Bearer <TOKEN> and that the token has not expired.id_number to auto-populate registration fields, reducing manual input and the risk of transcription errors.client_id references) for audit and dispute resolution purposes, without storing the actual document content beyond the required retention period.curl --location 'https://kyc-api.surepass.app/api/v1/ocr/udyog-aadhaar' \
--header 'Authorization: Bearer <token>' \
--form 'file=@""'{
"data": {
"client_id": "ocr_udyog_aadhaar_ZsqtIuswKMrjVxCryfXu",
"id_number": "UDYAM-UP-11-0001234",
"document_type": "udyam"
},
"status_code": 200,
"success": true,
"message": "success",
"message_code": "success"
}