---
title: "Configure retention policy"
method: POST
path: "/retention/configure"
tags: ["Data Retention"]
---

# Configure retention policy

`POST /retention/configure`

POST /retention/configure — enable/disable local retention, set days.

## Request body

- RetentionConfigureRequest
  - `enabled` boolean, nullable, required
  - `retention_days` integer, nullable, required

## Response `200`

OK

- object

## Changes

> 10 revisions in range; 3 could not be searched.

- **2026-04-09** `0f0f8030c7e2` — 1 info
  - api tag `Data Retention` added
- **2026-04-08** `1a63468a8d30` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/screenpipe/apis/screenpipe-api/changes/retention/configure/post.md)

---

[API](https://skmtc.dev/screenpipe/apis/screenpipe-api.md) · [All operations](https://skmtc.dev/screenpipe/apis/screenpipe-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/screenpipe/screenpipe-api/revisions/c48ab58de88e/schema)
