---
title: "Execute Sweep"
method: POST
path: "/admin/expansions/execute"
tags: ["Admin"]
---

# Execute Sweep

`POST /admin/expansions/execute`

## 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/expansions/execute`
- Auth: none declared

Queue the planned scrapes on our own budget.

Re-plans rather than trusting a plan posted back: a client-supplied
list of searches to run would be a way to spend our Apify balance on
arbitrary keywords. ``expect_scrapes`` is how the reviewed plan is
tied to this call — the LLM is non-deterministic, so re-planning can
legitimately produce a different set, and a mismatch means what runs
is not what was read.

## Query parameters

- `lookback_days` integer
- `max_scrapes` integer
- `user_id` string, nullable
- `confirm` boolean: Must be true to spend anything
- `expect_scrapes` integer, nullable: Scrape count you saw in /plan. Mismatch aborts.

## 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)
