---
title: "Data Isolation Backfill"
method: POST
path: "/admin/data-isolation/backfill"
tags: ["Admin"]
---

# Data Isolation Backfill

`POST /admin/data-isolation/backfill`

## Request

- Base URL: `https://api.kolens.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.kolens.ai/admin/data-isolation/backfill`
- Auth: none declared

Reverse-map shared scraped data into per-user discovery rows.

Walks ``search_jobs`` ordered ascending by ``created_at`` — older
jobs win, so the first user who surfaced a given author keeps the
earliest ``first_seen_at``.

Returns counts (videos / authors / contacts seen, discoveries
written). ``dry_run=true`` short-circuits the write — useful to
size the migration before pulling the trigger.

## Query parameters

- `dry_run` boolean

## Headers

- `x-admin-secret` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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