Skip to content

檔案上傳與儲存管理介面 (/v1/files) ​

在發起批次轉錄任務前,管理已暫存至 OneASR 伺服端的音訊檔案。


1. 上傳音訊檔案 (POST /v1/files/upload) ​

http
POST /v1/files/upload
Authorization: Bearer sk-oneasr-...
Content-Type: multipart/form-data

回應主體: ​

json
{
  "file_id": "file_4a2c9b1e0f3d5a7b",
  "filename": "interview.mp3",
  "size_bytes": 14502300,
  "duration_seconds": 1820.5,
  "created_at": "2026-09-28T15:00:00Z"
}

2. 查詢檔案清單 (GET /v1/files/list) ​

http
GET /v1/files/list?limit=20&offset=0
Authorization: Bearer sk-oneasr-...

3. 刪除檔案 (DELETE /v1/files/{file_id}) ​

http
DELETE /v1/files/file_4a2c9b1e0f3d5a7b
Authorization: Bearer sk-oneasr-...