---
title: "Get task details"
method: GET
path: "/api/tasks/{task_id}"
tags: ["task"]
---

# Get task details

`GET /api/tasks/{task_id}`

Retrieve full details for a specific background task.

## Path parameters

- `task_id` string, uuid, required

## Response `200`

Success - Task details retrieved

- TaskResponse — Full task details including payload and result
  - `completed_at` string, date-time — When task completed or failed (null if not finished)
  - `create_time` string, date-time, required — Task creation timestamp
  - `error_message` string — Error message on failure (null if not failed)
  - `id` string, uuid, required — Unique task identifier
  - `idempotency_key` string, required — Caller-provided key for idempotent task creation
  - `payload` object, required — Task input data
  - `result` object — Task output data (null if not completed)
  - `started_at` string, date-time — When task execution started (null if not started)
  - `status` 'created' | 'running' | 'completed' | 'failed', required — Current task status
  - `task_name` string, required — Task type name (e.g., model_upload)
  - `update_time` string, date-time, required — Task last update timestamp

## Other responses

- `401` — Unauthorized - Authentication required
- `404` — Task not found (also returned for ownership failures to avoid leaking task existence)
- `500` — Internal server error

## Changes

- **2026-06-03** `8560879e6188` — 2 breaking, 1 warning, 6 info
  - removed the required property `error` from the response with the `401` status
  - removed the required property `error` from the response with the `404` status
  - removed the optional property `error` from the response with the `200` status
  - added the optional property `details` to the response with the `500` status
  - …5 more
- **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/:task_id/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/da017caf56f1/schema)
