查詢文檔狀態
查詢文檔狀態
查詢知識庫文檔的狀態。
請求方法
GET
請求 URL
https://api-${endpoint}.gptbots.ai/v1/bot/data/detail/list
請求身份驗證
請參閱概述以取得身份驗證詳細資訊。
請求
請求範例
curl -X GET https://api-${endpoint}.gptbots.ai/v1/bot/data/detail/list?data_ids=65e18b26e121ab08cefb4a53&data_ids=65e18b26e121ab08cefb4a5333 \
-H 'Authorization: Bearer ${API Key}'
curl -X GET https://api-${endpoint}.gptbots.ai/v1/bot/data/detail/list?data_ids=65e18b26e121ab08cefb4a53&data_ids=65e18b26e121ab08cefb4a5333 \
-H 'Authorization: Bearer ${API Key}'
此代碼塊在浮窗中顯示
請求標頭
| 欄位 | 類型 | 描述 |
|---|---|---|
| Authorization | Bearer ${API Key} | 使用 Authorization: Bearer ${API Key} 進行身份驗證。API 金鑰可於 API Key 頁面取得。 |
請求參數
| 欄位 | 類型 | 必填 | 描述 |
|---|---|---|---|
| data_ids | array | 是 | 文檔 ID,可傳送多個。 |
回應
回應範例
[
{
"data_id": "65e18b26e121ab08cefb4a53",
"data_status": "AVAILABLE"
}
]
[
{
"data_id": "65e18b26e121ab08cefb4a53",
"data_status": "AVAILABLE"
}
]
此代碼塊在浮窗中顯示
成功回應
| 欄位 | 類型 | 描述 |
|---|---|---|
| doc | JSON Array | 文檔資訊。 |
| data_id | string | 文檔 ID。 |
| data_status | string | 文檔狀態。 |
失敗回應
| 欄位 | 類型 | 描述 |
|---|---|---|
| code | int | 錯誤代碼。 |
| message | string | 錯誤詳情。 |
錯誤代碼
| 錯誤代碼 | 錯誤訊息 |
|---|---|
| 40000 | 參數無效 |
| 40127 | 開發者身份驗證失敗 |
| 20059 | Agent 已刪除 |
