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 for authentication (JWT format) |
| Content-Type | Yes | Must be set to multipart/form-data |
| Parameter | Type | Required | Description |
|---|---|---|---|
| file | File (PDF) | Yes | The PDF file to be analyzed |
POST /api/v1/pdf-metadata-check/upload HTTP/1.1
Host: sandbox.surepass.io
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="file"; filename="document.pdf"
Content-Type: application/pdf
[PDF file binary data]
------WebKitFormBoundary7MA4YWxkTrZu0gW--| Parameter | Type | Description |
|---|---|---|
| data | Object | Container for the response data |
| data.client_id | String | Unique identifier for the PDF metadata check request |
| data.file_size | String | Size of the PDF file in kilobytes |
| data.pdf_version | String | PDF version of the uploaded file |
| data.title | String | Title metadata of the PDF |
| data.author | String | Author metadata of the PDF |
| data.creator | String | Application or tool used to create the PDF |
| data.producer | String | Software that produced the PDF |
| data.creation_date | String | Date and time when the PDF was created |
| data.modification_date | String | Date and time when the PDF was last modified |
| data.is_encrypted | Boolean | Indicates if the PDF is password protected or encrypted |
| data.risk_level | String | Overall risk level detected for the PDF (low, medium, high) |
| data.warnings | Array | List of warning objects related to the PDF file |
| data.warnings[].indicator_id | String | Warning type identifier |
| data.warnings[].description | String | Warning message details |
| 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 |
{
"data": {
"client_id": "pdf_metadata_check_coaqdGbHeOvdmUdjfpLR",
"file_size": "656.83",
"pdf_version": "1.4",
"title": "",
"author": "",
"creator": "",
"producer": "iText® 5.5.10 ©2000-2015 iText Group NV (AGPL-version)",
"creation_date": "2021-04-08T12:04:40",
"modification_date": "2021-04-08T12:07:03",
"is_encrypted": false,
"risk_level": "high",
"warnings": [
{
"indicator_id": "modified_metadata",
"description": "This document was modified after it was created. This could be a sign of manipulation with a PDF editor"
},
{
"indicator_id": "modified_document",
"description": "This document has been incrementally updated. This is highly atypical for this type of document. This document is likely manipulated"
}
]
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}{
"status_code": 401,
"success": false,
"message": "Invalid or expired token",
"message_code": "unauthorized"
}curl --location --request POST 'https://kyc-api.surepass.app/api/v1/pdf-metadata-check/upload' \
--header 'Authorization: Bearer <token>' \
--form 'file=@""'{
"data": {
"client_id": "pdf_metadata_check_coaqdGbHeOvdmUdjfpLR",
"file_size": "656.83",
"pdf_version": "1.4",
"title": "",
"author": "",
"creator": "",
"producer": "iText® 5.5.10 ©2000-2015 iText Group NV (AGPL-version)",
"creation_date": "2021-04-08T12:04:40",
"modification_date": "2021-04-08T12:07:03",
"is_encrypted": false,
"risk_level": "high",
"warnings": [
{
"indicator_id": "modified_metadata",
"description": "This document was modified after it was created. This could be a sign of manipulation with a PDF editor"
},
{
"indicator_id": "modified_document",
"description": "This document has been incrementally updated. This is highly atypical for this type of document. This document is likely manipulated"
}
]
},
"status_code": 200,
"success": true,
"message": "Success",
"message_code": "success"
}