Skip to content

Feature flags

Feature flags: 11 operations, tagged feature-flags in the OpenAPI document.

Method Path Summary
GET /api/applications/{appCode}/flags List feature flags for one application
GET /api/applications/{appCode}/flags/snapshot Fetch the compact revisioned feature-flag snapshot for an application
POST /api/applications/{appCode}/flags/sync Sync code-declared feature flags for an application
GET /api/applications/{appCode}/flags/watch Stream feature-flag revision change notifications (SSE)
GET /api/applications/{appCode}/flags/{key} Get full details and client overrides for one feature flag
PATCH /api/applications/{appCode}/flags/{key} Update operator-controlled runtime state of a feature flag
DELETE /api/applications/{appCode}/flags/{key} Delete an orphaned feature flag that is no longer declared in code
PUT /api/applications/{appCode}/flags/{key}/clients/{clientId} Set or update a client’s override on a feature flag
DELETE /api/applications/{appCode}/flags/{key}/clients/{clientId} Delete a client’s override on a feature flag
GET /api/clients/{clientId}/flags List feature flags and overrides for one client across enabled applications
GET /api/feature-flags List feature flags across all applications

List feature flags for one application

Operation ID: listApplicationFeatureFlags

Parameters

Name In Type Required Description
appCode path string yes Application code

Responses

Status Description Body
200 OK application/json ApplicationFlagListResponse
default Error application/json ErrorModel

GET /api/applications/{appCode}/flags/snapshot

Section titled “GET /api/applications/{appCode}/flags/snapshot”

Fetch the compact revisioned feature-flag snapshot for an application

Supports conditional GET with If-None-Match returning 304 Not Modified when the revision is unchanged.

Operation ID: getFeatureFlagSnapshot

Parameters

Name In Type Required Description
appCode path string yes Application code
If-None-Match header string no ETag from a previous snapshot response; returns 304 when unchanged

Responses

Status Description Body
200 Current revisioned feature-flag snapshot application/json Snapshot
304 Not modified (If-None-Match matched current revision) none

POST /api/applications/{appCode}/flags/sync

Section titled “POST /api/applications/{appCode}/flags/sync”

Sync code-declared feature flags for an application

Operation ID: syncFeatureFlags

Parameters

Name In Type Required Description
appCode path string yes Application code

Request body (required)

Content type Schema
application/json SyncFlagsRequest

Responses

Status Description Body
200 OK application/json SyncFlagsResponse
default Error application/json ErrorModel

GET /api/applications/{appCode}/flags/watch

Section titled “GET /api/applications/{appCode}/flags/watch”

Stream feature-flag revision change notifications (SSE)

Server-Sent Events stream emitting event: rev frames (data: {"revision":"..."}) on connect and whenever the application’s revision advances.

Operation ID: watchFeatureFlags

Parameters

Name In Type Required Description
appCode path string yes Application code

Responses

Status Description Body
200 SSE stream of revision notifications text/event-stream any
default Error application/json ErrorModel

GET /api/applications/{appCode}/flags/{key}

Section titled “GET /api/applications/{appCode}/flags/{key}”

Get full details and client overrides for one feature flag

Operation ID: getFeatureFlag

Parameters

Name In Type Required Description
appCode path string yes Application code
key path string yes Feature flag key

Responses

Status Description Body
200 OK application/json FlagDetailResponse
default Error application/json ErrorModel

PATCH /api/applications/{appCode}/flags/{key}

Section titled “PATCH /api/applications/{appCode}/flags/{key}”

Update operator-controlled runtime state of a feature flag

Operation ID: updateFeatureFlag

Parameters

Name In Type Required Description
appCode path string yes Application code
key path string yes Feature flag key

Request body (required)

Content type Schema
application/json UpdateFlagRequest

Responses

Status Description Body
200 OK application/json FlagDetailResponse
default Error application/json ErrorModel

DELETE /api/applications/{appCode}/flags/{key}

Section titled “DELETE /api/applications/{appCode}/flags/{key}”

Delete an orphaned feature flag that is no longer declared in code

Operation ID: deleteOrphanFeatureFlag

Parameters

Name In Type Required Description
appCode path string yes Application code
key path string yes Feature flag key

Responses

Status Description Body
204 No Content none
default Error application/json ErrorModel

PUT /api/applications/{appCode}/flags/{key}/clients/{clientId}

Section titled “PUT /api/applications/{appCode}/flags/{key}/clients/{clientId}”

Set or update a client’s override on a feature flag

Operation ID: setFeatureFlagClientOverride

Parameters

Name In Type Required Description
appCode path string yes Application code
key path string yes Feature flag key
clientId path string yes Client ID (clt_…) or client identifier slug
X-On-Behalf-Of header string no Person the calling service account acts for, recorded in audit logs and domain events. Honoured only from service accounts.

Request body (required)

Content type Schema
application/json SetClientOverrideRequest

Responses

Status Description Body
200 OK application/json ClientOverrideResponse
default Error application/json ErrorModel

DELETE /api/applications/{appCode}/flags/{key}/clients/{clientId}

Section titled “DELETE /api/applications/{appCode}/flags/{key}/clients/{clientId}”

Delete a client’s override on a feature flag

Operation ID: deleteFeatureFlagClientOverride

Parameters

Name In Type Required Description
appCode path string yes Application code
key path string yes Feature flag key
clientId path string yes Client ID (clt_…) or client identifier slug
X-On-Behalf-Of header string no Person the calling service account acts for, recorded in audit logs and domain events. Honoured only from service accounts.

Responses

Status Description Body
204 No Content none
default Error application/json ErrorModel

List feature flags and overrides for one client across enabled applications

Operation ID: listClientFeatureFlags

Parameters

Name In Type Required Description
clientId path string yes Client ID (clt_…) or client identifier slug

Responses

Status Description Body
200 OK application/json ClientFlagListResponse
default Error application/json ErrorModel

List feature flags across all applications

Operation ID: listFeatureFlags

Parameters

Name In Type Required Description
applicationCode query string no Filter by application code
lifecycle query string no Filter by lifecycle (RELEASE, EXPERIMENT, KILL_SWITCH, PERMANENT)
inCode query string no Filter by in-code status (true or false)
pastReview query boolean no When true, return only flags past their reviewAfter date
killed query string no Filter by kill switch state (true or false)

Responses

Status Description Body
200 OK application/json FlagListResponse
default Error application/json ErrorModel
Field Type Required Description
applicationCode string yes
items FlagSummaryResponse[] yes
revision string yes
Field Type Required Description
attribute string yes
op string yes
values string[] yes
Field Type Required Description
attribute string yes
op string yes
values string[] yes
Field Type Required Description
allowedValues string[] yes
applicationCode string yes
applicationId string yes
codeDefault any yes
defaultOverride any yes
description string yes
effectiveReason string yes
effectiveValue any yes
governance string yes
inCode boolean yes
key string yes
killed boolean yes
lifecycle string yes
override ClientOverrideResponse no
valueType string yes
Field Type Required Description
clientId string yes
clientIdentifier string yes
items ClientFlagItemResponse[] yes
Field Type Required Description
clientId string yes
clientIdentifier string no
clientName string no
createdAt string (date-time) yes
flagId string yes
id string yes
locked boolean yes
subRules RuleDTO[] yes
updatedAt string (date-time) yes
value any yes
version integer (int64) yes
Field Type Required Description
allowedValues string[] yes
applicationCode string yes
applicationId string yes
clientOverrides ClientOverrideResponse[] yes
codeDefault any yes
createdAt string (date-time) yes
defaultOverride any yes
description string yes
exposeToClient boolean yes
governance string yes
id string yes
inCode boolean yes
key string yes
killed boolean yes
lifecycle string yes
pastReview boolean yes
reviewAfter string no
rules RuleDTO[] yes
salt string yes
updatedAt string (date-time) yes
valueType string yes
version integer (int64) yes
Field Type Required Description
items FlagSummaryResponse[] yes
Field Type Required Description
allowedValues string[] yes
applicationCode string yes
applicationId string yes
codeDefault any yes
createdAt string (date-time) yes
defaultOverride any yes
description string yes
exposeToClient boolean yes
governance string yes
id string yes
inCode boolean yes
key string yes
killed boolean yes
lifecycle string yes
overrideCount integer (int64) yes
pastReview boolean yes
reviewAfter string no
ruleCount integer (int64) yes
updatedAt string (date-time) yes
valueType string yes
version integer (int64) yes
Field Type Required Description
bucketBy string no
percent integer (int64) yes
Field Type Required Description
bucketBy string no
percent integer (int64) yes
Field Type Required Description
clauses Clause[] yes
id string yes
rollout Rollout no
value any yes
Field Type Required Description
clauses ClauseDTO[] yes
id string yes
rollout RolloutDTO no
value any yes
Field Type Required Description
clearValue boolean no
locked boolean no
subRules RuleDTO[] no
value any no
Field Type Required Description
application string no
flags SnapshotFlagState[] yes
revision string yes
Field Type Required Description
clientIdentifier string no
locked boolean no
subRules Rule[] no
value any yes
Field Type Required Description
clientOverrides map<string, SnapshotClientOverride> no
defaultValue any yes
key string yes
killed boolean yes
rules Rule[] no
salt string no
valueType string yes
Field Type Required Description
allowedValues string[] no
defaultValue any yes
description string no
exposeToClient boolean no
governance string no
key string yes
lifecycle string no
reviewAfter string no
valueType string yes
Field Type Required Description
flags SyncFlagRequestItem[] yes
Field Type Required Description
applicationCode string yes
created integer (int32) yes Minimum 0.
orphaned integer (int32) yes Minimum 0.
revision string yes
syncedKeys string[] yes
updated integer (int32) yes Minimum 0.
Field Type Required Description
clearDefaultOverride boolean no
defaultOverride any no
killed boolean no
rotateSalt boolean no
rules RuleDTO[] no