API 參考
查詢託管檔案
GET
/v1/files/{file_id}同賬戶同 Key 歷史檔案;允許耗盡但有效的 Key,撤銷/過期仍拒絕。下載需 ready,引用中刪除 409;retry 只重試儲存原結果,非重新生成。普通 API 按保留天數,持久任務保護引用,expires_at=0 不定時過期。
鑑權與許可權
使用當前 GloopAPI Key。模型、功能與許可權以當前 Key 的目錄及介面說明為準。
Authorization: Bearer $GLOOP_API_KEY鑑權方案: BearerAuth
請求
路徑引數
file_idstring必填同 Key 的託管檔案公開 ID。
響應與錯誤
HTTP 200
查詢託管檔案成功
application/json
- 型別
- object
- 必填欄位
idsource_kindsource_indexmodelstatusmime_typefile_namesize_bytescreated_atupdated_atexpires_at
idstring必填該物件的公開識別符號;用於對應詳情路徑。
source_kindstring必填檔案來源類別;決定生命週期和引用保護規則。
source_indexinteger必填來源結果項索引。
modelstring必填當前 Key 目錄中的公開模型 ID。
statusstring必填waiting/pending/archiving/ready/failed/deleting 等後臺儲存階段;ready 後才可取得下載地址。
mime_typestring必填已核驗檔案 MIME 型別。
file_namestring必填公開下載檔名。
sha256string選填歸檔內容 SHA-256,若已確定則返回。
size_bytesinteger必填檔案位元組數。
error_codestring選填可用於分支處理的公開錯誤碼。
created_atinteger必填Unix 秒建立時間。
updated_atinteger必填Unix 秒最後更新時間。
expires_atinteger必填Unix 秒;0 表示長期保留。普通 API 按部署天數策略;持久影象/影片引用保護結果,刪除仍保留賬務及冪等記錄。
HTTP 400
請求欄位或引數無效。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 401
Key 缺失、無效、過期或已撤銷。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 403
IP、賬戶、模型或工具許可權不足。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 404
物件/能力不可用,或功能開關關閉。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 409
冪等/報價衝突、物件未準備或仍被引用。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 429
請求/佇列限流。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 500
鑑權或資料儲存內部失敗。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 503
服務、定價或儲存不可用。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填