Skip to main content

Retrieve enabled feature flags for the provided context.

GET 

/api/frontend

This endpoint returns the list of feature flags that the frontend API evaluates to enabled for the given context. Context values are provided as query parameters. If the Frontend API is disabled 404 is returned.

Responses

frontendApiFeaturesSchema

Schema

    toggles

    object[]

    required

    The actual features returned to the Frontend SDK

  • Array [

  • name stringrequired

    Unique feature name.

    Example: disable-comments
    enabled booleanrequired

    Always set to true.

    Example: true
    impressionData booleanrequired

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

    Example: false

    variant

    object

    Variant details

    name stringrequired

    The variants name. Is unique for this feature flag

    Example: blue_group
    enabled booleanrequired

    Whether the variant is enabled or not.

    Example: true

    payload

    object

    Extra data configured for this variant

    type stringrequired

    The format of the payload.

    Possible values: [json, csv, string, number]

    value stringrequired

    The payload value stringified.

    feature_enabled boolean

    Whether the feature is enabled or not.

    Example: true
    featureEnabled booleandeprecated

    Use feature_enabled instead.

    Example: true
  • ]

Loading...