Skip to main content
POST
/
api
/
v1
/
sca
/
manifests
/
packages
/
search
List packages for an SCA manifest
curl --request POST \
  --url https://zeropath.com/api/v1/sca/manifests/packages/search \
  --header 'Content-Type: application/json' \
  --header 'X-ZeroPath-API-Token-Id: <api-key>' \
  --header 'X-ZeroPath-API-Token-Secret: <api-key>' \
  --data '
{
  "manifestId": "<string>",
  "organizationId": "<string>",
  "offset": 0,
  "limit": 25,
  "searchQuery": "<string>",
  "hasVulnerabilities": true,
  "transitivity": "direct",
  "packageType": "public",
  "ecosystems": [
    "<string>"
  ],
  "sortBy": "name"
}
'
{
  "packages": [
    {
      "id": "<string>",
      "name": "<string>",
      "ecosystem": "<string>",
      "isDirectDependency": true,
      "hasTransitivePaths": true,
      "pathCount": 123,
      "isPrivate": true,
      "licenses": [
        {
          "name": "<string>"
        }
      ],
      "vulnerabilityCount": 123,
      "allInstanceIds": [
        "<string>"
      ],
      "repositoryId": "<string>",
      "repositoryName": "<string>",
      "manifestPath": "<string>",
      "version": "<string>",
      "manifestStartLine": 123,
      "manifestEndLine": 123,
      "codeScanVulnerabilityId": "<string>",
      "branch": "<string>",
      "commitSha": "<string>"
    }
  ],
  "totalCount": 123,
  "hasMore": true
}

Authorizations

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

Body

application/json
manifestId
string
required
organizationId
string
offset
integer
default:0
Required range: x >= 0
limit
integer
default:25
Required range: 1 <= x <= 100
searchQuery
string
hasVulnerabilities
boolean
transitivity
enum<string>
Available options:
direct,
transitive
packageType
enum<string>
Available options:
public,
private
ecosystems
string[]
sortBy
enum<string>
default:name
Available options:
name,
vulnerabilities

Response

Successful response

packages
object[]
required
totalCount
integer
required
hasMore
boolean
required