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

# POST /StartPentestJob

`POST /StartPentestJob`

Starts a new pentest job for a pentest configuration. The job executes the security tests defined in the pentest.

## Request body

- object
  - `agentSpaceId` string, required — The unique identifier of the agent space.
  - `pentestId` string, required — The unique identifier of the pentest to start a job for.

## Response `200`

Success

- StartPentestJobOutput — Output for the StartPentestJob operation.
  - `title` string — The title of the pentest job.
  - `status` 'IN_PROGRESS' | 'STOPPING' | 'STOPPED' | 'FAILED' | 'COMPLETED' — The current status of the pentest job.
  - `createdAt` string, date-time — The date and time the pentest job was created, in UTC format.
  - `updatedAt` string, date-time — The date and time the pentest job was last updated, in UTC format.
  - `pentestId` string — The unique identifier of the pentest.
  - `pentestJobId` string — The unique identifier of the started pentest job.
  - `agentSpaceId` string — The unique identifier of the agent space.

---

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