---
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

---

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