---
title: "Get all deployment gates"
method: GET
path: "/api/v2/deployment_gates"
tags: ["Deployment Gates"]
---

# Get all deployment gates

`GET /api/v2/deployment_gates`

Returns a paginated list of all deployment gates for the organization.
Use `page[cursor]` and `page[size]` query parameters to paginate through results.

## Query parameters

- `page[cursor]` string
- `page[size]` integer

## Response `200`

OK

- DeploymentGatesListResponse — Response containing a paginated list of deployment gates.
  - `data` DeploymentGateResponseData[] — Array of deployment gates.
    - `attributes` DeploymentGateResponseDataAttributes, required — Basic information about a deployment gate.
      - `created_at` string, date-time, required — The timestamp when the deployment gate was created.
      - `created_by` DeploymentGateResponseDataAttributesCreatedBy, required — Information about the user who created the deployment gate.
        - `handle` string — The handle of the user who created the deployment rule.
        - `id` string, required — The ID of the user who created the deployment rule.
        - `name` string — The name of the user who created the deployment rule.
      - `dry_run` boolean, required — Whether this gate is run in dry-run mode.
      - `env` string, required — The environment of the deployment gate.
      - `identifier` string, required — The identifier of the deployment gate.
      - `service` string, required — The service of the deployment gate.
      - `updated_at` string, date-time — The timestamp when the deployment gate was last updated.
      - `updated_by` DeploymentGateResponseDataAttributesUpdatedBy — Information about the user who updated the deployment gate.
        - `handle` string — The handle of the user who updated the deployment rule.
        - `id` string, required — The ID of the user who updated the deployment rule.
        - `name` string — The name of the user who updated the deployment rule.
    - `id` string, required — Unique identifier of the deployment gate.
    - `type` 'deployment_gate', required — Deployment gate resource type.
  - `meta` DeploymentGatesListResponseMeta — Metadata for a list of deployment gates response.
    - `page` DeploymentGatesListResponseMetaPage — Pagination information for a list of deployment gates.
      - `cursor` string — The cursor used for the current page.
      - `next_cursor` string — The cursor to use to fetch the next page. This is absent when there are no more pages.
      - `size` integer — The number of results per page.

## Other responses

- `400` — Bad request.
- `401` — Unauthorized
- `403` — Forbidden
- `429` — Too many requests
- `500` — Internal Server Error

---

[API](https://skmtc.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/versions/da68bf029e4c/schema)
