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

# List tasks

`GET /tasks`

Use when listing or searching async tasks (e.g. admin queue view). Returns list with optional filtering.

## Query parameters

- `created_by` string
- `end_time` string
- `entity_type` 'EVENTS' | 'PRICES' | 'CUSTOMERS' | 'FEATURES'
- `expand` string
- `limit` integer
- `offset` integer
- `order` 'asc' | 'desc'
- `scheduled_task_id` string
- `sort` string
- `start_time` string
- `status` 'published' | 'deleted' | 'archived'
- `task_status` 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED'
- `task_type` 'IMPORT' | 'EXPORT'

## Response `200`

OK

- ListTasksResponse
  - `items` TaskResponse[]
    - `completed_at` string, date-time
    - `created_at` string, date-time
    - `created_by` string
    - `entity_type` 'EVENTS' | 'PRICES' | 'CUSTOMERS' | 'FEATURES'
    - `environment_id` string
    - `error_summary` string
    - `failed_at` string, date-time
    - `failed_records` integer
    - `file_name` string
    - `file_type` 'CSV' | 'JSON'
    - `file_url` string
    - `id` string
    - `metadata` object
    - `processed_records` integer
    - `scheduled_task_id` string
    - `started_at` string, date-time
    - `status` 'published' | 'deleted' | 'archived'
    - `successful_records` integer
    - `task_status` 'PENDING' | 'PROCESSING' | 'COMPLETED' | 'FAILED'
    - `task_type` 'IMPORT' | 'EXPORT'
    - `tenant_id` string
    - `total_records` integer
    - `updated_at` string, date-time
    - `updated_by` string
    - `workflow_id` string
  - `pagination` TypesPaginationResponse
    - `limit` integer
    - `offset` integer
    - `total` integer

## Other responses

- `400` — Invalid request
- `500` — Server error

## Changes

> 108 revisions in range; 51 could not be searched.

- **2026-07-09** `7d57386313c7` — 5 breaking, 11 warning, 3 info
  - the `items/items/file_type` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - the `items/items/status` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - the `items/items/task_status` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - the `items/items/task_type` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - …15 more
- **2026-07-09** `4b1a811c4179` — 10 breaking, 3 warning, 11 info
  - the `items/items/completed_at` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
  - the `items/items/created_at` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
  - the `items/items/failed_at` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
  - the `items/items/file_type` response's property type/format changed from `string`/`` to ``/`` for status `200`
  - …20 more

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

---

[API](https://skmtc.dev/flexprice/apis/flexprice-api.md) · [All operations](https://skmtc.dev/flexprice/apis/flexprice-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flexprice/flexprice-api/revisions/9cd0dab91f5c/schema)
