---
title: "Scan standalone repository"
method: POST
path: "/api/v1/scans/scan-standalone-repo"
tags: ["Scans"]
---

# Scan standalone repository

`POST /api/v1/scans/scan-standalone-repo`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v1/scans/scan-standalone-repo`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

## Request body

- ScanStandaloneRepoInput
  - `organizationId` string
  - `repositoryId` string, required
  - `chunk` string, required
  - `chunkIndex` number, required
  - `totalChunks` number, required
  - `fileId` string

## Response `200`

Scan started successfully

- ScanStandaloneRepoResponse
  - `fileId` string, required
  - `stagedCodeScanId` string

## Other responses

- `400`: Bad Request
- `401`: Unauthorized

---

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