---
title: "Get Deployments"
method: GET
path: "/api/agent/deployment"
tags: ["DeploymentService"]
---

# Get Deployments

`GET /api/agent/deployment`

Get all deployments for a token

## Response `200`

OK

- ProtosDeploymentV1GetDeploymentByTokenResponse
  - `deployment` ProtosCommonV1DeploymentV1 — Careful, these are used by the CLI
    - `id` integer
    - `name` string
    - `display_name` string
    - `slug` string
    - `source_type` string
    - `has_autofix` boolean
    - `has_deepsemgrep` boolean
    - `has_triage_via_comment` boolean
    - `has_dependency_query` boolean
    - `default_user_role` string
    - `features` ProtosCommonV1DeploymentV1DeploymentFeature[]
      - `name` string
      - `expires_at` string
    - `organization_id` integer
    - `scm_name` string

---

[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/versions/6483eeecd582/schema)
