API 参考
获取文件
获取一个已上传文件的元数据。
返回元数据,而不是内容。用 GET /experimental/files/{id}/content 下载文件。
OpenAPI
openapi: 3.1.0
info:
title: BioAgent API — V1
description: Public API for BioAgent, the biomedical AI agent platform.
version: 0.1.0
servers:
- url: https://bioagent.cloud/api/v1
description: >-
BioAgent public API base URL. Every endpoint on this page is served from
this host.
security: []
paths:
/experimental/files/{file_id}:
get:
tags:
- files
summary: Get a file
description: Get metadata for one uploaded file.
operationId: get_file_experimental_files__file_id__get
parameters:
- name: file_id
in: path
required: true
schema:
type: string
title: File Id
responses:
'200':
description: File details.
content:
application/json:
schema:
$ref: '#/components/schemas/File'
example:
id: file_017jG6PPIYy41dqnVz47lrmo
type: file
created_at: '2026-08-12T22:05:08.095000Z'
filename: patient001_brca1.vcf
size_bytes: 4321
purpose: input
mime_type: text/plain
project_id: prj_014OwAG97UY0UfcHlLHQRnKO
platform: api
security:
- bearerAuth: []
components:
schemas:
File:
properties:
id:
type: string
title: Id
type:
type: string
const: file
title: Type
default: file
created_at:
type: string
format: date-time
title: Created At
filename:
type: string
title: Filename
size_bytes:
type: integer
title: Size Bytes
purpose:
type: string
enum:
- input
- output
title: Purpose
mime_type:
anyOf:
- type: string
- type: 'null'
title: Mime Type
task_id:
anyOf:
- type: string
- type: 'null'
title: Task Id
project_id:
anyOf:
- type: string
- type: 'null'
title: Project Id
platform:
type: string
enum:
- api
- mcp
- web
- desktop
- mobile
title: Platform
default: api
type: object
required:
- id
- created_at
- filename
- size_bytes
- purpose
title: File
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: Requires an API key. See the Authentication guide.