# prov.account.capture_retention

prov.account.capture_retention in Python SDK. How long captured images are kept (1–365 days, default 30).

## Signature

```python
prov.account.capture_retention() -> Any
```

## Returns

`Any`

## HTTP operation

[`GET /v1/attest/settings/capture_retention`](https://provenanceauth.com/docs/api/account.md#get-v1-attest-settings-capture-retention): Retrieve your image retention

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

## Example

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/attest/settings/capture_retention`, {
  headers: { Authorization: "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x" },
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/attest/settings/capture_retention", headers={"Authorization": "Bearer prv_test_capture_C4pT9vQ2bW7mK3sYd8cFjLh6gAe1nR5x"}).json()
```
