For AI agents: a documentation index is available at /docs/llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.
Get feature flag
/v1/projects/{project_id}/flags/{flag_id}Authorizations
Authorizationstringrequiredhttp
Path parameters
project_idstringrequiredAmplitude project identifier, backed by the canonical app ID.
12345pattern: ^[0-9]+$flag_idstringrequiredFeature flag identifier.
min length: 1Response
application/jsondataobjectrequiredShow child attributes
idstringrequiredproject_idstringrequiredpattern: ^[0-9]+$keystringrequirednamestringrequireddescriptionstringnullabledeploymentsstring[]Deployment IDs associated with this flag. Managed via the create/update deployment fields, not set directly on this field.
enabledbooleanrequiredevaluation_modestringrequiredlocalremotevariantsobject[]requiredkeystringrequiredStable variant key. The value off is reserved.
pattern: ^[A-Za-z0-9_-]+$namestringnullabledescriptionstringnullablepayloadunknownOptional JSON payload returned by evaluation.
bucketing_keystringrequiredBucketing key used for assignment. Never null in responses; defaults to amplitude_id when not explicitly set.
bucketing_saltstringnullablebucketing_unitstringnullablerollout_percentageintegerrequiredmin: 0max: 100rollout_weightsobjectrequiredVariant-keyed rollout weights. Values may be normalized to sum to 100 (percentages) or expressed as unnormalized relative weights (for example { "control": 1, "treatment": 1 } for an even split). Weights are non-negative and may be fractional.
target_segmentsobject[]requirednamestringnullableconditionsobject[]requiredgroup_typestringnullablepropstringrequiredProperty name or cohort identifier being targeted.
min length: 1prop_typestringNamespace of the targeted property, for example user, event, or group. Omitted for conditions that target a cohort rather than a property.
nullableopstringrequiredTargeting operator applied to the property values.
isis notcontainsdoes not containlessless or equalgreatergreater or equalset isset is notset containsset does not containglob matchglob does not matchtypestringrequiredCondition type, for example property or cohort.
valuesstring[]requiredAt least one value to match against. Conditions with no values are rejected.
percentageintegerSegment rollout percentage.
nullablemin: 0max: 100rollout_weightsobjectVariant-keyed rollout weights. Values may be normalized to sum to 100 (percentages) or expressed as unnormalized relative weights (for example { "control": 1, "treatment": 1 } for an even split). Weights are non-negative and may be fractional.
bucketing_keystringnullabletestersobject[]variant_keystringrequiredvaluesstring[]requiredUser IDs, device IDs, or cohort identifiers included in this variant. At most 2000 entries per variant (the limit is 10 when the entries are cohort identifiers).
ownersstring[]tagsstring[]requiredcreated_bystringnullablelast_modified_bystringnullablecreated_atstringformat: date-timenullableupdated_atstringformat: date-timenullableparent_dependenciesobjectoperatorstringrequiredallanyflagsobject[]requiredflag_idstringrequiredallowed_variantsstring[]linksobject[]urlstringrequiredformat: urititlestringrequiredversionintegerrequiredServer-managed config version used for optimistic concurrency.
archivedbooleanrequiredWhether the resource is archived. Set via the archive (DELETE) operation.
urlstringformat: urinullableobjectstringrequiredResource-type discriminator. Always feature_flag.
Was this helpful?