---
title: "List background tasks"
method: GET
path: "/api/tasks"
tags: ["task"]
---

# List background tasks

`GET /api/tasks`

[cloud-only] Retrieve a paginated list of background tasks for the authenticated user. Supports filtering by task type, status, and creation time.

## Query parameters

- `task_name` string
- `idempotency_key` string
- `status` string
- `created_after` string, date-time
- `created_before` string, date-time
- `sort_order` 'asc' | 'desc'
- `offset` integer
- `limit` integer

## Response `200`

Tasks retrieved

- TasksListResponse — [cloud-only] Paginated list of background tasks for the authenticated user.
  - `tasks` TaskEntry[], required
    - `id` string, uuid, required
    - `task_name` string, required
    - `status` 'created' | 'running' | 'completed' | 'failed', required
    - `create_time` string, date-time, required
    - `started_at` string, date-time
    - `completed_at` string, date-time
  - `pagination` PaginationInfo, required — Pagination metadata returned alongside list responses.
    - `offset` integer
    - `limit` integer
    - `total` integer
    - `has_more` boolean

## Other responses

- `401` — Unauthorized
- `422` — Validation error
- `500` — Internal server error

## Changes

- **2026-05-22** `09a5075587c8` — 1 info
  - added the non-success response with the status `500`
- **2026-05-08** `c9640fded659` — 1 info
  - endpoint added
- **2026-04-24** `a66055fa384e` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/comfy-org/apis/comfyui-api/changes/api/tasks/get.md)

---

[API](https://skmtc.dev/comfy-org/apis/comfyui-api.md) · [All operations](https://skmtc.dev/comfy-org/apis/comfyui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/comfy-org/comfyui-api/revisions/09a5075587c8/schema)
