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
}'
[
  {
    "issueCounts": {
      "open": 123,
      "patched": 123,
      "falsePositive": 123,
      "archived": 123,
      "processing": 123
    },
    "id": "<string>",
    "projectId": "<string>",
    "name": "<string>",
    "url": "<string>",
    "repositoryUrl": "<string>",
    "isAutoEnablePatchGenerationFullScan": true,
    "defaultScanTargetBranch": "<string>",
    "isPrScanningEnabled": true,
    "isPrScanSummaryEnabled": true,
    "prBranchFormat": "<string>",
    "prCommitMessageFormat": "<string>",
    "prTitleTemplate": "<string>",
    "prDescriptionTemplate": "<string>",
    "isVulnInfoInPRComment": true,
    "isAutoGeneratePrForPrScan": true,
    "showCheckStatus": true,
    "patchScoreThreshold": 123,
    "validationThreshold": 123,
    "validationThresholdName": "Critical",
    "prGenerationFullScanThreshold": 123,
    "patchFullScanThreshold": 123,
    "prStatusThreshold": 123,
    "prScanIssuePrPatchGenerationThreshold": 123,
    "prScanIssuePrGenerationThreshold": 123,
    "enabledSourceTypes": [
      "<string>"
    ],
    "cweWhitelist": [
      "<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
isVulnInfoInPRComment
boolean
required
showCheckStatus
boolean
required
validationThreshold
number
required
validationThresholdName
enum<string>
required
Available options:
Critical,
High,
Medium,
Low,
Info
issueCounts
object
repositoryUrl
string
isAutoEnablePatchGenerationFullScan
boolean
prBranchFormat
string | null
prCommitMessageFormat
string | null
prTitleTemplate
string | null
prDescriptionTemplate
string | null
isAutoGeneratePrForPrScan
boolean
patchScoreThreshold
number
prGenerationFullScanThreshold
number
patchFullScanThreshold
number
prStatusThreshold
number
prScanIssuePrPatchGenerationThreshold
number
prScanIssuePrGenerationThreshold
number
enabledSourceTypes
string[]
cweWhitelist
string[]
githubRepository
object
gitlabRepository
object
bitbucket
object
genericGit
object