---
title: "Retrieve a task"
method: GET
path: "/api/tasks/{taskId}"
tags: ["Tasks"]
---

# Retrieve a task

`GET /api/tasks/{taskId}`

Retrieve a single task.

## Path parameters

- `taskId` string, required

## Response `200`

Task.

- RetrieveTaskResponse
  - `task` Task, required
    - `id` string, required
    - `workerId` string, required
    - `organizationId` string, required
    - `status` 'pending' | 'running' | 'completed' | 'error' | 'aborted', required
    - `triggeredBy` 'api' | 'email' | 'schedule' | 'ui', required
    - `createdByUserId` string, nullable, required
    - `title` string, required
    - `url` string, required — Web URL of the task in the Handinger dashboard.
    - `createdAt` string, required
    - `completedAt` string, nullable, required
    - `totals` object, required — Aggregate credit spend, elapsed wall-clock, and number of turns across the task.
      - `credits` integer, required
      - `durationMs` integer, required
      - `turnCount` integer, required

## Other responses

- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Not found.
- `429` — Rate limit exceeded.
- `500` — Internal server error.

## Changes

- **2026-07-10** `26ac9ff402ce` — 1 breaking
  - removed the required property `turns` from the response with the `200` status
- **2026-06-23** `f5a601f3ce37` — 1 info
  - added the required property `turns/items/files` to the response with the `200` status
- **2026-05-11** `1cd8acc54da5` — 1 info
  - added the required property `task/url` to the response with the `200` status
- **2026-05-08** `18bf56dfd496` — 1 info
  - added the required property `turns/items/structuredOutput` to the response with the `200` status
- **2026-05-04** `cf881ee3367b` — 1 info
  - endpoint added

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

---

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