跳至主要内容
版本:PrivStation 2.4.0
Markdown 原文

取得所有檔案列表

此 API 用於取得目前已上傳至 Storage 中的所有檔案清單。每個檔案都包含其唯一 ID、檔名、檔案類型、上傳時間等基本資訊,可用於後續建立 Fileset、檢查上傳狀態或執行維運管理。

curl -X 'GET' \

'http://127.0.0.1:8000/v1/files?limit=20&order=desc' \

-H 'accept: application/json' \

-H 'Authorization: Bearer <your-api-key>'
  • 檔案列表回傳的是 File 物件基本資訊與解析資訊

  • 檔案是否已解析完成,請查看 metadata.parsed_results 內各模式的 parsing_state

Request Headers​

KeyValue
Request MethodGET
acceptapplication/json
AuthorizationBearer <master-key>

Query Parameters​

FieldTypeNoteRequired
limitint1 - 10000,預設為 10000false
orderstringasc or desc,預設為 descfalse
afterstringuuidfalse
beforestringuuidfalse
purposestring(與 OpenAI 相容而保留)false