Skip to content

Get storage and video usage

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

Reports how much of the plan the library uses: stored bytes and video minutes, each with the organization’s limit (null when there is none). Use it before a large upload to see whether it fits.

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

{ "storageBytes": 1234, "storageLimitBytes": 26843545600, "videoMinutes": 0, "videoMinutesLimit": 120 }

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.