Secrets Scanning

Use the REST API to query secrets detection metrics

Table of Contents

Introduction

The Secrets API provides a RESTful interface for querying various metrics related to Secrets detection findings and events. It offers endpoints to retrieve information about secret findings, events, and counts.

Get Secret Events

This endpoint returns the list of events that have occurred related to dependency vulnerabilities.

Event types:

  • new-finding

  • new-findings

  • new-allowlisted-finding

  • new-allowlisted-findings

curl -L \
    -H "Accept: application/json" \
    -H "Authorization: Bearer <YOUR-TOKEN>" \
    https://api.nullify.ai/secrets/events?githubOwnerId=1234&githubRepositoryId=5678

Get Secrets

This endpoint returns the list of current secrets in the repository.

curl -L \
   -H "Accept: application/json" \
   -H "Authorization: Bearer <YOUR-TOKEN>" \
   https://api.nullify.ai/secrets/summary?githubOwnerId=1234&githubRepositoryId=5678

Get Secret Counts By Type

This endpoint returns the count of secrets per type.

curl -L \
   -H "Accept: application/json" \
   -H "Authorization: Bearer <YOUR-TOKEN>" \
   https://api.nullify.ai/secrets/counts/type/latest?githubOwnerId=1234&githubRepositoryId=5678

Last updated

© 2023 Nullify | All Rights Reserved.