---
title: "Get repositories"
method: POST
path: "/api/v1/repositories/list"
tags: ["Repositories"]
---

# Get repositories

`POST /api/v1/repositories/list`

## Request

- Base URL: `https://zeropath.com`
- URL: `https://zeropath.com/api/v1/repositories/list`
- Auth: API key in header `X-ZeroPath-API-Token-Id` and API key in header `X-ZeroPath-API-Token-Secret`

## Request body

- ListRepositoriesInput
  - `organizationId` string
  - `appId` string
  - `getCounts` boolean

## Response `200`

Successful response

- Repository[]
  - `issueCounts` IssuesByType
    - `open` number
    - `patched` number
    - `falsePositive` number
    - `archived` number
  - `id` string, required
  - `projectId` string, required
  - `name` string, required
  - `url` string, required
  - `repositoryUrl` string
  - `fullScanAutoPatching` boolean
  - `defaultScanTargetBranch` string, required
  - `isPrScanningEnabled` boolean, required
  - `isPrScanIssueSummaryEnabled` boolean, required
  - `isPrScanCleanSummaryEnabled` boolean, required
  - `prBranchFormat` string, nullable
  - `prCommitMessageFormat` string, nullable
  - `prTitleTemplate` string, nullable
  - `prDescriptionTemplate` string, nullable
  - `includeVulnDetailsInPrComment` boolean, required
  - `isInlinePrReviewsEnabled` boolean, required
  - `postVcsCheckStatus` boolean, required
  - `fullScanPrGenerationThreshold` number
  - `fullScanPatchThreshold` number
  - `prCheckFailureThreshold` number
  - `githubRepository` object
    - `id` string
    - `externalGithubRepositoryId` string
    - `githubAppInstallationId` string
  - `gitlabRepository` object
    - `id` string
    - `gitlabInstallationId` string, nullable
  - `bitbucket` object
    - `repositoryUrl` string
    - `linkActive` boolean
  - `genericGit` object
    - `repositoryUrl` string
    - `linkActive` boolean
  - `cvs` object: CVS module location. Present only for CVS repositories, whose `url` is a `cvs+pserver:`/`cvs+ssh:`/`scp:` URI rather than a browsable web address.
    - `cvsRepositoryId` string
    - `cvsServerId` string
    - `cvsRoot` string: Absolute path of the CVS repository root ($CVSROOT) on the server
    - `modulePath` string: Module path underneath the CVS root
    - `transport` 'CVS_CHECKOUT' | 'SCP_DIRECTORY'
    - `branchTag` string, nullable: CVS branch or tag to check out; null selects trunk
    - `linkActive` boolean

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