Files
Files 操作
Get file metadata
路徑參數
- 類型: string · File Idfile
_id 必填
回應
- 類型: object · FileMetadata200
Successful Response
- 類型: string · Created At格式: date-timecreated
_at 必填the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z
- 類型: boolean · Downloadabledownloadable必填
Whether the original bytes can be downloaded. Uploaded files cannot.
- 類型: string · Filenamefilename必填
- 類型: string · Idid必填
- 類型: string · Mime Typemime
_type 必填 - 類型: integer · Size Bytessize
_bytes 必填Integer numbers.
- 類型: string · Source列舉source必填
Origin of the file:
uploadfor user uploads,generatedfor model outputs.值- upload
- generated
- type常數:file必填
application/json - 類型: object · HTTPValidationError422
Validation Error
- 類型: array object[] · Detaildetail
- loc類型: array · Location必填
- 類型: string
- msg類型: string · Message必填
- type類型: string · Error Type必填
- ctx類型: object · Context
- input
application/json
Request Example for get/api/v1/files/{file_id}
curl 'https://openapi.felo.ai/api/v1/files/{file_id}' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"id": "string",
"type": "file",
"source": "upload",
"filename": "string",
"mime_type": "string",
"size_bytes": 1,
"created_at": "2026-11-06T18:37:59.954Z",
"downloadable": true
}