Public Download
Prod
https://api.everabyte.io/api
Prod
https://api.everabyte.io/api
GET
https://api.everabyte.io/api
/files/download/{fileId}/shared
GET
(Since it's a download, GET is the appropriate method)fileId
(required): The ID of the file to download. Example: b5h86j5dkl7m0rnylnkt3kfh
GET /files/download/b5h86j5dkl7m0rnylnkt3kfh/shared
b5h86j5dkl7m0rnylnkt3kfh
.200 OK
: File download successful. The file content will be in the response body.400 Bad Request
: Invalid request parameters.401 Unauthorized
: User is not authorized to download this file. (Important for shared files)404 Not Found
: File not found.500 Internal Server Error
: Server error.Content-Type
header (e.g., application/pdf
, image/jpeg
, application/octet-stream
for generic binary data) to indicate the file's MIME type.Content-Disposition
header should be used to suggest a filename to the browser. For example: Content-Disposition: attachment; filename="downloaded_file.pdf"
401 Unauthorized
to indicate access issues with shared files.Request
None