获取 File 内容的临时下载地址。
路径
GET /api/v1/forward/files/{file_id}/content
请求头
| 头部 | 必选 | 说明 |
|---|---|---|
Authorization | 是 | Bearer <PAT 或 SAT> |
路径参数
| 参数 | 类型 | 必选 | 说明 |
|---|---|---|---|
file_id | string | 是 | 要下载的 File ID。 |
示例请求
示例响应
空列表响应
不适用;该接口不返回列表。
响应字段解释
| 字段 | 类型 | 说明 |
|---|---|---|
url | string | 临时下载地址。 |
expires_at | string | 下载地址过期时间。 |
错误码
| HTTP | type | 触发条件 |
|---|---|---|
| 401 | authentication_error | 缺少或无效的认证令牌。 |
| 403 | permission_error | 当前调用方无权访问该资源。 |
| 404 | not_found_error | 资源不存在或不可见。 |
| 500/502/503 | api_error | Forward 或依赖服务失败。 |