---
title: "List usage counts for all resources of a type"
method: GET
path: "/resource-usage/{resource_type}"
---

# List usage counts for all resources of a type

`GET /resource-usage/{resource_type}`

Bulk usage: one row per action, instruction, or KB item in the org, with available / applied (used) counts, the handoff count, and first/last-used timestamps — most recently used first. The per-item alternative to calling `usage-summary` once per id. Paginated via the opaque `cursor`; optionally bound by a date range.

## Path parameters

- `resource_type` 'action' | 'instruction' | 'knowledge', required

## Query parameters

- `from` unknown
- `to` unknown
- `cursor` string
- `limit` integer

## Response `200`

Default Response

- PublicResourceUsageListDto
  - `items` object[], required
    - `resource_id` string, required
    - `session_count` number, required — Distinct conversations that used this resource (usage mirror ∪ handoff citations)
    - `applied_sessions` number, required — Distinct conversations where the resource was applied
    - `applied_replies` number, required — Total applications/invocations
    - `available_sessions` number, required — Distinct conversations where an instruction was in context (instructions only)
    - `available_replies` number, required
    - `handoff_count` number, required — Distinct conversations that handed off while citing this resource (0 for actions)
    - `first_used_at` string, nullable, required — ISO 8601 timestamp of first use
    - `last_used_at` string, nullable, required — ISO 8601 timestamp of most recent use
  - `next` string, nullable, required

## Other responses

- `500` — Internal Server Error

---

[API](https://skmtc.dev/open/apis/opencx-api.md) · [All operations](https://skmtc.dev/open/apis/opencx-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/open/opencx-api/revisions/57b06b52302d/schema)
