---
title: "Changes to Get flag targeting for an environment"
method: GET
path: "/apps/{appId}/flags/{flagKey}/targeting/{envId}"
---

# Changes to Get flag targeting for an environment

`GET /apps/{appId}/flags/{flagKey}/targeting/{envId}`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 2 of 4 revisions.

- **2026-11-06** `280aaed4e96e`: 1 info
- **2026-10-21** `8f378297a650`: 2 info

## Changes

- **2026-11-06** `280aaed4e96e`: 1 info
  - the `updatedAt` response's property pattern was changed from `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$` to `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$` for the status `200`
- **2026-10-21** `8f378297a650`: 2 info
  - added the required property `effectiveRules` to the response with the `200` status
  - added the required property `targetingMode` to the response with the `200` status

---

[Operation](https://skmtc.dev/reflag/apis/reflag-management-api/docs/apps/:appId/flags/:flagKey/targeting/:envId/get.md) - [API](https://skmtc.dev/reflag/apis/reflag-management-api.md) - [Page](https://skmtc.dev/reflag/apis/reflag-management-api/changes/apps/:appId/flags/:flagKey/targeting/:envId/get)
