---
title: "Get a task"
method: GET
path: "/tasks/{id}"
tags: ["Tasks"]
---

# Get a task

`GET /tasks/{id}`

Use when checking task status or progress (e.g. polling after create). Returns task by ID.

## Path parameters

- `id` string, required

## Response `200`

OK

- 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

## Other responses

- `400` — Invalid request
- `404` — Resource not found
- `500` — Server error

## Changes

- **2026-07-15** `f8ecf435d25d` — 3 warning
  - added the new `not_implemented` enum value to the `code` response property for the response status `400`
  - added the new `not_implemented` enum value to the `code` response property for the response status `404`
  - added the new `not_implemented` enum value to the `code` response property for the response status `500`
- **2026-07-09** `7d57386313c7` — 4 breaking, 11 warning
  - the `file_type` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - the `status` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - the `task_status` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - the `task_type` response's property type/format changed from ``/`` to `string`/`` for status `200`
  - …11 more
- **2026-07-09** `4b1a811c4179` — 9 breaking, 11 info
  - the `completed_at` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
  - the `created_at` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
  - the `failed_at` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
  - the `file_type` response's property type/format changed from `string`/`` to ``/`` for status `200`
  - …16 more
- …earlier changes not shown

[Full history](https://skmtc.dev/flexprice/apis/flexprice-api/changes/tasks/:id/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/562f13cf61dd/schema)
