---
title: "Stop a running scan. Members can stop pentests they started and any PR scan; admins can stop any scan."
method: POST
path: "/scans/{id}/stop"
tags: ["REST API - Scans"]
---

# Stop a running scan. Members can stop pentests they started and any PR scan; admins can stop any scan.

`POST /scans/{id}/stop`

## Request

- Base URL: `https://api.hacktron.ai/v1`
- URL: `https://api.hacktron.ai/v1/scans/{id}/stop`
- Auth: API key in header `X-Api-Key`

## Path parameters

- `id` string, required

## Response `200`

- RestScanStatusResponseDto
  - `id` string, required
  - `task_id` string, required
  - `status` 'pending' | 'running' | 'completed' | 'failed' | 'stopped' | 'cancelled' | 'skipped' | 'pending_verification' | 'pending_triage' | 'draft' | 'estimating' | 'estimated', required
  - `created_at` string, required
  - `updated_at` string, required

## Changes

- **2026-11-03** `48b2f95b2320`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hacktron/apis/hacktron-rest-api/changes/scans/:id/stop/post.md)

---

[API](https://skmtc.dev/hacktron/apis/hacktron-rest-api.md) - [All operations](https://skmtc.dev/hacktron/apis/hacktron-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hacktron/apis/hacktron-rest-api/revisions/48b2f95b2320?raw)
