Skip to main content
GET
Get the detection policy summary
This endpoint is in beta. It may still change before it reaches general availability.

Authorizations

Authorization
string
header
required

Get access to data with your API token. Example header:

Authorization: Bearer 2991e2fb4b540fe75b8f90677b0b892b6314e4961cb001fe6eb452eee248a628

The token can be provisioned from the Tokens section in your Settings, and requires explicitly enabling Web API access.

Path Parameters

deploymentId
integer<int64>
required

The unique numerical identifier for the deployment.

Example:

1234

Response

200 - application/json

OK

deployment_slug
string

The slug of the deployment.

Example:

"my-org"

code
object

The detection policy state for Semgrep Code.

secrets
object

The detection policy state for Semgrep Secrets. Absent when Secrets is not enabled for the deployment.