Skip to content
Docs

Feature Flags

Create and update feature flags for your projects to control which behavior your application enables. You can inspect targeting segments and project settings, and manage the SDK keys used to access flags.

Create a flag.

Parameters

ParameterTypeRequiredDescription
projectIdOrNamestringYesThe project id or name
teamIdstringNoTeam ID.
slugstringNoTeam slug.
requestBodyobjectYesRequest body for this tool.

Create an SDK key.

Parameters

ParameterTypeRequiredDescription
projectIdOrNamestringYesThe project id or name
teamIdstringNoTeam ID.
slugstringNoTeam slug.
requestBodyobjectNoRequest body for this tool.

Get a flag.

Parameters

ParameterTypeRequiredDescription
projectIdOrNamestringYesThe project id or name
flagIdOrSlugstringYesThe flag id or name
ifMatchstringNoETag to match, can be used interchangeably with the if-match header
withMetadatabooleanNoWhether to include metadata in the response
teamIdstringNoTeam ID.
slugstringNoTeam slug.

Get a segment.

Parameters

ParameterTypeRequiredDescription
projectIdOrNamestringYesThe project id or name
segmentIdOrSlugstringYesThe segment slug
withMetadatabooleanNoWhether to include metadata Default: false.
teamIdstringNoTeam ID.
slugstringNoTeam slug.

Get project flag settings.

Parameters

ParameterTypeRequiredDescription
projectIdOrNamestringYesThe project id or name
teamIdstringNoTeam ID.
slugstringNoTeam slug.

Get all SDK keys.

Parameters

ParameterTypeRequiredDescription
projectIdOrNamestringYesThe project id or name
teamIdstringNoTeam ID.
slugstringNoTeam slug.

List flags.

Parameters

ParameterTypeRequiredDescription
projectIdOrNamestringYesThe project id or name
statestringNoThe state of the flags to retrieve. Defaults to active. Allowed values: "active", "archived".
withMetadatabooleanNoDeprecated. Whether to include creator metadata in each flag in the response. Resolve creator identity client-side (e.g. via the team members endpoint) instead; this parameter will be removed in a future release. Use GET /v1/projects/:id/feature-flags/flags/:flagIdOrSlug?withMetadata=true for single-flag lookups that need creator metadata.
limitintegerNoMaximum number of flags to return. When not set, all flags are returned.
cursorstringNoPagination cursor to continue from.
searchstringNoSearch flags by their slug or description. Case-insensitive.
tagsArray<string>NoFilter flags by tag. Repeat the parameter for multiple tags (all must match).
teamIdstringNoTeam ID.
slugstringNoTeam slug.

List flags.

Parameters

ParameterTypeRequiredDescription
projectIdOrNamestringYesThe project id or name
statestringNoThe state of the flags to retrieve. Defaults to active. Allowed values: "active", "archived".
limitintegerNoMaximum number of flags to return. Default: 25.
cursorstringNoPagination cursor to continue from.
searchstringNoSearch flags by their slug or description. Case-insensitive.
tagsArray<string>NoFilter flags by tag. Repeat the parameter for multiple tags (all must match).
createdBystringNoFilter flags by the id of the entity that created them (a user or team id).
maintainerIdsArray<string>NoFilter flags by maintainer user id. Repeat the parameter for multiple maintainers (any may match).
includeMarketplaceFlagsbooleanNoWhether to include Marketplace experimentation items in the paginated response. Defaults to false.
teamIdstringNoTeam ID.
slugstringNoTeam slug.

Update a flag.

Parameters

ParameterTypeRequiredDescription
projectIdOrNamestringYesThe project id or name
flagIdOrSlugstringYesThe flag id or name
ifMatchstringNoETag to match, can be used interchangeably with the if-match header
withMetadatabooleanNoWhether to include metadata in the response
teamIdstringNoTeam ID.
slugstringNoTeam slug.
requestBodyobjectNoRequest body for this tool.

Update a segment.

Parameters

ParameterTypeRequiredDescription
projectIdOrNamestringYesThe project id or name
segmentIdOrSlugstringYesThe segment slug
withMetadatabooleanNoWhether to include metadata Default: false.
teamIdstringNoTeam ID.
slugstringNoTeam slug.
requestBodyobjectNoRequest body for this tool.

Update project flag settings.

Parameters

ParameterTypeRequiredDescription
projectIdOrNamestringYesThe project id or name
teamIdstringNoTeam ID.
slugstringNoTeam slug.
requestBodyobjectNoRequest body for this tool.

Was this helpful?

supported.