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

# List task results

> List the files an agent produced under a Task, each with a download link.

Each file comes with a presigned `download_url`. Two query flags control the
work done before listing: `reconcile` (default `true`) scans the sandbox first
so freshly-written files are captured, and `with_urls` (default `true`) attaches
a download URL to each file (one upstream call per file).

If `task_id` doesn't exist you get a `404` rather than an empty list — so an
empty `data` array reliably means "this Task produced no files," not "wrong id."


## OpenAPI

````yaml api-reference/openapi.json GET /tasks/{task_id}/results
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:
  /tasks/{task_id}/results:
    get:
      tags:
        - results
      summary: List task results
      description: >-
        List the files an agent produced under a Task, each with a download
        link.
      operationId: list_task_results_tasks__task_id__results_get
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
            title: Task Id
        - name: reconcile
          in: query
          required: false
          schema:
            type: boolean
            default: true
            title: Reconcile
        - name: with_urls
          in: query
          required: false
          schema:
            type: boolean
            default: true
            title: With Urls
      responses:
        '200':
          description: List of result files, each with a presigned download URL.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResultList'
              example:
                object: list
                data:
                  - result_id: res_9f8e7d
                    name: brca1_report.md
                    path: >-
                      orgs/org_acme/projects/proj_a4374b138a/results/brca1_report.md
                    size: 20481
                    mime_type: text/markdown
                    message_id: msg_2f1c9a
                    created_at: '2026-08-05T12:30:00Z'
                    download_url: https://files.phylo.bio/presigned/res_9f8e7d?sig=…
                total: 1
      security:
        - bearerAuth: []
components:
  schemas:
    ResultList:
      properties:
        object:
          type: string
          const: list
          title: Object
          default: list
        data:
          items:
            $ref: '#/components/schemas/ResultFile'
          type: array
          title: Data
        total:
          type: integer
          title: Total
      type: object
      required:
        - data
        - total
      title: ResultList
    ResultFile:
      properties:
        result_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Result Id
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        path:
          anyOf:
            - type: string
            - type: 'null'
          title: Path
        size:
          anyOf:
            - type: integer
            - type: 'null'
          title: Size
        mime_type:
          anyOf:
            - type: string
            - type: 'null'
          title: Mime Type
        message_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Message Id
        created_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Created At
        download_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Download Url
      type: object
      title: ResultFile
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Requires an API key. See the Authentication guide.

````