> ## Documentation Index
> Fetch the complete documentation index at: https://docs.biomni.phylo.bio/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a file

> Get details for one uploaded file.

Returns metadata (`id`, name, mime-type, size) — not the contents. To download the file, use `GET /files/{id}/content`.


## OpenAPI

````yaml api-reference/openapi.json GET /files/{file_id}
openapi: 3.1.0
info:
  title: Biomni Public API — V0
  description: >-
    The public API for **Biomni** — the AI agent platform for clinical genomics
    (variant annotation, ClinVar lookups, PMID-cited literature, and project
    file drives). Create projects and Tasks, send messages to the agent, stream
    its replies, manage files, and check your usage — all from your own code.


    **Authentication**: send `Authorization: Bearer <your-api-key>`. The adapter
    forwards your key straight to Biomni; it never stores it.


    **Safe retries**: send `Idempotency-Key: <token>` on POST endpoints
    (`/projects`, `/tasks`, `/messages`, `/files/uploads`) so a retried request
    won't create a duplicate.
  version: 0.1.0
servers:
  - url: https://api.phylo.bio/api/v1
security: []
paths:
  /files/{file_id}:
    get:
      tags:
        - files
      summary: Get a file
      description: Get details for one uploaded file.
      operationId: get_file_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_8a2c3b91de
                object: file
                created: 1779123597
                filename: brca1_demo_variants.vcf
                bytes: 673
                purpose: input
                mime_type: text/x-vcard
                project_id: proj_93f8f2a5bd
                platform: api
      security:
        - bearerAuth: []
components:
  schemas:
    File:
      properties:
        id:
          type: string
          title: Id
        object:
          type: string
          const: file
          title: Object
          default: file
        created:
          type: integer
          title: Created
        filename:
          type: string
          title: Filename
        bytes:
          type: integer
          title: 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
        - filename
        - bytes
        - purpose
      title: File
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Requires an API key. See the Authentication guide.

````