---
title: List deployment gate evaluations
description: Returns deployment gate evaluations started in a maximum 30-day window (the default is the previous 24 hours).
breadcrumbs: Documentación > API > List deployment gate evaluations
---

> For the complete documentation index, see [llms.txt](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/llms.txt).

# List deployment gate evaluations

## v2 (latest)

{% alert level="warning" %}
**Note**: This endpoint is in preview and may be subject to change.
If you have any feedback, contact [Datadog support](https://docs.datadoghq.com/help.md).
{% /alert %}

| Datadog site      | API endpoint                                                          |
| ----------------- | --------------------------------------------------------------------- |
| app.datadoghq.com | GET https://api.datadoghq.com/api/v2/deployment_gates/evaluations     |
| us3.datadoghq.com | GET https://api.us3.datadoghq.com/api/v2/deployment_gates/evaluations |
| us5.datadoghq.com | GET https://api.us5.datadoghq.com/api/v2/deployment_gates/evaluations |
| app.datadoghq.eu  | GET https://api.datadoghq.eu/api/v2/deployment_gates/evaluations      |
| ap1.datadoghq.com | GET https://api.ap1.datadoghq.com/api/v2/deployment_gates/evaluations |
| ap2.datadoghq.com | GET https://api.ap2.datadoghq.com/api/v2/deployment_gates/evaluations |
| uk1.datadoghq.com | GET https://api.uk1.datadoghq.com/api/v2/deployment_gates/evaluations |
| app.ddog-gov.com  | GET https://api.ddog-gov.com/api/v2/deployment_gates/evaluations      |
| us2.ddog-gov.com  | GET https://api.us2.ddog-gov.com/api/v2/deployment_gates/evaluations  |

### Overview

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.

This endpoint requires the `deployment_gates_read` permission.

OAuth apps require the `deployment_gates_read` authorization [scope](https://dnd37xeb23o8n.cloudfront.net/jen.gilbert/astro-base/es/api/latest/scopes.md#deployment-gates) to access this endpoint.

### Arguments

#### Query Strings

| Field                 | Type    | Description                                                                                                                                     |
| --------------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| filter[from]          | string  | Inclusive evaluation start time. Defaults to 24 hours before the request. Together with `filter[to]`, the window may span no more than 30 days. |
| filter[to]            | string  | Exclusive evaluation start time. Defaults to the request time. Must be after `filter[from]`; the window may span no more than 30 days.          |
| filter[service]       | array   | Service values. Repeated or comma-separated values are combined with OR.                                                                        |
| filter[env]           | array   | Environment values. Repeated or comma-separated values are combined with OR.                                                                    |
| filter[identifier]    | array   | Gate identifier values. Repeated or comma-separated values are combined with OR.                                                                |
| filter[status]        | array   | Gate outcomes. Repeated or comma-separated values are combined with OR.                                                                         |
| filter[dry_run]       | boolean | Gate-level dry-run state.                                                                                                                       |
| filter[evaluation_id] | string  | Gate evaluation UUID. No match returns an empty list.                                                                                           |
| filter[gate_id]       | string  | Configured gate UUID. Just-in-time evaluations have no gate ID.                                                                                 |
| filter[version]       | array   | Deployment version values. Repeated or comma-separated values are combined with OR.                                                             |
| page[size]            | integer | Maximum evaluations returned. Default: `20`.                                                                                                    |
| page[cursor]          | string  | Opaque cursor returned in `meta.page.next_cursor` by the previous page. Invalid cursors return 400.                                             |

### Response

{% tabs %}
{% tab label="200" %}
OK

{% tabs %}
{% tab label="Model" %}
Paginated deployment gate evaluations.

| Parent field | Field                         | Type      | Description                                                                                                                                                                                                                                |
| ------------ | ----------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|              | data [*required*]             | [object]  |                                                                                                                                                                                                                                            |
| data         | attributes [*required*]       | object    | Attributes of a deployment gate evaluation.                                                                                                                                                                                                |
| attributes   | dry_run [*required*]          | boolean   | Whether this evaluation used gate-level dry run.                                                                                                                                                                                           |
| attributes   | duration_seconds [*required*] | int64     | Evaluation duration in seconds. Null while it is in progress.                                                                                                                                                                              |
| attributes   | env [*required*]              | string    | Deployment environment evaluated by the gate.                                                                                                                                                                                              |
| attributes   | evaluation_id [*required*]    | uuid      | Gate evaluation UUID. Matches the resource `id`.                                                                                                                                                                                           |
| attributes   | finished_at [*required*]      | date-time | Time the evaluation finished. Null while it is in progress.                                                                                                                                                                                |
| attributes   | gate_id [*required*]          | uuid      | Configured deployment gate UUID. Null for just-in-time evaluations.                                                                                                                                                                        |
| attributes   | identifier [*required*]       | string    | Deployment gate identifier.                                                                                                                                                                                                                |
| attributes   | service [*required*]          | string    | Service evaluated by the deployment gate.                                                                                                                                                                                                  |
| attributes   | started_at [*required*]       | date-time | Time the evaluation started.                                                                                                                                                                                                               |
| attributes   | status [*required*]           | enum      | 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. Allowed enum values: `in_progress`, `pass`, `fail`. |
| attributes   | version [*required*]          | string    | Evaluated deployment version. Empty when no version was provided.                                                                                                                                                                          |
| data         | id [*required*]               | uuid      | Deployment gate evaluation UUID.                                                                                                                                                                                                           |
| data         | type [*required*]             | enum      | JSON:API type for a deployment gate evaluation. Allowed enum values: `deployment_gate_evaluation`. Default: `deployment_gate_evaluation`.                                                                                                  |
|              | meta [*required*]             | object    | Pagination metadata.                                                                                                                                                                                                                       |
| meta         | page [*required*]             | object    | Cursor pagination information.                                                                                                                                                                                                             |
| page         | next_cursor                   | string    | Opaque cursor for the next page. Absent on the final page.                                                                                                                                                                                 |
| page         | size [*required*]             | int64     | Requested maximum number of resources in this page.                                                                                                                                                                                        |
{% /tab %}

{% tab label="Example" %}
```json
{
  "data": [
    {
      "attributes": {
        "dry_run": true,
        "duration_seconds": 900,
        "env": "prod",
        "evaluation_id": "7853af70-e6bf-49d8-a6cc-1b9b50ef0537",
        "finished_at": "2026-09-14T08:15:00Z",
        "gate_id": "e7cd2af1-b67b-11ee-8d0d-2a7caf4aa214",
        "identifier": "default",
        "service": "checkout",
        "started_at": "2026-09-14T08:00:00Z",
        "status": "pass",
        "version": "2026.09.14.1"
      },
      "id": "7853af70-e6bf-49d8-a6cc-1b9b50ef0537",
      "type": "deployment_gate_evaluation"
    }
  ],
  "meta": {
    "page": {
      "next_cursor": "string",
      "size": 1
    }
  }
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="400" %}
Bad request.

{% tabs %}
{% tab label="Model" %}
API error response.

| Parent field | Field               | Type     | Description                                                                     |
| ------------ | ------------------- | -------- | ------------------------------------------------------------------------------- |
|              | errors [*required*] | [object] | A list of errors.                                                               |
| errors       | detail              | string   | A human-readable explanation specific to this occurrence of the error.          |
| errors       | meta                | object   | Non-standard meta-information about the error                                   |
| errors       | source              | object   | References to the source of the error.                                          |
| source       | header              | string   | A string indicating the name of a single request header which caused the error. |
| source       | parameter           | string   | A string indicating which URI query parameter caused the error.                 |
| source       | pointer             | string   | A JSON pointer to the value in the request document that caused the error.      |
| errors       | status              | string   | Status code of the response.                                                    |
| errors       | title               | string   | Short human-readable summary of the error.                                      |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    {
      "detail": "Missing required attribute in body",
      "meta": {},
      "source": {
        "header": "Authorization",
        "parameter": "limit",
        "pointer": "/data/attributes/title"
      },
      "status": "400",
      "title": "Bad Request"
    }
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="401" %}
Unauthorized

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="403" %}
Forbidden

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}

{% tab label="429" %}
Too many requests

{% tabs %}
{% tab label="Model" %}
API error response.

| Field               | Type     | Description       |
| ------------------- | -------- | ----------------- |
| errors [*required*] | [string] | A list of errors. |
{% /tab %}

{% tab label="Example" %}
```json
{
  "errors": [
    "Bad Request"
  ]
}
```
{% /tab %}
{% /tabs %}
{% /tab %}
{% /tabs %}

### Code Example

{% tabs %}
{% tab label="Curl" %}
```bash
# Set your Datadog site and credentials
export DD_SITE="datadoghq.com" # Or us3.datadoghq.com, us5.datadoghq.com, datadoghq.eu, ap1.datadoghq.com, ap2.datadoghq.com, uk1.datadoghq.com, ddog-gov.com, us2.ddog-gov.com
# Use a Personal Access Token or Service Access Token
export DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>"

curl -X GET "https://api.${DD_SITE}/api/v2/deployment_gates/evaluations" \
-H "Accept: application/json" \
-H "Authorization: Bearer ${DD_BEARER_TOKEN}"
```
{% /tab %}

{% tab label="Go" %}
```go
// List deployment gate evaluations returns "OK" response

package main

import (
	"context"
	"encoding/json"
	"fmt"
	"os"

	"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
	"github.com/DataDog/datadog-api-client-go/v2/api/datadogV2"
)

func main() {
	ctx := datadog.NewDefaultContext(context.Background())
	ctx = context.WithValue(ctx, datadog.ContextAccessToken, os.Getenv("DD_BEARER_TOKEN"))
	configuration := datadog.NewConfiguration()
	configuration.SetUnstableOperationEnabled("v2.ListDeploymentGateEvaluations", true)
	apiClient := datadog.NewAPIClient(configuration)
	api := datadogV2.NewDeploymentGatesApi(apiClient)
	resp, r, err := api.ListDeploymentGateEvaluations(ctx, *datadogV2.NewListDeploymentGateEvaluationsOptionalParameters())

	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `DeploymentGatesApi.ListDeploymentGateEvaluations`: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}

	responseContent, _ := json.MarshalIndent(resp, "", "  ")
	fmt.Fprintf(os.Stdout, "Response from `DeploymentGatesApi.ListDeploymentGateEvaluations`:\n%s\n", responseContent)
}
```

#### Instructions

First [install the library and its dependencies](https://dnd37xeb23o8n.cloudfront.net/api/latest.md?code-lang=go) and then save the example to `main.go` and run following commands:

```bash
DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" go run "main.go"
```
{% /tab %}

{% tab label="Java" %}
```java
// List deployment gate evaluations returns "OK" response

import com.datadog.api.client.ApiClient;
import com.datadog.api.client.ApiException;
import com.datadog.api.client.v2.api.DeploymentGatesApi;
import com.datadog.api.client.v2.model.DeploymentGateEvaluationsResponse;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = ApiClient.getDefaultApiClient();
    defaultClient.setAccessToken(System.getenv("DD_BEARER_TOKEN"));
    defaultClient.setUnstableOperationEnabled("v2.listDeploymentGateEvaluations", true);
    DeploymentGatesApi apiInstance = new DeploymentGatesApi(defaultClient);

    try {
      DeploymentGateEvaluationsResponse result = apiInstance.listDeploymentGateEvaluations();
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling DeploymentGatesApi#listDeploymentGateEvaluations");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}
```

#### Instructions

First [install the library and its dependencies](https://dnd37xeb23o8n.cloudfront.net/api/latest.md?code-lang=java) and then save the example to `Example.java` and run following commands:

```bash
DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" java "Example.java"
```
{% /tab %}

{% tab label="Python" %}
```python
"""
List deployment gate evaluations returns "OK" response
"""

from os import environ
from datadog_api_client import ApiClient, Configuration
from datadog_api_client.v2.api.deployment_gates_api import DeploymentGatesApi

configuration = Configuration()
configuration.access_token = environ["DD_BEARER_TOKEN"]
configuration.unstable_operations["list_deployment_gate_evaluations"] = True
with ApiClient(configuration) as api_client:
    api_instance = DeploymentGatesApi(api_client)
    response = api_instance.list_deployment_gate_evaluations()

    print(response)
```

#### Instructions

First [install the library and its dependencies](https://dnd37xeb23o8n.cloudfront.net/api/latest.md?code-lang=python) and then save the example to `example.py` and run following commands:

```bash
DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" python3 "example.py"
```
{% /tab %}

{% tab label="Ruby" %}
```ruby
# List deployment gate evaluations returns "OK" response

require "datadog_api_client"
DatadogAPIClient.configure do |config|
  config.access_token = ENV["DD_BEARER_TOKEN"]
  config.unstable_operations["v2.list_deployment_gate_evaluations".to_sym] = true
end
api_instance = DatadogAPIClient::V2::DeploymentGatesAPI.new
p api_instance.list_deployment_gate_evaluations()
```

#### Instructions

First [install the library and its dependencies](https://dnd37xeb23o8n.cloudfront.net/api/latest.md?code-lang=ruby) and then save the example to `example.rb` and run following commands:

```bash
DD_SITE="datadoghq.com" DD_BEARER_TOKEN="<PERSONAL_ACCESS_TOKEN OR SERVICE_ACCESS_TOKEN>" rb "example.rb"
```
{% /tab %}

{% tab label="Rust" %}
```rust
// List deployment gate evaluations returns "OK" response
use datadog_api_client::datadog;
use datadog_api_client::datadogV2::api_deployment_gates::DeploymentGatesAPI;
use datadog_api_client::datadogV2::api_deployment_gates::ListDeploymentGateEvaluationsOptionalParams;

#[tokio::main]
async fn main() {
    let mut configuration = datadog::Configuration::new();
    configuration.set_unstable_operation_enabled("v2.list_deployment_gate_evaluations", true);
    let api = DeploymentGatesAPI::with_config(configuration);
    let resp = api
        .list_deployment_gate_evaluations(ListDeploymentGateEvaluationsOptionalParams::default())
        .await;
    if let Ok(value) = resp {
        println!("{:#?}", value);
    } else {
        println!("{:#?}", resp.unwrap_err());
    }
}
```

#### Instructions

First [install the library and its dependencies](https://dnd37xeb23o8n.cloudfront.net/api/latest.md?code-lang=rust) and then save the example to `src/main.rs` and run following commands:

```bash
DD_SITE="datadoghq.com" DD_API_KEY="<DD_API_KEY>" DD_APP_KEY="<DD_APP_KEY>" cargo run
```
{% /tab %}
{% /tabs %}
