---
title: "Get Task Result"
method: GET
path: "/api/tasks/v2/{taskTokenJwt}"
tags: ["TasksService"]
---

# Get Task Result

`GET /api/tasks/v2/{taskTokenJwt}`

Returns the status of a task or task group, and if completed, the result.

## Path parameters

- `taskTokenJwt` string, required — The encoded JWT identifying the async task or task group.

## Response `200`

OK

- ProtosTasksV1GetTaskResultResponse
  - `taskResult` ProtosTasksV1TaskResult — The status and result of a task.
    - `status` 'TASK_STATUS_IN_PROGRESS' | 'TASK_STATUS_COMPLETED' | 'TASK_STATUS_FAILED' | 'TASK_STATUS_TERMINATED', enum — The current status of the task. | value | description | |-------|---------------| | TASK_STATUS_IN_PROGRESS | The task is scheduled or running. | | TASK_STATUS_COMPLETED | The task has completed. | | TASK_STATUS_FAILED | The task has failed. | | TASK_STATUS_TERMINATED | The task will no longer run but neither succeeded nor failed. |
    - `resultString` string — A string version of the task's result, if applicable.
  - `taskGroupResult` ProtosTasksV1TaskGroupResult — The status and results of a task group.
    - `status` 'TASK_STATUS_IN_PROGRESS' | 'TASK_STATUS_COMPLETED' | 'TASK_STATUS_FAILED' | 'TASK_STATUS_TERMINATED', enum — The overall status of the task group. | value | description | |-------|---------------| | TASK_STATUS_IN_PROGRESS | The task is scheduled or running. | | TASK_STATUS_COMPLETED | The task has completed. | | TASK_STATUS_FAILED | The task has failed. | | TASK_STATUS_TERMINATED | The task will no longer run but neither succeeded nor failed. |
    - `completedCount` string — The number of tasks that have completed.
    - `totalCount` string — The total number of tasks in the group.
    - `taskResults` ProtosTasksV1TaskResult[] — The result of each task in the group, in dispatch order.
      - `status` 'TASK_STATUS_IN_PROGRESS' | 'TASK_STATUS_COMPLETED' | 'TASK_STATUS_FAILED' | 'TASK_STATUS_TERMINATED', enum — The current status of the task. | value | description | |-------|---------------| | TASK_STATUS_IN_PROGRESS | The task is scheduled or running. | | TASK_STATUS_COMPLETED | The task has completed. | | TASK_STATUS_FAILED | The task has failed. | | TASK_STATUS_TERMINATED | The task will no longer run but neither succeeded nor failed. |
      - `resultString` string — A string version of the task's result, if applicable.

---

[API](https://skmtc.net/semgrep/apis/semgrep-web-app.md) · [All operations](https://skmtc.net/semgrep/apis/semgrep-web-app/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/semgrep/semgrep-web-app/revisions/6483eeecd582/schema)
