API 參考
取得工具執行
GET
/v1/runs/{id}使用儲存的 provider、endpoint、輸入和價格讀取屬於目前呼叫者的執行。停用工具不會隱藏其歷史。cost 是最終向客戶收取的美元費用,而非待結算估計值。billedUnits 來自最終計量。輸入和輸出依保留原則到期;resultExpired 標記到期。目前待完成執行顯示 stoppable=false。
鑑權與許可權
使用當前 GloopAPI Key。模型、功能與許可權以當前 Key 的目錄及介面說明為準。
Authorization: Bearer $GLOOP_API_KEY鑑權方案: BearerAuth
請求
路徑引數
idstring必填
響應與錯誤
HTTP 200
成功回應。
application/json
- 型別
- object
- 額外屬性
- false
- 必填欄位
runIdcallerproviderendpointstatuspricecreatedAt
runIdstring必填callerstring必填providerstring必填- 最短長度
1
endpointstring必填- 最短長度
1
statusstring必填- 列舉
["READY","RUNNING","STOPPING","COMPLETED","FAILED","BLOCKED","STOPPED","TIMED_OUT"]
stoppableboolean選填inputobject選填- 額外屬性
true
outputunknown選填providerResponseobject選填- 額外屬性
false
providerResponse 子欄位(2)
httpStatusinteger必填errorstring選填
priceobject必填- 額外屬性
false
costobject選填- 額外屬性
false
billedUnitsinteger選填- 最小值
0
createdAtstring必填- 格式
"date-time"
completedAtstring選填- 格式
"date-time"
resultExpiredboolean選填
HTTP 401
數字錯誤碼和安全的提示訊息。驗證身分、存取控制、參數驗證及流量限制錯誤均採用此格式。
application/json
- 型別
- object
- 額外屬性
- false
- 必填欄位
codemessage
HTTP default
數字錯誤碼和安全的提示訊息。驗證身分、存取控制、參數驗證及流量限制錯誤均採用此格式。
application/json
- 型別
- object
- 額外屬性
- false
- 必填欄位
codemessage