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
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
installation | path | integer | Yes | The GitHub App installation. |
repository_id | path | integer | Yes | GitHub's repository id. |
Answer
200. The entries.
{
"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"
}
]
}| Field | Type | Always | What it is |
|---|---|---|---|
repository_id | integer | Yes | |
used_bytes | integer | Yes | At least 0. |
limit_bytes | integer | Yes | At least 0. |
entries | CacheEntry[] | Yes | Most 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.