---
title: "Create Scan Run"
method: POST
path: "/api/dedup-scan/runs"
tags: ["dedup-scan"]
---

# Create Scan Run

`POST /api/dedup-scan/runs`

## Request

- Base URL: `https://api.deeptrace.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.deeptrace.com/api/dedup-scan/runs`
- Auth: none declared

Create and start a dedup scan.

In dev mode: Executes synchronously, returns completed results inline
In prod mode: Enqueues to SQS, returns pending scan_run for polling

## Request body

- CreateScanRunRequest: Request to create a new scan run.
  - `hours_lookback` integer
  - `notification_channel_id` string, nullable

## Response `200`

Successful Response

- ScanRunWithResultsResponse: Response with scan run details and inline results (for dev mode).
  - `id` string, required
  - `team_id` string, required
  - `status` string, required
  - `hours_lookback` integer, required
  - `result_summary` object, nullable, required
  - `results` object[], nullable, required
  - `synthesis` string, nullable

## Other responses

- `422`: Validation Error

---

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