v1
latestOpenAPI 3.0.32026-07-22238629559.2 KBPoliciesService
List policies
get/api/v1/deployments/{deploymentId}/policies
Path parameters
deploymentIdstring int64 required
Deployment ID (numeric). Example: 123. Can be found at /deployments, or in your Settings in the web UI.
Response
OK
Example response
{
"policies": [
{
"id": "1",
"isDefault": true,
"name": "Global Policy",
"productType": "PRODUCT_TYPE_SAST",
"slug": "global_policy"
},
{
"id": "2",
"isDefault": false,
"name": "Semgrep test",
"productType": "PRODUCT_TYPE_SAST",
"slug": "semgrep_test"
},
{
"id": "3",
"isDefault": true,
"name": "Global Secrets Policy",
"productType": "PRODUCT_TYPE_SECRETS",
"slug": "global_secrets_policy"
}
]
}