Skip to content

Say where an asset is used

GET
/assets/management/v1/assets/{id}/usage
curl --request GET \
--url https://api.ebitex.io/assets/management/v1/assets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/usage \
--header 'Authorization: Bearer <token>'

Reports what ebitex can say about where an asset is used, to read before deleting it. Today that is nothing it can vouch for: references to an asset from Content and links to its public URL are not checked, so known is false and usages is empty and means nothing. Do not read an empty usages as no usages. isPublic says whether the asset has a public URL, which may be cached or held anywhere.

Key: an Assets management key (assets.management.read or above).

id
required
string format: uuid

{ "assetId": "…", "known": false, "usages": [], "isPublic": true, "note": "…" }

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 is not an Assets management key. permission_denied: a read key was used for a write. app_not_available: Assets is not enabled for the organization. origin_denied or ip_denied: the key was used from an origin or address outside its restrictions.

There is no such asset in the organization.

too_many_failed_authentications: too many bad keys from this address; rate_limited: too many requests from the organization. Retry-After says how long to wait.