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

> Get a task, its status, and any scientific reviews of it.

A task settles at `completed`, `failed`, or `cancelled`. Read this endpoint again for its current status.

| `status`    | Meaning                                     |
| ----------- | ------------------------------------------- |
| `idle`      | No message has been sent yet                |
| `running`   | The agent is working                        |
| `completed` | The agent finished this turn                |
| `failed`    | The latest agent message carries an `error` |
| `cancelled` | You stopped the task                        |

`reviews` holds the [scientific reviews](/api-reference/pages/review-task) of this task, each with its `status`, the `message_id` of the message holding the findings, and `error_message` on a failure. A review appears once it has written its findings.


## OpenAPI

````yaml api-reference/openapi.json GET /experimental/tasks/{task_id}
openapi: 3.1.0
info:
  title: Phylo API — V1
  description: Public API for Phylo, the biomedical AI agent platform.
  version: 0.1.0
servers:
  - url: https://api.phylo.bio/v1
    description: >-
      Self-serve platform. Enterprise customers should contact the Phylo team to
      get their API base URL. Learn more at https://phylo.bio/enterprise.
security: []
paths:
  /experimental/tasks/{task_id}:
    get:
      tags:
        - tasks
      summary: Get a task
      description: Get a task, its status, and any scientific reviews of it.
      operationId: get_task_experimental_tasks__task_id__get
      parameters:
        - name: task_id
          in: path
          required: true
          schema:
            type: string
            title: Task Id
      responses:
        '200':
          description: Task record.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Task'
              examples:
                completed:
                  summary: A completed task (real BRCA1 demo from May 18)
                  value:
                    id: tsk_017ilCeuDpMWTSH9Ah1syUGJ
                    type: task
                    created_at: '2026-08-12T21:21:02.815000Z'
                    status: completed
                    project_id: prj_014OwAG97UY0UfcHlLHQRnKO
                    title: BRCA1 variant workup
                    platform: api
                    reviews: []
                running:
                  summary: A task with the agent currently processing
                  value:
                    id: tsk_014ztPoW8a1jnkHm9jMZ1KML
                    type: task
                    created_at: '2026-08-12T21:02:18.900000Z'
                    status: running
                    project_id: prj_014OwAG97UY0UfcHlLHQRnKO
                    title: BRCA1 variant exploration
                    platform: api
                    reviews: []
                reviewed:
                  summary: A task with a finished Scientific Review
                  value:
                    id: tsk_017ilCeuDpMWTSH9Ah1syUGJ
                    type: task
                    created_at: '2026-08-12T21:21:02.815000Z'
                    status: completed
                    project_id: prj_014OwAG97UY0UfcHlLHQRnKO
                    title: BRCA1 variant workup
                    platform: api
                    reviews:
                      - type: scientific_review
                        status: done
                        created_at: '2026-08-12T21:41:02Z'
                        message_id: msg_f6872d1e0fb242fd
      security:
        - bearerAuth: []
components:
  schemas:
    Task:
      properties:
        id:
          type: string
          title: Id
        type:
          type: string
          const: task
          title: Type
          default: task
        created_at:
          type: string
          format: date-time
          title: Created At
        status:
          type: string
          enum:
            - idle
            - running
            - completed
            - cancelled
            - failed
          title: Status
        project_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Project Id
        title:
          anyOf:
            - type: string
            - type: 'null'
          title: Title
        platform:
          type: string
          enum:
            - api
            - mcp
            - web
            - desktop
            - mobile
          title: Platform
          default: api
        reviews:
          anyOf:
            - items:
                $ref: '#/components/schemas/TaskScientificReview'
              type: array
            - type: 'null'
          title: Reviews
      type: object
      required:
        - id
        - created_at
        - status
      title: Task
    TaskScientificReview:
      properties:
        type:
          type: string
          const: scientific_review
          title: Type
          default: scientific_review
        status:
          type: string
          enum:
            - running
            - done
            - failed
          title: Status
        created_at:
          type: string
          format: date-time
          title: Created At
        message_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Message Id
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
      type: object
      required:
        - status
        - created_at
      title: TaskScientificReview
      description: A scientific review recorded on a task.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Requires an API key. See the Authentication guide.

````