Skip to main content
POST
/
api
/
v1
/
sca
/
repositories
/
search
List SCA repositories with dependency inventory
curl --request POST \
  --url https://zeropath.com/api/v1/sca/repositories/search \
  --header 'Content-Type: application/json' \
  --header 'X-ZeroPath-API-Token-Id: <api-key>' \
  --header 'X-ZeroPath-API-Token-Secret: <api-key>' \
  --data '
{
  "organizationId": "<string>",
  "repositoryIds": [
    "<string>"
  ],
  "cursor": "<string>",
  "limit": 10,
  "searchQuery": "<string>",
  "hasVulnerabilities": true,
  "packageType": "public",
  "ecosystems": [
    "<string>"
  ]
}
'
{
  "repositories": [
    {
      "repositoryId": "<string>",
      "repositoryName": "<string>",
      "scaScanId": "<string>",
      "scaScanUpdatedAt": "2023-11-07T05:31:56Z",
      "manifestCount": 123,
      "uniquePackageCount": 123,
      "totalInstanceCount": 123,
      "vulnerablePackageCount": 123
    }
  ],
  "nextCursor": "<string>"
}

Authorizations

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

Body

application/json
organizationId
string
repositoryIds
string[]
cursor
string
limit
integer
default:10
Required range: 1 <= x <= 50
searchQuery
string
hasVulnerabilities
boolean
packageType
enum<string>
Available options:
public,
private
ecosystems
string[]

Response

Successful response

repositories
object[]
required
nextCursor
string | null