API 参考
创建项目
创建一个项目,把相关任务与文件归在一起。
项目把相关任务归在一起,并保存它们读写过的文件。
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:
/projects:
post:
tags:
- projects
summary: Create a project
description: Create a project to group related tasks and files.
operationId: create_project_projects_post
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateProjectRequest'
examples:
minimal:
summary: Minimal — title only
value:
title: Patient001 workup
full:
summary: With a description
value:
title: Patient001 BRCA1 variant analysis
description: >-
Clinical genomics workup for Patient001 — BRCA1 variant
interpretation, ClinVar status, PARP inhibitor eligibility.
responses:
'201':
description: Project created.
content:
application/json:
schema:
$ref: '#/components/schemas/Project'
examples:
minimal:
summary: Minimal project
value:
id: prj_0126xxQZB9MmSUaTs1MtRAgU
type: project
title: Patient001 workup
description: ''
created_at: '2026-08-12T22:53:43.299370Z'
updated_at: '2026-08-12T22:53:43.299374Z'
with_description:
summary: Project with a description
value:
id: prj_014OwAG97UY0UfcHlLHQRnKO
type: project
title: BRCA1 variant workup
description: Clinical genomics workup for three BRCA1 variants.
created_at: '2026-08-12T21:21:01.919000Z'
updated_at: '2026-08-12T22:05:44.612000Z'
security:
- bearerAuth: []
components:
schemas:
CreateProjectRequest:
properties:
title:
type: string
maxLength: 128
minLength: 1
title: Title
description:
anyOf:
- type: string
maxLength: 1024
- type: 'null'
title: Description
description: Free-text description of the project.
additionalProperties: false
type: object
required:
- title
title: CreateProjectRequest
Project:
properties:
id:
type: string
title: Id
type:
type: string
const: project
title: Type
default: project
title:
type: string
title: Title
description:
anyOf:
- type: string
- type: 'null'
title: Description
description: Free-text description of the project.
created_at:
type: string
format: date-time
title: Created At
updated_at:
anyOf:
- type: string
format: date-time
- type: 'null'
title: Updated At
type: object
required:
- id
- title
- created_at
title: Project
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: Requires an API key. See the Authentication guide.