---
title: "Undo what the ingestion jobs created since a timestamp (admin): `kind` = `detections` (accounts + contacts from the email detector and the sweep), `linkedin` (the LinkedIn resolver's contacts + accounts; their conversations are unlinked and parked), `email-tasks` (auto-created tasks and cases) or `all` (default). Deletes only rows no human has touched and marks the verdicts / decisions rolled_back so they are never re-created. `dryRun` lists what would go; per-kind counts in `kinds`"
method: POST
path: "/crm/detections/undo"
tags: ["crm"]
---

# Undo what the ingestion jobs created since a timestamp (admin): \`kind\` = \`detections\` (accounts + contacts from the email detector and the sweep), \`linkedin\` (the LinkedIn resolver's contacts + accounts; their conversations are unlinked and parked), \`email-tasks\` (auto-created tasks and cases) or \`all\` (default). Deletes only rows no human has touched and marks the verdicts / decisions rolled_back so they are never re-created. \`dryRun\` lists what would go; per-kind counts in \`kinds\`

`POST /crm/detections/undo`

## Request

- Base URL: `https://www.dench.com/api/v1`
- URL: `https://www.dench.com/api/v1/crm/detections/undo`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Undo what the ingestion jobs created since a timestamp (admin): `kind` = `detections` (accounts + contacts from the email detector and the sweep), `linkedin` (the LinkedIn resolver's contacts + accounts; their conversations are unlinked and parked), `email-tasks` (auto-created tasks and cases) or `all` (default). Deletes only rows no human has touched and marks the verdicts / decisions rolled_back so they are never re-created. `dryRun` lists what would go; per-kind counts in `kinds`.

## Request body

- object
  - `since` number, required: Only verdicts / decisions at or after this ms timestamp.
  - `kind` 'detections' | 'linkedin' | 'email-tasks' | 'all': Which creator's rows to undo. Default `all`.
  - `dryRun` boolean
  - `limit` integer

## Response `200`

Successful response

- unknown

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid authentication
- `404`: Operation or resource not found
- `500`: Server error

---

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