---
title: "Initialize cloud archive"
method: POST
path: "/archive/init"
tags: ["Cloud Archive"]
---

# Initialize cloud archive

`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-09** `0f0f8030c7e2` — 1 info
  - api tag `Cloud Archive` added
- **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/0f0f8030c7e2/schema)
