Get File by Filename
GET
https://api.cargopanel.co/v1/files/:filenameGET
https://sandbox-api.cargopanel.co/v1/files/:filenameStreams the raw file directly from storage. This is a public endpoint that does not require an API token.
Request Fields
filenamerequiredstringThe unique filename of the document (e.g. invoice_usr_xyz789_539103).
Example Response
200
Streams binary data of the file with appropriate headers, e.g.:
Content-Type: application/pdf Cache-Control: public, max-age=86400
Responses
200File downloaded successfully
404File not found