Screenpipe Data Retention API

Auto-delete old data locally

Operations 3

POST /retention/configure Configure retention policy #
GET /retention/status Get retention status #
POST /retention/run Run retention cleanup now #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/screenpipe-data-retention-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

screenpipe-data-retention-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Screenpipe Activity Data Retention API
  version: 1.0.0
  description: 'Screenpipe captures everything you see, say, and hear on your computer. Use this API to search through captured content, manage recordings, and build AI-powered automations on top of your screen data.


    The server runs locally at `http://localhost:3030` by default.'
servers:
- url: http://localhost:3030
  description: Base URL declared by the provider in apis.yml (roadmap#122).
tags:
- name: Data Retention
  description: Auto-delete old data locally
paths:
  /retention/configure:
    post:
      description: POST /retention/configure — enable/disable local retention, set days.
      operationId: retention_retention_configure
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RetentionConfigureRequest'
        required: true
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
      tags:
      - Data Retention
      summary: Configure retention policy
  /retention/status:
    get:
      description: GET /retention/status — return current retention state.
      operationId: retention_retention_status
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RetentionStatusResponse'
      tags:
      - Data Retention
      summary: Get retention status
  /retention/run:
    post:
      description: POST /retention/run — trigger an immediate cleanup run.
      operationId: retention_retention_run
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
      tags:
      - Data Retention
      summary: Run retention cleanup now
components:
  schemas:
    RetentionStatusResponse:
      type: object
      properties:
        enabled:
          type: boolean
        retention_days:
          type: integer
        last_cleanup:
          type:
          - string
          - 'null'
        last_error:
          type:
          - string
          - 'null'
        total_deleted:
          type: integer
      required:
      - enabled
      - retention_days
      - last_cleanup
      - last_error
      - total_deleted
    RetentionConfigureRequest:
      type: object
      properties:
        enabled:
          type:
          - boolean
          - 'null'
        retention_days:
          type:
          - integer
          - 'null'
      required:
      - enabled
      - retention_days