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

Authorizations

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

Body

application/json
organizationId
string
repositoryIds
string[]

Response

Successful response

licenses
object[]