Skip to main content
GET
Get a detection policy
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

product
string
required

The product to read the detection policy for. One of: code, secrets.

Example:

"code"

Response

200 - application/json

OK

bundle
Detection Policy Bundle · object

The detection policy bundle for the requested product.

state_version
string

A content-only fingerprint of the bundle. It changes only when the bundle's content changes. Send it as the If-Match header on PUT.

Example:

"a1b2c3d4"