GET /api/v2/documents/{id}/content-base64 — Download File v2
The "File Download" API allows users to download files from the server by providing the unique identifier (FileId) of the desired file. This API is particularly useful for applications that require file handling and management, enabling seamless integration with the system to securely retrieve files.
Authentication
Bearer
Request Headers
- Authorization (required)
- Bearer {token}
Path Parameters
- Id (string, required)
- The unique identifier of the file to be downloaded.
Responses
HTTP 200 — Document content with metadata
{
"data": [
{
"file": "JVBERi0xLjMKJeLjz9MKMiAwI.....",
"fileName": "files.pdf",
"contentType": "application/pdf"
}
],
"errorCode": 0,
"message": null,
"returnUrl": "/dashboard",
"stateValidationErrors": null,
"signature": ""
}HTTP 200 — Unauthorized
{
"data": null,
"errorCode": 14,
"message": "The User is Unauthorized to access The file File Id = {fileId} ",
"returnUrl": "/dashboard",
"stateValidationErrors": null,
"signature": ""
}