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

# POST /StartCodeReviewJob

`POST /StartCodeReviewJob`

Starts a new code review job for a code review configuration. The job executes the security-focused code analysis defined in the code review.

## Request body

- object
  - `agentSpaceId` string, required — The unique identifier of the agent space.
  - `codeReviewId` string, required — The unique identifier of the code review to start a job for.
  - `diffSource` object — Source of the diff for a differential code scan.
    - `s3Uri` string — S3 URI pointing to a unified diff file. The file must be in standard unified diff format and stored in an S3 bucket connected to your Agent Space.

## Response `200`

Success

- StartCodeReviewJobOutput — Output for the StartCodeReviewJob operation.
  - `title` string — The title of the code review job.
  - `status` 'IN_PROGRESS' | 'STOPPING' | 'STOPPED' | 'FAILED' | 'COMPLETED' — The current status of the code review job.
  - `createdAt` string, date-time — The date and time the code review job was created, in UTC format.
  - `updatedAt` string, date-time — The date and time the code review job was last updated, in UTC format.
  - `codeReviewId` string, required — The unique identifier of the code review.
  - `codeReviewJobId` string, required — The unique identifier of the started code review 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)
