---
title: "Get artifact and log retention settings for an organization"
method: GET
path: "/orgs/{org}/actions/permissions/artifact-and-log-retention"
tags: ["actions"]
---

# Get artifact and log retention settings for an organization

`GET /orgs/{org}/actions/permissions/artifact-and-log-retention`

Gets artifact and log retention settings for an organization.

OAuth app tokens and personal access tokens (classic) need the `admin:org` scope or the "Actions policies" fine-grained permission to use this endpoint.

## Path parameters

- `org` string, required

## Response `200`

Response

- 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

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

---

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