---
title: "Usage of one skill"
method: GET
path: "/api/skills/{id}/usage"
tags: ["Skills"]
---

# Usage of one skill

`GET /api/skills/{id}/usage`

## Request

- Base URL: `http://localhost:3013`
- URL: `http://localhost:3013/api/skills/{id}/usage`
- Auth: HTTP bearer

Aggregates the skill's `skill_invocations` over a rolling window (7d, 30d or all; default 30d): totals, daily counts, breakdowns by agent, harness and load path, and the most recent invocations.

## Path parameters

- `id` string, required

## Query parameters

- `window` '7d' | '30d' | 'all'
- `tzOffset` integer, nullable

## Response `200`

Skill usage

- object
  - `skillId` string, required
  - `window` '7d' | '30d' | 'all', required
  - `since` string, nullable, required
  - `generatedAt` string, required
  - `totals` object, required
    - `invocations` number, required
    - `distinctAgents` number, required
    - `distinctTasks` number, required
    - `tokens` number, required
  - `daily` object[], required
    - `date` string, required: Local day (YYYY-MM-DD) after applying tzOffset
    - `invocations` number, required
    - `skills` number, required
    - `tasks` number, required
  - `byAgent` object[], required
    - `agentId` string, required
    - `agentName` string, nullable, required
    - `invocations` number, required
    - `lastInvokedAt` string, required
  - `byHarness` object[], required
    - `key` string, required
    - `invocations` number, required
  - `byVia` object[], required
    - `key` string, required
    - `invocations` number, required
  - `recent` object[], required
    - `id` string, required
    - `agentId` string, nullable, required
    - `agentName` string, nullable, required
    - `taskId` string, nullable, required
    - `taskTitle` string, nullable, required
    - `harness` string, nullable, required
    - `via` string, nullable, required
    - `skillVersion` number, nullable, required
    - `tokenCount` number, nullable, required
    - `createdAt` string, required

## Other responses

- `404`: Skill not found

## Changes

- **2026-10-11** `6cca328972e4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/changes/api/skills/:id/usage/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/7e4c7198192a?raw)
