Skip to content

List unused items

GET
/content/management/v1/library/unused
curl --request GET \
--url https://api.ebitex.io/content/management/v1/library/unused \
--header 'Authorization: Bearer <token>'

Lists the contracts, templates, components, adapters and audiences in the key’s environment that nothing uses, which are the ones whose delete would succeed right now. Changes nothing.

A component that is published and live counts as used, because delivery serves it. Items inherited from another environment and contracts supplied by a content provider are never listed, and neither are streams, since callers outside the system name them.

Key: a management key with content.management.read.

{ "items": [ … ] }, each with its kind, id and name, the folder for a component, and when it was last updated.

missing_api_key or invalid_api_key: no key was sent, or it is unknown, revoked or expired.

payment_required: the organization’s subscription needs attention.

scope_denied: the key lacks this route’s scope. tier_required: the Content Management API needs the Pro plan or above. ip_denied: the caller’s address is outside the key’s allowed ranges. app_not_available: Content is not enabled for the organization.

Rate limit or quota exceeded; Retry-After says how long to wait. too_many_failed_authentications: too many bad keys from this address.