Download file content

View as Markdown
Download the bytes for one file.

Authentication

AuthorizationBearer

Use Bearer <api-key>.

Path parameters

fileIdstringRequired
Unique file identifier generated by BCTRL.

Headers

BCTRL-Subaccount-IdstringOptional
Optional effective subaccount context for organization API keys. Subaccount API keys are already scoped and cannot use this header to act as another subaccount.

Response headers

Content-DispositionstringOptional
Attachment filename for the downloaded file.
Content-Lengthinteger
Size of the streamed content in bytes when known.

Response

File content stream

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error