API 參考

查詢託管檔案

GET/v1/files

同賬戶同 Key 歷史檔案;允許耗盡但有效的 Key,撤銷/過期仍拒絕。下載需 ready,引用中刪除 409;retry 只重試儲存原結果,非重新生成。普通 API 按保留天數,持久任務保護引用,expires_at=0 不定時過期。

鑑權與許可權

使用當前 GloopAPI Key。模型、功能與許可權以當前 Key 的目錄及介面說明為準。

Authorization: Bearer $GLOOP_API_KEY

鑑權方案: BearerAuth

請求

查詢引數

  • afterinteger選填

    使用原響應 next_cursor,每頁由服務固定 50 項。

    預設值
    0
    最小值
    0

響應與錯誤

HTTP 200

查詢託管檔案成功

application/json

型別
object
必填欄位
datanext_cursor
  • dataarray必填
    data 子欄位(1)
    • []object選填
      [] 子欄位(13)
      • 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 按部署天數策略;持久影象/影片引用保護結果,刪除仍保留賬務及冪等記錄。

  • next_cursorinteger必填

HTTP 400

請求欄位或引數無效。

application/json

型別
object
必填欄位
error

HTTP 401

Key 缺失、無效、過期或已撤銷。

application/json

型別
object
必填欄位
error

HTTP 403

IP、賬戶、模型或工具許可權不足。

application/json

型別
object
必填欄位
error

HTTP 404

物件/能力不可用,或功能開關關閉。

application/json

型別
object
必填欄位
error

HTTP 409

冪等/報價衝突、物件未準備或仍被引用。

application/json

型別
object
必填欄位
error

HTTP 429

請求/佇列限流。

application/json

型別
object
必填欄位
error

HTTP 500

鑑權或資料儲存內部失敗。

application/json

型別
object
必填欄位
error

HTTP 503

服務、定價或儲存不可用。

application/json

型別
object
必填欄位
error