---
title: "Get Task Result"
method: GET
path: "/deployments/{deployment_name}/tasks/{task_id}/results"
---

# Get Task Result

`GET /deployments/{deployment_name}/tasks/{task_id}/results`

## Request

- The document declares no server URL.
- Auth: none declared

Get the task result associated with a task and session.

## Path parameters

- `deployment_name` string, required
- `task_id` string, required

## Query parameters

- `session_id` string, required

## Response `200`

Successful Response

- TaskResult: The result of a task. Attributes: task_id (str): The task ID. history (list[ChatMessage]): The task history. result (str): The task result. data (dict): Additional data about the task or result.
  - `task_id` string, required
  - `history` ChatMessage[], required
    - `role` 'system' | 'developer' | 'user' | 'assistant' | 'function' | 'tool' | 'chatbot' | 'model': Message role.
    - `additional_kwargs` unknown
    - `blocks` union[]
      - union
        - TextBlock
          - `block_type` 'text'
          - `text` string, required
        - ImageBlock
          - `block_type` 'image'
          - `image` string, binary, nullable
          - `path` string, file-path, nullable
          - `url` union
            - string, uri
            - string
          - `image_mimetype` string, nullable
          - `detail` string, nullable
        - AudioBlock
          - `block_type` 'audio'
          - `audio` string, binary, nullable
          - `path` string, file-path, nullable
          - `url` union
            - string, uri
            - string
          - `format` string, nullable
        - DocumentBlock
          - `block_type` 'document'
          - `data` string, binary, nullable
          - `path` union
            - string, file-path
            - string
          - `url` string, nullable
          - `title` string, nullable
          - `document_mimetype` string, nullable
  - `result` string, required
  - `data` object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/run-llama/apis/llamaindex-llama-deploy-api.md) - [All operations](https://skmtc.dev/run-llama/apis/llamaindex-llama-deploy-api/llms.txt) - [OpenAPI document](https://skmtc.dev/run-llama/apis/llamaindex-llama-deploy-api/revisions/5ceeacddc3ab?raw)
