GET /api/v1/documents/{id}/content-base64 — Download File v1
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 document ID
Responses
HTTP 200 — Document content as Base64
{
"data": {
"file": "JVBERi0xLjQKJeLj..........",
"fileName": "A Simple PDF File.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": ""
}