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

> Get a fresh download link for one result file.

Returns a fresh presigned `download_url` for one result file. The links returned
by `GET /tasks/{task_id}/results` are short-lived; call this when one has
expired to mint a new one.


## OpenAPI

````yaml api-reference/openapi.json GET /files/results/{result_id}/download
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/results/{result_id}/download:
    get:
      tags:
        - results
      summary: Download a result
      description: Get a fresh download link for one result file.
      operationId: get_result_download_url_files_results__result_id__download_get
      parameters:
        - name: result_id
          in: path
          required: true
          schema:
            type: string
            title: Result Id
      responses:
        '200':
          description: A fresh presigned download URL for the result file.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResultDownload'
              example:
                result_id: res_9f8e7d
                download_url: https://files.phylo.bio/presigned/res_9f8e7d?sig=…
      security:
        - bearerAuth: []
components:
  schemas:
    ResultDownload:
      properties:
        result_id:
          type: string
          title: Result Id
        download_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Download Url
      type: object
      required:
        - result_id
      title: ResultDownload
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Requires an API key. See the Authentication guide.

````