---
title: "Break down how the organization's skills, plugins or connectors are used"
method: GET
path: "/v1/library-usage"
tags: ["Plugins"]
---

# Break down how the organization's skills, plugins or connectors are used

`GET /v1/library-usage`

## Request

- Base URL: `https://api.openworklabs.com`
- URL: `https://api.openworklabs.com/v1/library-usage`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

Uses of one kind of item (`kind`: skills, plugins or connectors) over the last `days` UTC calendar days including today (7, 30 or 90; default 30), grouped by any of `item`, `member` and `day` (comma separated in `groupBy`; default `item`). `item` is the skill, plugin or connector id, `member` the organization member id and `day` the UTC date; dimensions not grouped by come back null. Filter to one member (`memberId`), the current members of one team (`teamId`), or one item (`itemId`). A team view counts its members' past uses by their current team. Every skill load and connector call counts once. Plugins count their skills' loads plus their Workflows' runs. `failures` counts failed connector calls and failed Workflow runs; it is null for skills. `people` counts distinct members in the row. `sources` splits uses by what started them (agent, workflow, automation, app, artifact); a missing key is zero. Only used items appear; ids are resolved to names by the caller. At most 10000 rows: a larger result answers 422 library_usage_too_many_rows without truncation. Members with the usage_analytics.view permission only (owners and admins by default).

## Query parameters

- `kind` 'skills' | 'plugins' | 'connectors', required
- `days` '7' | '30' | '90'
- `groupBy` string
- `memberId` string
- `teamId` string
- `itemId` string

## Response `200`

Library usage breakdown

- LibraryUsageBreakdown
  - `kind` 'skills' | 'plugins' | 'connectors', required
  - `days` integer, required
  - `from` string, date, required
  - `to` string, date, required
  - `timezone` 'UTC', required
  - `groupBy` string[], required
  - `trackingSince` string, date-time, nullable, required
  - `rows` LibraryUsageBreakdownRow[], required
    - `itemId` string, nullable, required
    - `memberId` string, nullable, required
    - `date` string, date, nullable, required
    - `uses` integer, required
    - `people` integer, required
    - `failures` integer, nullable, required
    - `lastUsedAt` string, date-time, nullable, required
    - `sources` LibraryUsageSourceCounts, required
      - `agent` integer
      - `workflow` integer
      - `automation` integer
      - `app` integer
      - `artifact` integer

## Other responses

- `400`: Invalid query
- `401`: Sign-in required
- `403`: View usage analytics permission required
- `404`: The team is not in this organization
- `422`: Too many rows; narrow the window, grouping or filters

## Changes

- **2026-10-23** `c93387179b31`: 2 breaking, 5 info
  - the response property `rows/items/itemId` became nullable for the status `200`
  - the response property `rows/items/memberId` became nullable for the status `200`
  - response property `details/items/path/items/` list-of-types was narrowed by removing types `number` from media type `application/json` of response `400`
  - response property `rows/items/itemId` list-of-types was narrowed by removing types `null` from media type `application/json` of response `200`
  - …3 more
- **2026-10-14** `0005cd4e85a8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/library-usage/get.md)

---

[API](https://skmtc.dev/openworklabs/apis/den-api.md) - [All operations](https://skmtc.dev/openworklabs/apis/den-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openworklabs/apis/den-api/revisions/84fb0f99fb95?raw)
