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.955Z",
"downloadable": true
}