---
title: "Read this account's retention settings"
method: GET
path: "/api/v1/retention"
tags: ["Retention"]
---

# Read this account's retention settings

`GET /api/v1/retention`

## Request

- Base URL: `https://tamperlens.com` (the document declares no server; this is the origin it was published from)
- URL: `https://tamperlens.com/api/v1/retention`
- Auth: none declared

`mode` is `off` (nothing is kept) or `derived` (a closed list of derived fields per inspection: hashes, signal ids and severities, score, band, reason code, policy verdict; never the file's text or its name). `days` is 30, 90 or 365. `bytesDays` is how long the file itself is kept, encrypted, next to each derived record: 7, 30 or 90, or null (off, the default). `bytesAvailable` is false when this server cannot keep files at all; `bytesDays` cannot be turned on then. `keys` lists the live keys and their own setting: `none` means calls made with that key are never kept.

## Response `200`

Default Response

- object
  - `mode` 'off' | 'derived'
  - `days` 30 | 90 | 365
  - `bytesDays` 7 | 30 | 90 | null, nullable
  - `bytesAvailable` boolean
  - `keys` object[]
    - `id` string
    - `label` string, nullable
    - `retention` 'inherit' | 'none'

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `404`: Default Response
- `415`: Default Response
- `429`: Default Response

---

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