A repository's cache entries and its use of the limit

The entries the repository's jobs saved, most recently used first, with the bytes they hold against the repository's limit.

GET/v1/ci/installations/{installation}/repositories/{repository_id}/caches

The entries the repository's jobs saved, most recently used first, with the bytes they hold against the repository's limit. Entries still being uploaded are not listed.

A key with the ci:read scope.

Request

curl "https://api.pod.mapier.ai/v1/ci/installations/1/repositories/1/caches" \
  -H "Authorization: Bearer $POD_API_KEY"

Parameters

NameInTypeRequiredWhat it is
installationpathintegerYesThe GitHub App installation.
repository_idpathintegerYesGitHub's repository id.

Answer

200. The entries.

200
{
  "repository_id": 1,
  "used_bytes": 0,
  "limit_bytes": 0,
  "entries": [
    {
      "id": 1,
      "key": "example",
      "version": "example",
      "scope": "example",
      "size_bytes": 0,
      "created_at": "2026-11-23T12:00:00.000Z",
      "last_used_at": "2026-11-23T12:00:00.000Z"
    }
  ]
}
FieldTypeAlwaysWhat it is
repository_idintegerYes
used_bytesintegerYesAt least 0.
limit_bytesintegerYesAt least 0.
entriesCacheEntry[]YesMost recently used first.

Errors

The refusals this call is known for: unauthorized, forbidden. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.