Skip to content

Download file content

GET/v5/files/{file_id}/content

Download the raw bytes of a file by id.

Streams the stored object’s content back directly (not a redirect or signed URL), with the response Content-Type set to the file’s stored MIME type and Content-Disposition set to attachment. Use the metadata endpoint for size, filename, and other attributes.

Path ParametersExpand Collapse
file_id: string
Header ParametersExpand Collapse
"x-project-id": optional string

Download file content

curl https://api.egp.scale.com/v5/files/$FILE_ID/content \
    -H "x-api-key: $SGP_API_KEY"
{}
Returns Examples
{}