---
title: "Get audit retention"
method: GET
path: "/v1/projects/{project_id}/audit-logs/retention"
tags: ["audit-logs"]
---

# Get audit retention

`GET /v1/projects/{project_id}/audit-logs/retention`

## Request

- Base URL: `https://api.connic.co`
- URL: `https://api.connic.co/v1/projects/{project_id}/audit-logs/retention`
- Auth: HTTP bearer

How long audit events are kept for this project, derived from the active billing tier and any custom plan rules.

Required permission: `audit.view`.

## Path parameters

- `project_id` string, uuid, required

## Response `200`

Successful Response

- PublicAuditRetentionResponse
  - `retention_days` integer, required: Days audit events are kept. -1 means they are kept indefinitely.
  - `billing_tier` string, required: Billing tier of the project, such as `free`, `developer`, `pro` or `enterprise`.

## Other responses

- `401`: Missing or invalid API key.
- `403`: The API key lacks the required permission or access to the environment.
- `422`: Validation Error
- `429`: Rate limit exceeded.

---

[API](https://skmtc.dev/connic/apis/connic-api.md) · [All operations](https://skmtc.dev/connic/apis/connic-api/llms.txt) · [OpenAPI document](https://skmtc.dev/connic/apis/connic-api/revisions/482932da5fbe?raw)
