> ## 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.

# Download a file

> Download an input or result file.

Returns `302 Found` with a `Location` header pointing at a short-lived (\~5 min) cloud-storage link — use an HTTP client that follows redirects (`curl -L`, `requests`, `httpx`).


## OpenAPI

````yaml api-reference/openapi.json GET /files/{file_id}/content
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}/content:
    get:
      tags:
        - files
      summary: Download a file
      description: Download an input or result file.
      operationId: download_file_files__file_id__content_get
      parameters:
        - name: file_id
          in: path
          required: true
          schema:
            type: string
            title: File Id
      responses:
        '200':
          description: File returned inline (rare; used for very small files).
          content:
            application/json:
              schema: {}
            application/octet-stream: {}
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Requires an API key. See the Authentication guide.

````