Search features

Search and filter by selected fields.

Authentication

Authorizationstring
API key needed to access this API
OR
AuthorizationBearer
API key needed to access this API, in Bearer token format

Query parameters

querystringOptional
The search query for the feature name or tag
projectstringOptionalformat: "^(IS|IS_NOT|IS_ANY_OF|IS_NONE_OF):(.*?)(,([a-zA-Z0-9_]+))*$"

Id of the project where search and filter is performed. The project id can be specified with an operator. The supported operators are IS, IS_NOT, IS_ANY_OF, IS_NONE_OF.

statestringOptionalformat: "^(IS|IS_NOT|IS_ANY_OF|IS_NONE_OF):(.*?)(,([a-zA-Z0-9_]+))*$"

The state of the feature active/stale. The state can be specified with an operator. The supported operators are IS, IS_NOT, IS_ANY_OF, IS_NONE_OF.

lifecyclestringOptionalformat: "^(IS|IS_NOT|IS_ANY_OF|IS_NONE_OF):(.*?)(,([a-zA-Z0-9_]+))*$"

The lifecycle stage of the feature. The stagee can be specified with an operator. The supported operators are IS, IS_NOT, IS_ANY_OF, IS_NONE_OF.

typestringOptionalformat: "^(IS|IS_NOT|IS_ANY_OF|IS_NONE_OF):(.*?)(,([a-zA-Z0-9_]+))*$"

The feature flag type to filter by. The type can be specified with an operator. The supported operators are IS, IS_NOT, IS_ANY_OF, IS_NONE_OF.

createdBystringOptionalformat: "^(IS|IS_NOT|IS_ANY_OF|IS_NONE_OF):(.*?)(,([a-zA-Z0-9_]+))*$"

The feature flag creator to filter by. The creators can be specified with an operator. The supported operators are IS, IS_NOT, IS_ANY_OF, IS_NONE_OF.

tagstringOptionalformat: "^(INCLUDE|DO_NOT_INCLUDE|INCLUDE_ALL_OF|INCLUDE_ANY_OF|EXCLUDE_IF_ANY_OF|EXCLUDE_ALL):([^:,]+:.+?)(,\s*[^:,]+:.+?)*$"
The list of feature tags to filter by. Feature tag has to specify a type and a value joined with a colon.
segmentstringOptionalformat: "^(INCLUDE|DO_NOT_INCLUDE|INCLUDE_ALL_OF|INCLUDE_ANY_OF|EXCLUDE_IF_ANY_OF|EXCLUDE_ALL):(.*?)(,([a-zA-Z0-9_]+))*$"

The list of segments with operators to filter by. The segment valid operators are INCLUDE, DO_NOT_INCLUDE, INCLUDE_ALL_OF, INCLUDE_ANY_OF, EXCLUDE_IF_ANY_OF, EXCLUDE_ALL.

statuslist of stringsOptional
The list of feature environment status to filter by. Feature environment has to specify a name and a status joined with a colon.
offsetstringOptional
The number of features to skip when returning a page. By default it is set to 0.
limitstringOptional
The number of feature environments to return in a page. By default it is set to 50.
sortBystringOptional
The field to sort the results by. By default it is set to "createdAt".
sortOrderenumOptional
The sort order for the sortBy. By default it is det to "asc".
Allowed values:
favoritesFirststringOptional
The flag to indicate if the favorite features should be returned first. By default it is set to false.
archivedstringOptionalformat: "^IS:(true|false)$"

Whether to get results for archived feature flags or active feature flags. If IS:true, Unleash will return only archived flags. If IS:false, it will return only active flags.

createdAtstringOptionalformat: "^(IS_BEFORE|IS_ON_OR_AFTER):\d{4}-\d{2}-\d{2}$"

The date the feature was created. The date can be specified with an operator. The supported operators are IS_BEFORE, IS_ON_OR_AFTER.

lastSeenAtstringOptionalformat: "^(IS_BEFORE|IS_ON_OR_AFTER):\d{4}-\d{2}-\d{2}$"

The date the feature was last seen from metrics. The date can be specified with an operator. The supported operators are IS_BEFORE, IS_ON_OR_AFTER.

Response

searchFeaturesSchema
featureslist of objects
The full list of features in this project matching search and filter criteria.
totaldouble or null
Total count of the features matching search and filter criteria

Errors