v68

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-0170379386.9 KB
Chat

Download a chat file

Download 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}

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.