---
title: "Lightweight swarm-wide counts"
method: GET
path: "/api/metrics"
tags: ["Stats"]
---

# Lightweight swarm-wide counts

`GET /api/metrics`

Single JSON object of cheap `COUNT(*)` metrics — tasks (by status), agents (by status), workflows (total + enabled), pages, active sessions, skills. Use this instead of fetching full list payloads just to count. Powers UI footers/sidebars and MCP context.

## Response `200`

Swarm metrics counts

- object
  - `tasks` object, required
    - `total` number, required
    - `by_status` object, required
  - `agents` object, required
    - `total` number, required
    - `by_status` object, required
  - `workflows` object, required
    - `total` number, required
    - `enabled` number, required
  - `pages` object, required
    - `total` number, required
  - `sessions` object, required
    - `active` number, required
  - `skills` object, required
    - `total` number, required

## Changes

- **2026-08-07** `06cac6a7c5bc` — 1 info
  - added the media type `application/json` for the response with the status `200`

[Change history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/metrics/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/4d23bb3d853c?raw)
