---
title: "POST /StopPentestJob"
method: POST
path: "/StopPentestJob"
---

# POST /StopPentestJob

`POST /StopPentestJob`

Stops a running pentest job. The job transitions to a stopping state and then to stopped after cleanup completes.

## Request body

- object
  - `agentSpaceId` string, required — The unique identifier of the agent space.
  - `pentestJobId` string, required — The unique identifier of the pentest job to stop.

## Response `200`

Success

- StopPentestJobOutput — Output for the StopPentestJob operation.

---

[API](https://skmtc.net/aws/apis/securityagent.md) · [All operations](https://skmtc.net/aws/apis/securityagent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/securityagent/versions/cad56717d636/schema)
