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

---

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