Download file content

Download the raw binary content of a file. The response includes an appropriate Content-Type header detected via libmagic and a Content-Disposition: attachment header with the original filename.

Path parameters

file_idstringRequired

Query parameters

scope_idstringRequired

Session / container identifier.

namespacestringOptionalDefaults to session
Namespace the file belongs to. Defaults to 'session'.
dispositionstringOptionalDefaults to attachment

Content-Disposition mode for the response: attachment (default, browser download) or inline (open in browser / preview). Corresponds to RFC 6266.

Response

Raw file bytes with MIME-typed content.

Errors

401
Unauthorized Error
404
Not Found Error
422
Unprocessable Entity Error
503
Service Unavailable Error