Skip to content

List assets

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

Lists the organization’s assets, newest first by default, with the filters the Assets library offers. Send any of kind (image, video or document, or several separated by commas), folderId (or unfiled=true), visibility (private or public), categoryId, search (a search of the name), altStatus (missing, present or decorative) and ids (up to 100 asset ids); sort is one of newest, oldest, changed, name-asc or name-desc.

Pages are limit items (default 48, at most 200) and cursor is the nextCursor of the previous page; nextCursor is null on the last page. A total is counted only when you send includeTotal=true, because counting a large filtered library is not free. Each item is the summary the app shows: id, kind, visibility, name, folder, the default rendition’s type, size and dimensions, and the dates. A private asset’s item carries no link to its file or thumbnail; read the asset itself for those.

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

sort
string
cursor
string
limit
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
includeTotal
boolean

{ "items": [ … ], "nextCursor": "50" | null, "total": 123 | null }

validation_failed: a filter or sort is not one the list accepts.

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.

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.