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

# Repositories

`POST /api/v1/repositories`

## Request

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

Get all repositories for an organization

## Request body

- object
  - `organizationId` string, required: Unique identifier of the organization

## Response `200`

List of repositories associated with the organization

- Repository[]
  - `id` string, required: Unique identifier for the repository
  - `name` string, required: Name of the repository
  - `isEphemeral` boolean, required: Indicates if the repository was created via CLI and should be hidden from the UI
  - `updatedAt` string, date-time: Timestamp of when the repository was last updated
  - `createdAt` string, date-time: Timestamp of when the repository was created
  - `repositoryUrl` string: Full URL to the repository
  - `repositoryName` string: Display name of the repository
  - `ownerUsername` string: Username of the repository owner
  - `prScansEnabled` boolean, required: Enables automatic security scanning of pull requests
  - `prScanSummariesEnabled` boolean, required: Enables generation of summary reports for PR scans
  - `silentPrScansEnabled` boolean, required: Enables background scanning of PRs without posting results to the VCS
  - `hideVulnerabilityInPrComments` boolean, required: Controls whether vulnerability details are hidden in PR comments for security
  - `autoGeneratePatches` boolean, required: Enables automatic generation of security patches
  - `defaultBranch` string: Default branch used for scanning and PR creation
  - `vcs` union: Version Control System specific configuration
    - GithubRepository: GitHub-specific repository configuration
      - `id` string: Unique identifier for the GitHub repository configuration
      - `installationId` string: GitHub App installation identifier
      - `isAccessTokenSet` boolean: Indicates if a valid access token is configured
      - `externalGithubRepositoryId` string: GitHub's internal repository identifier
      - `externalGithubAppInstallationId` string: GitHub's internal app installation identifier
      - `externalGithubAppId` string: GitHub's internal app identifier
    - GitlabRepository: GitLab-specific repository configuration
      - `id` string: Unique identifier for the GitLab repository configuration
      - `installationId` string: GitLab installation identifier
      - `webhookSigningSecretSet` boolean: Indicates if a webhook signing secret is configured
      - `externalGitlabProjectId` string: GitLab's internal project identifier
    - BitbucketRepository: Bitbucket-specific repository configuration
      - `id` string: Unique identifier for the Bitbucket repository configuration
      - `installationId` string: Bitbucket installation identifier
      - `webhookSigningSecretSet` boolean: Indicates if a webhook signing secret is configured
    - AzureDevOpsRepository: Azure DevOps-specific repository configuration
      - `id` string: Unique identifier for the Azure DevOps repository configuration
      - `installationId` string: Azure DevOps installation identifier
      - `externalAzureRepositoryId` string: Azure DevOps' stable repository ID
    - GenericGitRepository: Configuration for generic Git repositories not tied to a specific provider
      - `id` string: Unique identifier for the generic repository configuration

---

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