Palbase Cache · API
GET
/cache/usageRead the cache's usage
What the project's live entries weigh together, the quota they stay under, and how many there are.
Called by your server, with the project's secret key.
curl
curl -X GET "https://<your-ref>.palbase.studio/cache/usage" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200The project's usage
401Missing or invalid API key
403Not the project's secret key, or the secret key with a user's token beside it (`secret_key_required`)
429Over the project's cache calls a second or its bytes a second (`rate_limited`); retrying is safe after Retry-After
503The cache could not be reached (`cache_unavailable`), or takes no more at this moment (`cache_busy`); retrying is safe after Retry-After
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation GetCacheUsage of cache's contract.