---
title: "List deployment gate evaluations"
method: GET
path: "/api/v2/deployment_gates/evaluations"
tags: ["Deployment Gates"]
---

# List deployment gate evaluations

`GET /api/v2/deployment_gates/evaluations`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/deployment_gates/evaluations`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `deployment_gates_read`
- TypeScript: <https://skmtc.dev/datadog/apis/datadog-api-v2-collection/docs/api/v2/deployment_gates/evaluations/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns deployment gate evaluations started in a maximum 30-day window (the default is the previous 24 hours).
Results are ordered by start time, newest first.
In-progress state is near-real-time and mutable. Finished state is eventually consistent.

## Query parameters

- `filter[from]` string, date-time
- `filter[to]` string, date-time
- `filter[service]` string[]
- `filter[env]` string[]
- `filter[identifier]` string[]
- `filter[status]` DeploymentGatesEvaluationResultResponseAttributesGateStatus[]
- `filter[dry_run]` boolean
- `filter[evaluation_id]` string, uuid
- `filter[gate_id]` string, uuid
- `filter[version]` string[]
- `page[size]` integer
- `page[cursor]` string

## Response `200`

OK

- DeploymentGateEvaluationsResponse: Paginated deployment gate evaluations.
  - `data` DeploymentGateEvaluationData[], required
    - `attributes` DeploymentGateEvaluationAttributes, required: Attributes of a deployment gate evaluation.
      - `dry_run` boolean, required: Whether this evaluation used gate-level dry run.
      - `duration_seconds` integer, nullable, required: Evaluation duration in seconds. Null while it is in progress.
      - `env` string, required: Deployment environment evaluated by the gate.
      - `evaluation_id` string, uuid, required: Gate evaluation UUID. Matches the resource `id`.
      - `finished_at` string, date-time, nullable, required: Time the evaluation finished. Null while it is in progress.
      - `gate_id` string, uuid, nullable, required: Configured deployment gate UUID. Null for just-in-time evaluations.
      - `identifier` string, required: Deployment gate identifier.
      - `service` string, required: Service evaluated by the deployment gate.
      - `started_at` string, date-time, required: Time the evaluation started.
      - `status` 'in_progress' | 'pass' | 'fail', required: The recorded result of a gate or rule evaluation. - `in_progress`: The evaluation is still running. - `pass`: All rules passed successfully. - `fail`: One or more rules did not pass.
      - `version` string, required: Evaluated deployment version. Empty when no version was provided.
    - `id` string, uuid, required: Deployment gate evaluation UUID.
    - `type` 'deployment_gate_evaluation', required: JSON:API type for a deployment gate evaluation.
  - `meta` DeploymentGateEvaluationListMeta, required: Pagination metadata.
    - `page` DeploymentGateEvaluationPage, required: Cursor pagination information.
      - `next_cursor` string: Opaque cursor for the next page. Absent on the final page.
      - `size` integer, required: Requested maximum number of resources in this page.

## Other responses

- `400`: Bad request.
- `401`: Unauthorized
- `403`: Forbidden
- `429`: Too many requests

---

[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/3f70db624329?raw)
