Chat
Download a chat file
Changed onDownload the raw content of a file generated or uploaded during a chat session (for example, an image produced by the assistant). Returns the file bytes with a Content-Type header matching the file's MIME type.
get/rest/api/v1/chat-files/{fileId}
Request
- Base URL: https://instance-name-be.glean.com
- URL: https://instance-name-be.glean.com/rest/api/v1/chat-files/{fileId}
- Auth: HTTP bearer
Path parameters
fileIdstring required
Identifier of the chat file to download.
Query parameters
previewboolean
When true and the file is a PDF, the response is served inline (Content-Disposition: inline) instead of as an attachment.
Response
File content.
Changes
- info
the endpoint scheme security
APITokenwas added to the API
- info
- info
the endpoint scheme security
APITokenwas removed from the API
- info