Feature Flags

List environments

Returns a list of environments for the organization. Supports filtering by name and key.

get/api/v2/feature-flags/environments

Request

  • Base URL
    https://api.datadoghq.com
  • URL
    https://api.datadoghq.com/api/v2/feature-flags/environments
  • Auth
    API key in header DD-API-KEY and API key in header DD-APPLICATION-KEY

Query parameters

namestring

Filter environments by name (partial matching).

keystring

Filter environments by key (partial matching).

limitinteger

Maximum number of results to return.

offsetinteger

Number of results to skip.

Response

OK

Example response

{
  "data": [
    {
      "attributes": {
        "created_at": "2023-01-01T00:00:00Z",
        "description": "Test environment XYZ789",
        "key": "env-search-term",
        "name": "env-search-term",
        "queries": [
          "staging",
          "test"
        ],
        "updated_at": "2023-01-01T00:00:00Z"
      },
      "id": "550e8400-e29b-41d4-a716-446655440001",
      "type": "environments"
    }
  ],
  "meta": {
    "page": {
      "total_count": 10,
      "total_filtered_count": 5
    }
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.