Skip to main content

Get all feature types

GET <your-unleash-url>/api/admin/feature-types

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

Retrieves all feature types that exist in this Unleash instance, along with their descriptions and lifetimes.

Request

Responses

featureTypesSchema

Schema
  • version integer required

    Possible values: [1]

    The schema version used to describe the feature toggle types listed in the types property.

  • types object[]required

    The list of feature toggle types.

  • Array [
  • id string required

    The identifier of this feature toggle type.

  • name string required

    The display name of this feature toggle type.

  • description string required

    A description of what this feature toggle type is intended to be used for.

  • lifetimeDays integer nullable required

    How many days it takes before a feature toggle of this typed is flagged as potentially stale by Unleash. If this value is null, Unleash will never mark it as potentially stale.

  • ]

Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API

Request

Base URL
<your-unleash-url>
Security Scheme
apiKey
curl / cURL
curl -L -X GET '<your-unleash-url>/api/admin/feature-types' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'