Files
Download File
Available for: Chatflow, Chatbot, Agent, Text Generator apps.
Returns the raw bytes of a file previously returned by Upload File. A file is reachable only through the app whose messages reference it.
get/files/{file_id}/preview
Path parameters
file_idstring uuid required
ID of the file to download, from the Upload File response.
Query parameters
as_attachmentboolean
When true, the file downloads as an attachment instead of rendering inline in the browser.
userstring
End-user identifier, defined by your app and unique within it. It has no effect on file access here, which is scoped by app and message rather than by user. See End User Identity.
Response
Returns the raw file content. The Content-Type header is set to the file's MIME type. If as_attachment is true, the file is returned as a download with Content-Disposition: attachment.