---
title: "Get artifact and log retention settings for an enterprise"
method: GET
path: "/enterprises/{enterprise}/actions/permissions/artifact-and-log-retention"
tags: ["enterprise-admin"]
---

# Get artifact and log retention settings for an enterprise

`GET /enterprises/{enterprise}/actions/permissions/artifact-and-log-retention`

Gets artifact and log retention settings for an enterprise.

## Path parameters

- `enterprise` string, required

## Response `200`

Successfully retrieved the artifact and log retention settings

- ActionsArtifactAndLogRetentionResponse
  - `days` integer, required — The number of days artifacts and logs are retained
  - `maximum_allowed_days` integer, required — The maximum number of days that can be configured

## Other responses

- `401` — Authorization failure
- `404` — Resource not found

---

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