---
title: "List every feature flag with its stored overrides (platform admin)"
method: GET
path: "/v1/admin/feature-flags"
tags: ["Internal"]
---

# List every feature flag with its stored overrides (platform admin)

`GET /v1/admin/feature-flags`

The compile-time flag registry (services/store/flags) unioned with the stored FLAGS rows on the config table: each flag's scope, code default, stored default, and per-subject overrides. A stored key with no registry entry is returned with orphaned:true (cleaned up out of band, never toggled here).

## Response `200`

Flags

- FeatureFlagList
  - `items` FeatureFlag[], required
    - `codeDefault` boolean, required — Registry Default: the outage/cold floor. false for an orphaned key (its zero value).
    - `dashboard` boolean, required — Surfaced to the customer dashboard (the /v1/me flags map)
    - `description` string — Operator-facing copy from the registry; empty for an orphaned key
    - `effectiveDefault` boolean, required — storedDefault when set, else codeDefault: what a subject with no override resolves to
    - `key` string, required — Stable flag key (uppercase-with-underscores)
    - `orphaned` boolean, required — Stored rows exist for a key the registry does not know; it resolves to false at runtime and is cleaned up out of band, never toggled here
    - `overrides` FeatureFlagSubjectOverride[], required — Per-subject allow/deny rows (empty for a global-scope flag)
      - `enabled` boolean, required — true = allow this subject, false = deny it (distinct from having no override row)
      - `subjectId` string, required — The org id or node id
      - `subjectType` 'org' | 'node', required — Which subject space the id lives in (maps to the ORG#/NODE# SK prefix)
      - `updatedAt` string
      - `updatedBy` string
    - `scope` 'global' | 'org' | 'node', required — Which override rows the flag may carry: a global flag has only a default, an org/node flag also takes per-subject overrides. For an orphaned key this is inferred from the subject types of its stored rows.
    - `storedDefault` boolean — The stored #DEFAULT row's value, when one exists; omitted when only the code default applies
    - `storedDefaultUpdatedAt` string — When the #DEFAULT row was last written (RFC3339)
    - `storedDefaultUpdatedBy` string — Who last wrote the #DEFAULT row

## Other responses

- `401` — Missing or invalid API key
- `403` — API key lacks the required scope
- `503` — A required integration (e.g. payments) is not configured

## Changes

- **2026-09-04** `4a338e447d39` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/openrelay/apis/openrelay-api/changes/v1/admin/feature-flags/get.md)

---

[API](https://skmtc.dev/openrelay/apis/openrelay-api.md) · [All operations](https://skmtc.dev/openrelay/apis/openrelay-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openrelay/openrelay-api/revisions/4a338e447d39/schema)
