Returns a list of environments for the organization.
Supports filtering by name and key.
This endpoint requires the feature_flag_environment_config_read permission.
Environment-specific settings for the feature flag.
allocations
object
Allocation metadata for this environment.
default_allocation_key
string
The allocation key used for the default variant.
default_variant_id
string
The ID of the default variant for this environment.
environment_id [required]
uuid
The ID of the environment.
environment_name
string
The name of the environment.
is_production
boolean
Indicates whether the environment is production.
override_allocation_key
string
The allocation key used for the override variant.
override_variant_id
string
The ID of the override variant for this environment.
pending_suggestion_id
string
Pending suggestion identifier, if approval is required.
require_feature_flag_approval
boolean
Indicates whether feature flag changes require approval in this environment.
rollout_percentage
int64
Rollout percentage for this environment.
rules
[object]
Environment targeting rules for this feature flag.
status [required]
enum
The status of a feature flag in an environment.
Allowed enum values: ENABLED,DISABLED
json_schema
string
JSON schema for validation when value_type is JSON.
key [required]
string
The unique key of the feature flag.
last_updated_by
uuid
The ID of the user who last updated the feature flag.
name [required]
string
The name of the feature flag.
require_approval
boolean
Indicates whether this feature flag requires approval for changes.
updated_at
date-time
The timestamp when the feature flag was last updated.
value_type [required]
enum
The type of values for the feature flag variants.
Allowed enum values: BOOLEAN,INTEGER,NUMERIC,STRING,JSON
variants [required]
[object]
The variants of the feature flag.
created_at
date-time
The timestamp when the variant was created.
id [required]
uuid
The unique identifier of the variant.
key [required]
string
The unique key of the variant.
name [required]
string
The name of the variant.
updated_at
date-time
The timestamp when the variant was last updated.
value [required]
string
The value of the variant as a string.
id [required]
uuid
The unique identifier of the feature flag.
type [required]
enum
The resource type.
Allowed enum values: feature-flags
{"data":{"attributes":{"archived_at":"2023-01-01T00:00:00Z","created_at":"2023-01-01T00:00:00Z","created_by":"550e8400-e29b-41d4-a716-446655440010","description":"This is an example feature flag for demonstration","distribution_channel":"ALL","feature_flag_environments":[{"allocations":{},"default_allocation_key":"allocation-default-123abc","default_variant_id":"550e8400-e29b-41d4-a716-446655440002","environment_id":"550e8400-e29b-41d4-a716-446655440001","environment_name":"env-search-term","is_production":false,"override_allocation_key":"allocation-override-123abc","override_variant_id":"550e8400-e29b-41d4-a716-446655440003","pending_suggestion_id":"550e8400-e29b-41d4-a716-446655440099","require_feature_flag_approval":false,"rollout_percentage":0,"rules":[],"status":"ENABLED"}],"json_schema":"{\"type\": \"object\", \"properties\": {\"enabled\": {\"type\": \"boolean\"}}}","key":"feature-flag-abc123","last_updated_by":"550e8400-e29b-41d4-a716-446655440010","name":"Feature Flag ABC123","require_approval":false,"updated_at":"2023-01-01T00:00:00Z","value_type":"BOOLEAN","variants":[{"created_at":"2023-01-01T00:00:00Z","id":"550e8400-e29b-41d4-a716-446655440002","key":"variant-abc123","name":"Variant ABC123","updated_at":"2023-01-01T00:00:00Z","value":"true"}]},"id":"550e8400-e29b-41d4-a716-446655440000","type":"feature-flags"}}
Archives a feature flag. Archived flags are
hidden from the main list but remain accessible and can be unarchived.
This endpoint requires
all
of the following permissions:
Environment-specific settings for the feature flag.
allocations
object
Allocation metadata for this environment.
default_allocation_key
string
The allocation key used for the default variant.
default_variant_id
string
The ID of the default variant for this environment.
environment_id [required]
uuid
The ID of the environment.
environment_name
string
The name of the environment.
is_production
boolean
Indicates whether the environment is production.
override_allocation_key
string
The allocation key used for the override variant.
override_variant_id
string
The ID of the override variant for this environment.
pending_suggestion_id
string
Pending suggestion identifier, if approval is required.
require_feature_flag_approval
boolean
Indicates whether feature flag changes require approval in this environment.
rollout_percentage
int64
Rollout percentage for this environment.
rules
[object]
Environment targeting rules for this feature flag.
status [required]
enum
The status of a feature flag in an environment.
Allowed enum values: ENABLED,DISABLED
json_schema
string
JSON schema for validation when value_type is JSON.
key [required]
string
The unique key of the feature flag.
last_updated_by
uuid
The ID of the user who last updated the feature flag.
name [required]
string
The name of the feature flag.
require_approval
boolean
Indicates whether this feature flag requires approval for changes.
updated_at
date-time
The timestamp when the feature flag was last updated.
value_type [required]
enum
The type of values for the feature flag variants.
Allowed enum values: BOOLEAN,INTEGER,NUMERIC,STRING,JSON
variants [required]
[object]
The variants of the feature flag.
created_at
date-time
The timestamp when the variant was created.
id [required]
uuid
The unique identifier of the variant.
key [required]
string
The unique key of the variant.
name [required]
string
The name of the variant.
updated_at
date-time
The timestamp when the variant was last updated.
value [required]
string
The value of the variant as a string.
id [required]
uuid
The unique identifier of the feature flag.
type [required]
enum
The resource type.
Allowed enum values: feature-flags
{"data":{"attributes":{"archived_at":"2023-01-01T00:00:00Z","created_at":"2023-01-01T00:00:00Z","created_by":"550e8400-e29b-41d4-a716-446655440010","description":"This is an example feature flag for demonstration","distribution_channel":"ALL","feature_flag_environments":[{"allocations":{},"default_allocation_key":"allocation-default-123abc","default_variant_id":"550e8400-e29b-41d4-a716-446655440002","environment_id":"550e8400-e29b-41d4-a716-446655440001","environment_name":"env-search-term","is_production":false,"override_allocation_key":"allocation-override-123abc","override_variant_id":"550e8400-e29b-41d4-a716-446655440003","pending_suggestion_id":"550e8400-e29b-41d4-a716-446655440099","require_feature_flag_approval":false,"rollout_percentage":0,"rules":[],"status":"ENABLED"}],"json_schema":"{\"type\": \"object\", \"properties\": {\"enabled\": {\"type\": \"boolean\"}}}","key":"feature-flag-abc123","last_updated_by":"550e8400-e29b-41d4-a716-446655440010","name":"Feature Flag ABC123","require_approval":false,"updated_at":"2023-01-01T00:00:00Z","value_type":"BOOLEAN","variants":[{"created_at":"2023-01-01T00:00:00Z","id":"550e8400-e29b-41d4-a716-446655440002","key":"variant-abc123","name":"Variant ABC123","updated_at":"2023-01-01T00:00:00Z","value":"true"}]},"id":"550e8400-e29b-41d4-a716-446655440000","type":"feature-flags"}}
Updates an existing feature flag’s metadata such as
name and description. Does not modify targeting rules or allocations.
This endpoint requires
all
of the following permissions:
JSON schema for validation when value_type is JSON.
name
string
The name of the feature flag.
type [required]
enum
The resource type.
Allowed enum values: feature-flags
{"data":{"type":"feature-flags","attributes":{"description":"Updated description for the feature flag","name":"Updated Test Feature Flag Example-Feature-Flag"}}}
Environment-specific settings for the feature flag.
allocations
object
Allocation metadata for this environment.
default_allocation_key
string
The allocation key used for the default variant.
default_variant_id
string
The ID of the default variant for this environment.
environment_id [required]
uuid
The ID of the environment.
environment_name
string
The name of the environment.
is_production
boolean
Indicates whether the environment is production.
override_allocation_key
string
The allocation key used for the override variant.
override_variant_id
string
The ID of the override variant for this environment.
pending_suggestion_id
string
Pending suggestion identifier, if approval is required.
require_feature_flag_approval
boolean
Indicates whether feature flag changes require approval in this environment.
rollout_percentage
int64
Rollout percentage for this environment.
rules
[object]
Environment targeting rules for this feature flag.
status [required]
enum
The status of a feature flag in an environment.
Allowed enum values: ENABLED,DISABLED
json_schema
string
JSON schema for validation when value_type is JSON.
key [required]
string
The unique key of the feature flag.
last_updated_by
uuid
The ID of the user who last updated the feature flag.
name [required]
string
The name of the feature flag.
require_approval
boolean
Indicates whether this feature flag requires approval for changes.
updated_at
date-time
The timestamp when the feature flag was last updated.
value_type [required]
enum
The type of values for the feature flag variants.
Allowed enum values: BOOLEAN,INTEGER,NUMERIC,STRING,JSON
variants [required]
[object]
The variants of the feature flag.
created_at
date-time
The timestamp when the variant was created.
id [required]
uuid
The unique identifier of the variant.
key [required]
string
The unique key of the variant.
name [required]
string
The name of the variant.
updated_at
date-time
The timestamp when the variant was last updated.
value [required]
string
The value of the variant as a string.
id [required]
uuid
The unique identifier of the feature flag.
type [required]
enum
The resource type.
Allowed enum values: feature-flags
{"data":{"attributes":{"archived_at":"2023-01-01T00:00:00Z","created_at":"2023-01-01T00:00:00Z","created_by":"550e8400-e29b-41d4-a716-446655440010","description":"This is an example feature flag for demonstration","distribution_channel":"ALL","feature_flag_environments":[{"allocations":{},"default_allocation_key":"allocation-default-123abc","default_variant_id":"550e8400-e29b-41d4-a716-446655440002","environment_id":"550e8400-e29b-41d4-a716-446655440001","environment_name":"env-search-term","is_production":false,"override_allocation_key":"allocation-override-123abc","override_variant_id":"550e8400-e29b-41d4-a716-446655440003","pending_suggestion_id":"550e8400-e29b-41d4-a716-446655440099","require_feature_flag_approval":false,"rollout_percentage":0,"rules":[],"status":"ENABLED"}],"json_schema":"{\"type\": \"object\", \"properties\": {\"enabled\": {\"type\": \"boolean\"}}}","key":"feature-flag-abc123","last_updated_by":"550e8400-e29b-41d4-a716-446655440010","name":"Feature Flag ABC123","require_approval":false,"updated_at":"2023-01-01T00:00:00Z","value_type":"BOOLEAN","variants":[{"created_at":"2023-01-01T00:00:00Z","id":"550e8400-e29b-41d4-a716-446655440002","key":"variant-abc123","name":"Variant ABC123","updated_at":"2023-01-01T00:00:00Z","value":"true"}]},"id":"550e8400-e29b-41d4-a716-446655440000","type":"feature-flags"}}
Environment-specific settings for the feature flag.
allocations
object
Allocation metadata for this environment.
default_allocation_key
string
The allocation key used for the default variant.
default_variant_id
string
The ID of the default variant for this environment.
environment_id [required]
uuid
The ID of the environment.
environment_name
string
The name of the environment.
is_production
boolean
Indicates whether the environment is production.
override_allocation_key
string
The allocation key used for the override variant.
override_variant_id
string
The ID of the override variant for this environment.
pending_suggestion_id
string
Pending suggestion identifier, if approval is required.
require_feature_flag_approval
boolean
Indicates whether feature flag changes require approval in this environment.
rollout_percentage
int64
Rollout percentage for this environment.
rules
[object]
Environment targeting rules for this feature flag.
status [required]
enum
The status of a feature flag in an environment.
Allowed enum values: ENABLED,DISABLED
json_schema
string
JSON schema for validation when value_type is JSON.
key [required]
string
The unique key of the feature flag.
last_updated_by
uuid
The ID of the user who last updated the feature flag.
name [required]
string
The name of the feature flag.
require_approval
boolean
Indicates whether this feature flag requires approval for changes.
updated_at
date-time
The timestamp when the feature flag was last updated.
value_type [required]
enum
The type of values for the feature flag variants.
Allowed enum values: BOOLEAN,INTEGER,NUMERIC,STRING,JSON
variants [required]
[object]
The variants of the feature flag.
created_at
date-time
The timestamp when the variant was created.
id [required]
uuid
The unique identifier of the variant.
key [required]
string
The unique key of the variant.
name [required]
string
The name of the variant.
updated_at
date-time
The timestamp when the variant was last updated.
value [required]
string
The value of the variant as a string.
id [required]
uuid
The unique identifier of the feature flag.
type [required]
enum
The resource type.
Allowed enum values: feature-flags
{"data":{"attributes":{"archived_at":"2023-01-01T00:00:00Z","created_at":"2023-01-01T00:00:00Z","created_by":"550e8400-e29b-41d4-a716-446655440010","description":"This is an example feature flag for demonstration","distribution_channel":"ALL","feature_flag_environments":[{"allocations":{},"default_allocation_key":"allocation-default-123abc","default_variant_id":"550e8400-e29b-41d4-a716-446655440002","environment_id":"550e8400-e29b-41d4-a716-446655440001","environment_name":"env-search-term","is_production":false,"override_allocation_key":"allocation-override-123abc","override_variant_id":"550e8400-e29b-41d4-a716-446655440003","pending_suggestion_id":"550e8400-e29b-41d4-a716-446655440099","require_feature_flag_approval":false,"rollout_percentage":0,"rules":[],"status":"ENABLED"}],"json_schema":"{\"type\": \"object\", \"properties\": {\"enabled\": {\"type\": \"boolean\"}}}","key":"feature-flag-abc123","last_updated_by":"550e8400-e29b-41d4-a716-446655440010","name":"Feature Flag ABC123","require_approval":false,"updated_at":"2023-01-01T00:00:00Z","value_type":"BOOLEAN","variants":[{"created_at":"2023-01-01T00:00:00Z","id":"550e8400-e29b-41d4-a716-446655440002","key":"variant-abc123","name":"Variant ABC123","updated_at":"2023-01-01T00:00:00Z","value":"true"}]},"id":"550e8400-e29b-41d4-a716-446655440000","type":"feature-flags"}}
JSON schema for validation when value_type is JSON.
key [required]
string
The unique key of the feature flag.
name [required]
string
The name of the feature flag.
value_type [required]
enum
The type of values for the feature flag variants.
Allowed enum values: BOOLEAN,INTEGER,NUMERIC,STRING,JSON
variants [required]
[object]
The variants of the feature flag.
key [required]
string
The unique key of the variant.
name [required]
string
The name of the variant.
value [required]
string
The value of the variant as a string.
type [required]
enum
The resource type.
Allowed enum values: feature-flags
{"data":{"type":"feature-flags","attributes":{"default_variant_key":"variant-Example-Feature-Flag-1","description":"Test feature flag for BDD scenarios","key":"test-feature-flag-Example-Feature-Flag","name":"Test Feature Flag Example-Feature-Flag","value_type":"BOOLEAN","variants":[{"key":"variant-Example-Feature-Flag-1","name":"Variant Example-Feature-Flag A","value":"true"},{"key":"variant-Example-Feature-Flag-2","name":"Variant Example-Feature-Flag B","value":"false"}]}}}
Environment-specific settings for the feature flag.
allocations
object
Allocation metadata for this environment.
default_allocation_key
string
The allocation key used for the default variant.
default_variant_id
string
The ID of the default variant for this environment.
environment_id [required]
uuid
The ID of the environment.
environment_name
string
The name of the environment.
is_production
boolean
Indicates whether the environment is production.
override_allocation_key
string
The allocation key used for the override variant.
override_variant_id
string
The ID of the override variant for this environment.
pending_suggestion_id
string
Pending suggestion identifier, if approval is required.
require_feature_flag_approval
boolean
Indicates whether feature flag changes require approval in this environment.
rollout_percentage
int64
Rollout percentage for this environment.
rules
[object]
Environment targeting rules for this feature flag.
status [required]
enum
The status of a feature flag in an environment.
Allowed enum values: ENABLED,DISABLED
json_schema
string
JSON schema for validation when value_type is JSON.
key [required]
string
The unique key of the feature flag.
last_updated_by
uuid
The ID of the user who last updated the feature flag.
name [required]
string
The name of the feature flag.
require_approval
boolean
Indicates whether this feature flag requires approval for changes.
updated_at
date-time
The timestamp when the feature flag was last updated.
value_type [required]
enum
The type of values for the feature flag variants.
Allowed enum values: BOOLEAN,INTEGER,NUMERIC,STRING,JSON
variants [required]
[object]
The variants of the feature flag.
created_at
date-time
The timestamp when the variant was created.
id [required]
uuid
The unique identifier of the variant.
key [required]
string
The unique key of the variant.
name [required]
string
The name of the variant.
updated_at
date-time
The timestamp when the variant was last updated.
value [required]
string
The value of the variant as a string.
id [required]
uuid
The unique identifier of the feature flag.
type [required]
enum
The resource type.
Allowed enum values: feature-flags
{"data":{"attributes":{"archived_at":"2023-01-01T00:00:00Z","created_at":"2023-01-01T00:00:00Z","created_by":"550e8400-e29b-41d4-a716-446655440010","description":"This is an example feature flag for demonstration","distribution_channel":"ALL","feature_flag_environments":[{"allocations":{},"default_allocation_key":"allocation-default-123abc","default_variant_id":"550e8400-e29b-41d4-a716-446655440002","environment_id":"550e8400-e29b-41d4-a716-446655440001","environment_name":"env-search-term","is_production":false,"override_allocation_key":"allocation-override-123abc","override_variant_id":"550e8400-e29b-41d4-a716-446655440003","pending_suggestion_id":"550e8400-e29b-41d4-a716-446655440099","require_feature_flag_approval":false,"rollout_percentage":0,"rules":[],"status":"ENABLED"}],"json_schema":"{\"type\": \"object\", \"properties\": {\"enabled\": {\"type\": \"boolean\"}}}","key":"feature-flag-abc123","last_updated_by":"550e8400-e29b-41d4-a716-446655440010","name":"Feature Flag ABC123","require_approval":false,"updated_at":"2023-01-01T00:00:00Z","value_type":"BOOLEAN","variants":[{"created_at":"2023-01-01T00:00:00Z","id":"550e8400-e29b-41d4-a716-446655440002","key":"variant-abc123","name":"Variant ABC123","updated_at":"2023-01-01T00:00:00Z","value":"true"}]},"id":"550e8400-e29b-41d4-a716-446655440000","type":"feature-flags"}}
Returns a list of feature flags for the organization.
Supports filtering by key and archived status.
This endpoint requires
all
of the following permissions:
Environment-specific settings for the feature flag.
allocations
object
Allocation metadata for this environment.
default_allocation_key
string
The allocation key used for the default variant.
default_variant_id
string
The ID of the default variant for this environment.
environment_id [required]
uuid
The ID of the environment.
environment_name
string
The name of the environment.
is_production
boolean
Indicates whether the environment is production.
override_allocation_key
string
The allocation key used for the override variant.
override_variant_id
string
The ID of the override variant for this environment.
pending_suggestion_id
string
Pending suggestion identifier, if approval is required.
require_feature_flag_approval
boolean
Indicates whether feature flag changes require approval in this environment.
rollout_percentage
int64
Rollout percentage for this environment.
rules
[object]
Environment targeting rules for this feature flag.
status [required]
enum
The status of a feature flag in an environment.
Allowed enum values: ENABLED,DISABLED
json_schema
string
JSON schema for validation when value_type is JSON.
key [required]
string
The unique key of the feature flag.
last_updated_by
uuid
The ID of the user who last updated the feature flag.
name [required]
string
The name of the feature flag.
require_approval
boolean
Indicates whether this feature flag requires approval for changes.
updated_at
date-time
The timestamp when the feature flag was last updated.
value_type [required]
enum
The type of values for the feature flag variants.
Allowed enum values: BOOLEAN,INTEGER,NUMERIC,STRING,JSON
variants [required]
[object]
The variants of the feature flag.
created_at
date-time
The timestamp when the variant was created.
id [required]
uuid
The unique identifier of the variant.
key [required]
string
The unique key of the variant.
name [required]
string
The name of the variant.
updated_at
date-time
The timestamp when the variant was last updated.
value [required]
string
The value of the variant as a string.
id [required]
uuid
The unique identifier of the feature flag.
type [required]
enum
The resource type.
Allowed enum values: feature-flags
meta
object
Pagination metadata for feature flags.
page
object
total_count
int64
Total number of items.
total_filtered_count
int64
Total number of items matching the filter.
{"data":[{"attributes":{"archived_at":"2023-01-01T00:00:00Z","created_at":"2023-01-01T00:00:00Z","created_by":"550e8400-e29b-41d4-a716-446655440010","description":"This is an example feature flag for demonstration","distribution_channel":"ALL","feature_flag_environments":[{"allocations":{},"default_allocation_key":"allocation-default-123abc","default_variant_id":"550e8400-e29b-41d4-a716-446655440002","environment_id":"550e8400-e29b-41d4-a716-446655440001","environment_name":"env-search-term","is_production":false,"override_allocation_key":"allocation-override-123abc","override_variant_id":"550e8400-e29b-41d4-a716-446655440003","pending_suggestion_id":"550e8400-e29b-41d4-a716-446655440099","require_feature_flag_approval":false,"rollout_percentage":0,"rules":[],"status":"ENABLED"}],"json_schema":"{\"type\": \"object\", \"properties\": {\"enabled\": {\"type\": \"boolean\"}}}","key":"feature-flag-abc123","last_updated_by":"550e8400-e29b-41d4-a716-446655440010","name":"Feature Flag ABC123","require_approval":false,"updated_at":"2023-01-01T00:00:00Z","value_type":"BOOLEAN","variants":[{"created_at":"2023-01-01T00:00:00Z","id":"550e8400-e29b-41d4-a716-446655440002","key":"variant-abc123","name":"Variant ABC123","updated_at":"2023-01-01T00:00:00Z","value":"true"}]},"id":"550e8400-e29b-41d4-a716-446655440000","type":"feature-flags"}],"meta":{"page":{"total_count":100,"total_filtered_count":25}}}