Skip to main content
POST
/
api
/
v1
/
sca
/
licenses
/
unlicensed
List unlicensed SCA packages
curl --request POST \
  --url https://zeropath.com/api/v1/sca/licenses/unlicensed \
  --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": 50
}
'
{
  "packages": [
    {
      "id": "<string>",
      "name": "<string>",
      "ecosystem": "<string>",
      "version": "<string>",
      "manifestPath": "<string>",
      "manifestStartLine": 123,
      "manifestEndLine": 123,
      "manifestStartColumn": 123,
      "manifestEndColumn": 123,
      "repositoryId": "<string>",
      "repositoryName": "<string>",
      "branch": "<string>",
      "commitSha": "<string>",
      "count": 123,
      "items": "<array>"
    }
  ],
  "hasMorePackages": true,
  "nextPackageCursor": "<string>"
}

Authorizations

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

Body

application/json
organizationId
string
required
repositoryIds
string[]
cursor
string

Package id cursor for pagination

limit
integer
default:50
Required range: 1 <= x <= 200

Response

Successful response

packages
object[]
required
hasMorePackages
boolean
required
nextPackageCursor
string | null