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

# Retrieve enabled feature flags for the provided context, using POST.

`POST /api/frontend`

This endpoint returns the list of feature flags that the frontend API evaluates to enabled for the given context, using POST. Context values are provided as a `context` property in the request body. If the Frontend API is disabled 404 is returned.

## Request body

- FrontendApiFeaturesPostSchema — The Unleash frontend API POST request body.
  - `context` object — The Unleash context.
    - `appName` string — The name of the application.
    - `currentTime` string, date-time — A DateTime (or similar) data class instance or a string in an RFC3339-compatible format. Defaults to the current time if not set by the user.
    - `environment` string — The environment the app is running in.
    - `properties` object — Additional Unleash context properties
    - `remoteAddress` string — The app's IP address
    - `sessionId` string — An identifier for the current session
    - `userId` string — An identifier for the current user

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