---
title: "Get deployment gate"
method: GET
path: "/api/v2/deployment_gates/{id}"
tags: ["Deployment Gates"]
---

# Get deployment gate

`GET /api/v2/deployment_gates/{id}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/deployment_gates/{id}`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Endpoint to get a deployment gate.

## Path parameters

- `id` string, required

## Response `200`

OK

- DeploymentGateResponse: Response for a deployment gate.
  - `data` DeploymentGateResponseData: Data for a deployment gate.
    - `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.

## Other responses

- `400`: Bad request.
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Deployment gate not found.
- `429`: Too many requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
