---
title: "Get GitHub Actions cache retention limit for an enterprise"
method: GET
path: "/enterprises/{enterprise}/actions/cache/retention-limit"
tags: ["actions"]
---

# Get GitHub Actions cache retention limit for an enterprise

`GET /enterprises/{enterprise}/actions/cache/retention-limit`

Gets GitHub Actions cache retention limit for an enterprise. All organizations and repositories under this
enterprise may not set a higher cache retention limit.

OAuth tokens and personal access tokens (classic) need the `admin:enterprise` scope to use this endpoint.

## Path parameters

- `enterprise` string, required

## Response `200`

Response

- ActionsCacheRetentionLimitForEnterprise — GitHub Actions cache retention policy for an enterprise.
  - `max_cache_retention_days` integer — For repositories & organizations in an enterprise, the maximum duration, in days, for which caches in a repository may be retained.

## Other responses

- `403` — Forbidden
- `404` — Resource not found

---

[API](https://skmtc.net/github/apis/rest-api.md) · [All operations](https://skmtc.net/github/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/rest-api/versions/80850db290cd/schema)
