v7

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-014406845.4 KB
Frontend API

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

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.

post/api/frontend

Request body

Example request

{
  "context": {
    "appName": "My cool application.",
    "currentTime": "2022-07-05T12:56:41+02:00",
    "properties": {
      "customContextField": "this is one!",
      "otherCustomField": "3"
    },
    "remoteAddress": "192.168.1.1",
    "sessionId": "b65e7b23-fec0-4814-a129-0e9861ef18fc",
    "userId": "username@provider.com"
  }
}

Response

frontendApiFeaturesSchema

Example response

{
  "toggles": [
    {
      "name": "disable-comments",
      "enabled": true,
      "variant": {
        "name": "blue_group",
        "enabled": true,
        "payload": {
          "type": "json",
          "value": "{\"color\": \"red\"}"
        },
        "feature_enabled": true,
        "featureEnabled": true
      }
    }
  ]
}