Skip to content

Download File

GET/web/v1/files/query/{fileBizId}/download JWT + Turnstile

Downloads a file directly as a streamed binary response. The response includes appropriate Content-Disposition, Content-Type, and Content-Length headers.

Required Headers

HeaderExample ValueDescription
Content-Typeapplication/jsonRequest content type
Acceptapplication/jsonExpected response type
X-Client-HashClient device fingerprint
Accept-Languageen, zh, zh-Hant, ja, viResponse language (default: en)
AuthorizationBearerJWT access token
X-Workspace-IdTarget workspace ID

Request Parameters

NameTypeRequiredInDescription
fileBizIdstringRequiredpathFile business ID

Success Response

The response is a binary file stream with the following headers:

HeaderExample Value
Content-Dispositionattachment; filename="invoice.pdf"
Content-Typeapplication/pdf
Content-Length102400

Error Responses

Unauthorized 401
{
  "success": false,
  "code": "4010",
  "message": "Invalid or expired token"
}
Not Found 404
{
  "success": false,
  "code": "4040",
  "message": "File not found"
}

Notes

  • The response body is a raw binary stream, not a JSON envelope.
  • For large files, consider using Get Download URL instead to offload the download to object storage directly.
  • The original filename is preserved in the Content-Disposition header.

SlaunchX Internal Documentation