---
title: "POST /archive/init"
method: POST
path: "/archive/init"
---

# POST /archive/init

`POST /archive/init`

POST /archive/init — initialize the archive system.

## Request body

- ArchiveInitRequest
  - `token` string, required
  - `retention_days` integer, nullable, required

## Response `200`

OK

- ArchiveInitResponse
  - `success` boolean, required
  - `machine_id` string, required

## Changes

- **2026-04-08** `1a63468a8d30` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/screenpipe/apis/screenpipe-api/changes/archive/init/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/1a63468a8d30/schema)
