File

Downloads a file in its original/unprocessed state.

Downloads a file in its original/unprocessed state.

get/{accountId}/raw{filePath}

Path parameters

accountIdstring required

Your account ID.

This is visible on the settings page:

https://www.bytescale.com/dashboard/settings

Example:A623uY2
filePathstring required

Absolute path to a file. Begins with a /.

Example:/uploads/image.jpg

Query parameters

cacheboolean
Example:true

Specifies whether to cache the raw file in the Bytescale CDN.

Default: true

cache-ttlnumber
Example:31536000

Specifies the maximum amount of time, in seconds, the file will be cached on the user's device and in the Bytescale CDN's edge cache.

Default: Please refer to your account's default cache settings in the Bytescale Dashboard.

cache-ttl-404number
Example:31536000

Specifies the maximum amount of time, in seconds, that 404 responses will be cached in the Bytescale CDN's edge cache.

Default: Please refer to your account's default cache settings in the Bytescale Dashboard.

number
OR
'inf'
Example:1748005508

Expires the URL at the given time.

Accepted values:

  • An integer (in milliseconds or seconds since January 1, 1970, 00:00:00 UTC)

  • The literal string inf to indicate that the URL should never expire (the default)

See: Expiring URLs

versionstring
Example:1

Downloads the latest version of your file (if you have overwritten it) when added to the URL with a unique value.

The value of the version parameter can be anything, e.g. an incremental number, a timestamp, etc.

You only need to provide and update this value if/when you overwrite your file.

Response

Success.

Changes

No recorded changes to this endpoint across all 1 revision of this API.