---
title: "List Policies"
method: GET
path: "/api/policies/v1/deployments/{deploymentId}"
tags: ["PoliciesService"]
---

# List Policies

`GET /api/policies/v1/deployments/{deploymentId}`

List all policies for a given deployment.

## Path parameters

- `deploymentId` string, int64, required — The unique numerical identifier for the deployment.

## Response `200`

OK

- ProtosPoliciesV1ListPoliciesResponse
  - `policies` ProtosCommonV1Policy[] — List of Policies associated with the given Deployment.
    - `id` string, int64 — ID of the Policy.
    - `isDefault` boolean — When True, the Policy applies to all repositories.
    - `name` string — Name of the Policy.
    - `productType` 'PRODUCT_TYPE_SAST' | 'PRODUCT_TYPE_SECRETS', enum — Product type the Policy applies to. | value | description | |-------|---------------| | PRODUCT_TYPE_SAST | The product type for Code rules. | | PRODUCT_TYPE_SECRETS | The product type for Secrets rules. |
    - `slug` string — Sanitized machine-readable name of the Policy.

---

[API](https://skmtc.net/semgrep/apis/semgrep-web-app.md) · [All operations](https://skmtc.net/semgrep/apis/semgrep-web-app/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/semgrep/semgrep-web-app/revisions/6483eeecd582/schema)
