Feel free to reach techsupport@surepass.io for any technical support or guidance.
file_id serving as a reference for retrieving parsed results through complementary parsing endpoints.Authorization header as Bearer TOKEN.https://sandbox.surepass.apphttps://kyc-api.surepass.app| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer JWT token for authentication. Format: Bearer <your_jwt_token> |
| Content-Type | Yes | Must be set to multipart/form-data for file upload |
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | File | Yes | The document file to be uploaded. Only PDF is supported. The file should be sent as form-data with the key name 'file'. |
| Parameter | Type | Description |
|---|---|---|
| success | Boolean | Indicates whether the API request was successful (true) or failed (false) |
| status_code | Integer | HTTP status code of the response (200 for success) |
| message | String | Human-readable message describing the result of the operation |
| message_code | String | Machine-readable code for the operation result (e.g., "success") |
| data | Object | Container object holding the response payload |
| data.file_id | String | Unique identifier for the uploaded file. Use this ID for subsequent parsing operations. Format: studio_file_<random_string> |
| data.name | String | Original filename of the uploaded document |
{
"data": {
"file_id": "studio_file_lyoWkhcQyExjshhzcqof",
"name": "sample.pdf"
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"success": false,
"status_code": 401,
"message": "Unauthorized access. Invalid or expired token.",
"message_code": "unauthorized"
}file_id securely for future reference and parsing operations.file_id to extract structured data from the uploaded documentcurl --location --request POST 'https://kyc-api.surepass.app/api/v1/sureparser/upload-file' \
--header 'Authorization: Bearer <token>' \
--form 'file=@""'{
"data": {
"file_id": "fileABCDEFGHIJKLMNOPQRSTU",
"name": "sample.pdf"
},
"status_code": 200,
"message": "Success",
"success": true
}