`GET /api/resources/usage` — per-resource "used by" counts for the whole workspace, so the board list can fill its "Used" column in one round-trip.
GET
/api/resources/usage
const url = 'https://example.com/api/resources/usage';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/resources/usageResponses
Section titled “Responses”Media typeapplication/json
Array<object>
#358 — per-resource “used by” count for every resource in the workspace, in
one query: distinct workflows whose nodes reference the resource (by name in
an action node’s config.resource, or by id in an N2 node’s resource_ref)
plus the Apps that bound it (app_resources). Best-effort by design — a
resource referenced only inside an unparsed config blob is not counted.
object
resource_id
required
string format: uuid
usage_count
required
integer format: int64
Examplegenerated
[ { "resource_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "usage_count": 1 }]