---
title: "Library Session Scrub"
method: POST
path: "/library/session/{cid}/scrub"
---

# Library Session Scrub

`POST /library/session/{cid}/scrub`

## Request

- Base URL: `https://api-docs.session-exchange.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.session-exchange.com/library/session/{cid}/scrub`
- Auth: none declared

Re-run the secret scrubber over a saved session's transcript — account-scoped.
`?dry_run=1` returns {findings, would_change} without writing. Otherwise, if the scrub changes
anything, publishes a new CLEANED session version and bumps the collection manifest to point at
it (the previous version stays in history).

## Path parameters

- `cid` string, required

## Query parameters

- `dry_run` integer

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/session-exchange/apis/a4sx.md) · [All operations](https://skmtc.dev/session-exchange/apis/a4sx/llms.txt) · [OpenAPI document](https://skmtc.dev/session-exchange/apis/a4sx/revisions/abaefc33dfc7?raw)
