---
title: "Get Task Summary"
method: GET
path: "/v1/agents/{agent_id}/tasks/{task_id}/summary"
tags: ["v1", "protected", "agent-tasks"]
---

# Get Task Summary

`GET /v1/agents/{agent_id}/tasks/{task_id}/summary`

Per-task rollup derived from the event log via the ``task_summary`` view.

Workspace-scoped: the row must belong to the caller's workspace and
the agent must match, or we return 404 (same shape as other task
endpoints — no information leak).

## Path parameters

- `agent_id` string, uuid, required
- `task_id` string, uuid, required

## Response `200`

Successful Response

- TaskSummary — Headline rollup for a single task, derived from the event log. Backed by the ``task_summary`` Postgres view. Stable contract — when the view's implementation moves to a materialized view or projection table, this shape stays the same. Per-tool breakdowns and per-artifact lists are deliberately not here; they live in their own endpoints so this stays small and additive.
  - `agent_id` string, uuid, required
  - `cost_usd` number
  - `delegations_completed` integer
  - `delegations_failed` integer
  - `delegations_started` integer
  - `duration_ms` number, nullable
  - `ended_at` string, nullable
  - `final_response` string, nullable
  - `iterations` integer
  - `last_error` string, nullable
  - `llm_calls` integer
  - `llm_calls_failed` integer
  - `started_at` string, nullable
  - `status` string, required
  - `task_id` string, uuid, required
  - `tools_called` integer
  - `tools_failed` integer
  - `workspace_id` string, required

## Other responses

- `422` — Validation Error

## Changes

> 20 revisions in range; 1 not diffed, 5 could not be searched.

- **2026-07-08** `8940d7f77282` — 2 breaking
  - the `ended_at/anyOf[subschema #1]/` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
  - the `started_at/anyOf[subschema #1]/` response's property type/format changed from `string`/`date-time` to `string`/`` for status `200`
- **2026-04-29** `e1a530c0a2d5` — 1 info
  - endpoint added
- **2026-03-30** `e9c153221160` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/agents/:agent_id/tasks/:task_id/summary/get.md)

---

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