---
title: "Read the whole history again, from the beginning"
method: POST
path: "/api/v1/contacts/{id}/memory/regenerate"
---

# Read the whole history again, from the beginning

`POST /api/v1/contacts/{id}/memory/regenerate`

## Request

- Base URL: `https://memchats.com`
- URL: `https://memchats.com/api/v1/contacts/{id}/memory/regenerate`
- Auth: HTTP bearer

Replaces the contact's memory sheet with one distilled from every message, ignoring the watermark and any plan window. Takes minutes; the messages themselves are untouched. Plus and above: on Free the sweep would be bounded to the same 2,000 most recent messages the sheet already has.

## Path parameters

- `id` integer, required

## Response `200`

The resweep is queued

- object
  - `ok` boolean
  - `contact_id` integer
  - `status` 'queued'

## Other responses

- `402`: Plus or above required (code: plan_required)
- `404`: Contact not found
- `429`: A sweep is already running for this contact (code: sweep_running)
- `503`: The memory queue is not available

---

[API](https://skmtc.dev/memchats/apis/memchats-api.md) · [All operations](https://skmtc.dev/memchats/apis/memchats-api/llms.txt) · [OpenAPI document](https://skmtc.dev/memchats/apis/memchats-api/revisions/e62bca06f785?raw)
