GET
Error

Авторизации

Authorization
string
header
обязательно

API Key authentication. For all API requests, include your API Key in the Authorization HTTP Header, prefixed with Bearer. Example: Authorization: Bearer {API_KEY}. Strongly recommend storing your API Key on the server-side, not shared or stored on the client-side, to avoid possible API-Key leakage that can lead to serious consequences.

Параметры пути

file_id
string<uuid>
обязательно

The unique identifier of the file to preview, obtained from the Upload File API response.

Параметры запроса

as_attachment
boolean
по умолчанию:false

If true, forces the file to download as an attachment instead of previewing in browser.

user
string

User identifier, used for end-user context.

Ответ

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.

The response is of type file.