Skip to main content

Get all features in a project

GET 

<your-unleash-url>/api/admin/projects/:projectId/features

A list of all features for the specified project.

Request

Path Parameters

    projectId stringrequired

Responses

projectFeaturesSchema

Schema
    versionintegerrequired

    The version of the feature's schema

    features object[]required

    A list of features

  • Array [
  • namestringrequired

    Unique feature name

    Example: disable-comments
    typestringrequired

    Type of the flag e.g. experiment, kill-switch, release, operational, permission

    Example: kill-switch
    descriptionstringnullablerequired

    Detailed description of the feature

    Example: Controls disabling of the comments section in case of an incident
    stalebooleanrequired

    true if the feature is stale based on the age and feature type, otherwise false.

    Example: false
    favoritebooleanrequired

    true if the feature was favorited, otherwise false.

    Example: true
    impressionDatabooleanrequired

    true if the impression data collection is enabled for the feature, otherwise false.

    Example: false
    createdAtdate-timerequired

    The date the feature was created

    Example: 2023-01-28T15:21:39.975Z
    lastSeenAtdate-timenullablerequireddeprecated

    The date and time when metrics where last collected for this flag in any environment. This field was deprecated in v5. You should instead use the lastSeenAt property on the individual environments listed under the environments property.

    Example: 2023-01-28T16:21:39.975Z
    environments object[]required

    The list of environments where the feature can be used

  • Array [
  • namestringrequired

    The name of the environment

    Example: my-dev-env
    typestringrequired

    The type of the environment

    Example: development
    enabledbooleanrequired

    true if the feature is enabled for the environment, otherwise false.

    Example: true
    sortOrdernumberrequired

    The sort order of the feature environment in the feature environments list

    Example: 3
    variantCountnumberrequired

    The number of defined variants

    lastSeenAtdate-timenullablerequired

    The date when metrics where last collected for the feature environment

    Example: 2023-01-28T16:21:39.975Z
    hasStrategiesboolean

    Whether the feature has any strategies defined.

    hasEnabledStrategiesboolean

    Whether the feature has any enabled strategies defined.

  • ]
  • tags object[]nullable

    The list of feature tags

  • Array [
  • valuestringrequired

    The value of the tag.

    Possible values: >= 2 characters and <= 50 characters

    Example: a-tag-value
    typestringrequired

    The type of the tag

    Possible values: >= 2 characters and <= 50 characters

    Example: simple
  • ]
  • ]

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L '<your-unleash-url>/api/admin/projects/:projectId/features' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Parameters
— pathrequired
ResponseClear

Click the Send API Request button above and see the response here!