文档

API 参考

获取项目

按 id 获取项目。

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/{project_id}:
    get:
      tags:
        - projects
      summary: Get a project
      description: Get a project by id.
      operationId: get_project_projects__project_id__get
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            title: Project Id
      responses:
        '200':
          description: Project record.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Project'
              example:
                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:
    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.