---
title: "Get Tasks"
method: GET
path: "/tasks"
tags: ["Tasks"]
---

# Get Tasks

`GET /tasks`

## Request

- Base URL: `https://am1.portal.api.nasuni.com`
- URL: `https://am1.portal.api.nasuni.com/tasks`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/nasuni/apis/portal-api/docs/tasks/get.ts> (a function with typed inputs; its response is checked against the schema)

Get tasks for the account, optionally filtered to the latest per resource.

## Query parameters

- `resource` 'edge' | 'volume' | 'cloud_credential' | 'appliance_support'
- `action` string, nullable
- `stack_id` string, uuid, nullable
- `latest_per_resource` boolean

## Response `200`

Successful Response

- TasksSummaryDto
  - `items` TaskSummaryDto[], required
    - `id` string, uuid, required
    - `created_at` string, date-time, required
    - `resource` string, required
    - `resource_id` union
      - string, uuid
      - string
    - `stack_id` string, uuid, nullable
    - `action` string, required
    - `executor` 'edge', required
    - `executor_id` string, uuid, nullable
    - `initiated_by` 'portal' | 'edge', required
    - `initiator_id` string, uuid, nullable
    - `activity_log_id` string, uuid, nullable
    - `reason` string, nullable
    - `state` 'in_progress' | 'completed' | 'failed', required
    - `last_updated_at` string, date-time, required
    - `user_acknowledged_at` string, date-time, nullable
    - `deletion_time` string, date-time, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/nasuni/apis/portal-api.md) - [All operations](https://skmtc.dev/nasuni/apis/portal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/nasuni/apis/portal-api/revisions/2a505bec6d14?raw)
