---
title: "Get flags for a user"
method: GET
path: "/apps/{appId}/envs/{envId}/users/{userId}/flags"
---

# Get flags for a user

`GET /apps/{appId}/envs/{envId}/users/{userId}/flags`

Retrieve all flags with their targeting status for a specific user

## Path parameters

- `appId` string, required — App identifier
- `envId` string, required — Environment identifier
- `userId` string, required — User ID within your application

## Response `200`

Requested resource retrieved successfully

- EntityFlagsResponse — Response containing flags for an entity
  - `data` EntityFlag[], required — List of flags with their enabled status
    - `id` string, required — Flag ID
    - `key` string, required — Unique flag key
    - `name` string, required — Flag name
    - `createdAt` string, required — Timestamp when the flag was created
    - `value` boolean, required — Whether the flag is enabled for this entity
    - `specificTargetValue` boolean, nullable, required — Value if directly added via specific targets, null if not specifically targeted
    - `firstExposureAt` string, nullable, required — First time the entity was exposed to this flag
    - `lastExposureAt` string, nullable, required — Last time the entity was exposed to this flag
    - `lastCheckAt` string, nullable, required — Last time the flag was checked for this entity
    - `exposureCount` integer, required — Number of times the entity was exposed to this flag
    - `firstTrackAt` string, nullable, required — First time a track event was recorded for this flag
    - `lastTrackAt` string, nullable, required — Last time a track event was recorded for this flag
    - `trackCount` integer, required — Number of track events for this flag
  - `totalCount` integer, required — Total number of flags
  - `pageSize` integer, required — Page size
  - `pageIndex` integer, required — Page index

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Requested resource, or its parent, not found

---

[API](https://skmtc.net/reflag/apis/reflag-management-api.md) · [All operations](https://skmtc.net/reflag/apis/reflag-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/reflag/reflag-management-api/versions/9063276689b5/schema)
