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.
List feature flags
/v1/projects/{project_id}/flagsAuthorizations
Authorizationstringrequiredhttp
Path parameters
project_idstringrequiredAmplitude project identifier, backed by the canonical app ID.
12345pattern: ^[0-9]+$Query parameters
cursorstringOpaque cursor from pagination.next_cursor on the previous response.
Numeric offsets are capped by the underlying search index (10,000 results
per query). Well-formed pagination stops before that window; requests whose
cursor would exceed it return 400 pagination_not_supported.
nullablelimitintegerNumber of items to return. Defaults to 50, max 200.
50min: 1max: 200Response
application/jsondataobject[]requiredShow 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.
paginationobjectrequiredShow child attributes
next_cursorstringrequiredCursor for the next page, or null on the last page. Chart list
responses may stop before all project charts are enumerated because
the search backend caps each query at 10,000 sorted hits.
nullablehas_morebooleanrequiredWas this helpful?