Skip to main content
GET
下载或预览文件

限制说明

使用说明

  • 成功响应有两种形式:302 重定向到短期有效的对象存储预签名 URL(存储在 S3 兼容存储中的文件),或 200 二进制流(托管在自托管 runner 上的文件)。请跟随重定向。
  • 响应携带 Cache-Control: private, no-store —— 网关不会缓存。

授权

app_key
string
query
必填

App key issued from the Flashduty console. Required on every public API call. Keep it secret — it grants the same access as the owning account.

查询参数

t
string
必填

POST /safari/artifact/sign 签发的令牌。与调用账号及成员绑定,有效期 5 分钟。

mode
enum<string>
默认值:download

download(默认)以附件形式返回文件;preview 以 inline 方式返回供浏览器预览。其他取值按 download 处理。

可用选项:
download,
preview

响应

文件内容流。当文件托管在自托管 runner 上时由服务端代理返回,Content-Disposition 随 mode 变化。

The response is of type file.