Download file content
Downloads the raw bytes of a file. Only files created server-side are downloadable; uploaded files return 400.
Path parameters
Query parameters
Workspace to scope the request to. Defaults to the caller’s default workspace.
Workspace to scope the request to. Defaults to the caller’s default workspace.
Store or read this file on the named provider using your own API key for it. Omit to use OpenRouter storage.
Store or read this file on the named provider using your own API key for it. Omit to use OpenRouter storage.
Response
The raw file content.
Changes
Changed in 2 of the 303 revisions of this API.214
- ▲
for the
pathrequest parameterfile_id, the minLength was increased from0to1request-parameter-min-length-increased
- ▲
added the pattern
^[\w-]+$to thepathrequest parameterfile_idrequest-parameter-pattern-added
- ●
for the
pathrequest parameterfile_id, the maxLength was set to256request-parameter-max-length-set
- ▲
- ○
added the new optional
queryrequest parameterprovidernew-optional-request-parameter
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
- ○
added the non-success response with the status
response-non-success-status-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○