Skip to main content
POST
/
api
/
v1
/
repositories
/
list
Get repositories
curl --request POST \
  --url https://zeropath.com/api/v1/repositories/list \
  --header 'Content-Type: application/json' \
  --header 'X-ZeroPath-API-Token-Id: <api-key>' \
  --header 'X-ZeroPath-API-Token-Secret: <api-key>' \
  --data '
{
  "organizationId": "<string>",
  "appId": "<string>",
  "getCounts": true
}
'
[
  {
    "id": "<string>",
    "projectId": "<string>",
    "name": "<string>",
    "url": "<string>",
    "defaultScanTargetBranch": "<string>",
    "isPrScanningEnabled": true,
    "isPrScanSummaryEnabled": true,
    "includeVulnDetailsInPrComment": true,
    "isInlinePrReviewsEnabled": true,
    "postVcsCheckStatus": true,
    "issueCounts": {
      "open": 123,
      "patched": 123,
      "falsePositive": 123,
      "archived": 123
    },
    "repositoryUrl": "<string>",
    "fullScanAutoPatching": true,
    "prBranchFormat": "<string>",
    "prCommitMessageFormat": "<string>",
    "prTitleTemplate": "<string>",
    "prDescriptionTemplate": "<string>",
    "fullScanPrGenerationThreshold": 123,
    "fullScanPatchThreshold": 123,
    "prCheckFailureThreshold": 123,
    "enabledSourceTypes": [
      "<string>"
    ],
    "githubRepository": {
      "id": "<string>",
      "externalGithubRepositoryId": "<string>",
      "githubAppInstallationId": "<string>"
    },
    "gitlabRepository": {
      "id": "<string>",
      "gitlabInstallationId": "<string>"
    },
    "bitbucket": {
      "repositoryUrl": "<string>",
      "linkActive": true
    },
    "genericGit": {
      "repositoryUrl": "<string>",
      "linkActive": true
    }
  }
]

Authorizations

X-ZeroPath-API-Token-Id
string
header
required
X-ZeroPath-API-Token-Secret
string
header
required

Body

application/json
organizationId
string
appId
string
getCounts
boolean
default:true

Response

Successful response

id
string
required
projectId
string
required
name
string
required
url
string
required
defaultScanTargetBranch
string
required
isPrScanningEnabled
boolean
required
isPrScanSummaryEnabled
boolean
required
includeVulnDetailsInPrComment
boolean
required
isInlinePrReviewsEnabled
boolean
required
postVcsCheckStatus
boolean
required
issueCounts
object
repositoryUrl
string
fullScanAutoPatching
boolean
prBranchFormat
string | null
prCommitMessageFormat
string | null
prTitleTemplate
string | null
prDescriptionTemplate
string | null
fullScanPrGenerationThreshold
number
fullScanPatchThreshold
number
prCheckFailureThreshold
number
enabledSourceTypes
string[]
githubRepository
object
gitlabRepository
object
bitbucket
object
genericGit
object