Feel free to reach techsupport@surepass.io for any technical support or guidance.
Authorization header as Bearer TOKEN.https://sandbox.surepass.iohttps://kyc-api.surepass.io| Header | Required | Description |
|---|---|---|
| Authorization | Yes | Bearer token authentication using JWT |
| Content-Type | Yes | application/json |
| Parameter | Type | Required | Description |
|---|---|---|---|
| client_id | String | Yes | Your unique client identifier provided by Surepass |
| link | String | Yes | A publicly accessible URL pointing to the PDF file to be uploaded |
{
"client_id": "{{client_id}}",
"link": "https://www.aeee.in/wp-content/uploads/2020/08/Sample-pdf.pdf"
}| Parameter | Type | Description |
|---|---|---|
| data | Object | Contains the response data |
| data.uploaded | Boolean | Indicates whether the file was successfully uploaded (true) or not (false) |
| status_code | Integer | HTTP status code of the response |
| message_code | String | A code indicating the result of the operation |
| message | String | A human-readable message describing the result |
| success | Boolean | Indicates whether the overall operation was successful |
{
"data": {
"uploaded": true
},
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}{
"data": {
"uploaded": false
},
"status_code": 400,
"message_code": "invalid_url",
"message": "The provided URL is invalid or inaccessible",
"success": false
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/esign/upload-pdf' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"client_id": "{{client_id}}",
"link": "https://www.aeee.in/wp-content/uploads/2020/08/Sample-pdf.pdf"
}'{
"data": {
"uploaded": true
},
"status_code": 200,
"message_code": "success",
"message": "Success",
"success": true
}