cargopanel logocargopanel for developers

Get File by Filename

GEThttps://api.cargopanel.co/v1/files/:filename
GEThttps://sandbox-api.cargopanel.co/v1/files/:filename

Streams the raw file directly from storage. This is a public endpoint that does not require an API token.

Request Fields

filenamerequiredstring

The 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