---
title: "Patch Thread Memory Incognito"
method: PATCH
path: "/api/threads/{thread_id}/memory-incognito"
tags: ["threads", "threads"]
---

# Patch Thread Memory Incognito

`PATCH /api/threads/{thread_id}/memory-incognito`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/threads/{thread_id}/memory-incognito`
- Auth: none declared

Toggle the per-thread incognito flag.

When flipping ON, advance memory_distillation_state.last_distilled_message_id
to MAX(message.id) so the distiller skips all pre-incognito messages on
the next pass (spec §5.4 L716-723). When flipping OFF, the watermark
is left as-is — the distiller picks up from where it left off so
user-visible messages after toggle-OFF still get distilled.

PR6 Task 6.4.

## Path parameters

- `thread_id` integer, required

## Request body

- MemoryIncognitoIn
  - `memory_incognito` boolean, required

## Response `200`

Successful Response

- MemoryIncognitoOut
  - `thread_id` integer, required
  - `memory_incognito` boolean, required
  - `distillation_watermark_advanced` boolean

## Other responses

- `422`: Validation Error

---

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