---
title: "Daily task counts for an agent"
method: GET
path: "/api/agents/{id}/task-activity"
tags: ["Agents"]
---

# Daily task counts for an agent

`GET /api/agents/{id}/task-activity`

Number of tasks created for the agent per UTC day over the last `days` days (default 365, max 730), oldest first. Days with no tasks are omitted. Backs the activity heatmap on the agent page.

## Path parameters

- `id` string, required

## Query parameters

- `days` integer

## Response `200`

Daily task counts

- object
  - `days` object[], required
    - `date` string, required
    - `count` integer, required

## Other responses

- `404` — Agent not found

## Changes

- **2026-09-28** `899e20df77d4` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/agents/:id/task-activity/get.md)

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/f09e0d43f522?raw)
