---
title: "Retrieve enabled feature flags for the provided context."
method: GET
path: "/api/frontend"
tags: ["Frontend API"]
---

# 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.

## Response `200`

frontendApiFeaturesSchema

- FrontendApiFeaturesSchema — Frontend SDK features list
  - `toggles` FrontendApiFeatureSchema[], required — The actual features returned to the Frontend SDK
    - `name` string, required — Unique feature name.
    - `enabled` boolean, required — Always set to `true`.
    - `impressionData` boolean, required — `true` if the impression data collection is enabled for the feature, otherwise `false`.
    - `variant` object — Variant details
      - `name` string, required — The variants name. Is unique for this feature flag
      - `enabled` boolean, required — Whether the variant is enabled or not.
      - `payload` object — Extra data configured for this variant
        - `type` 'json' | 'csv' | 'string' | 'number', required — The format of the payload.
        - `value` string, required — The payload value stringified.
      - `feature_enabled` boolean — Whether the feature is enabled or not.
      - `featureEnabled` boolean — Use `feature_enabled` instead.

## Other responses

- `401` — Authorization information is missing or invalid. Provide a valid API token as the `authorization` header, e.g. `authorization:*.*.my-admin-token`.
- `404` — The requested resource was not found.

---

[API](https://skmtc.dev/unleash/apis/unleash-api.md) · [All operations](https://skmtc.dev/unleash/apis/unleash-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/unleash/unleash-api/revisions/fe6260d233aa/schema)
