取得所有檔案列表¶

此 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¶
| Key | Value |
|---|---|
| Request Method | GET |
| accept | application/json |
| Authorization | Bearer |
Query Parameters¶
| Field | Type | Note | Required |
|---|---|---|---|
| limit | int | 1 - 10000,預設為 10000 | false |
| order | string | asc or desc,預設為 desc | false |
| after | string | uuid | false |
| before | string | uuid | false |
| purpose | string | (與 OpenAI 相容而保留) | false |