API ReferenceFlag Evaluation APIOFREP

Evaluate single flag

Evaluate a single feature flag for the given context

POST
/ofrep/v1/evaluate/flags/{key}

Request Body

application/jsonRequired

Evaluation request with context

contextRequiredEvaluationContext

Path Parameters

keyRequiredstring

Flag key to evaluate

Header Parameters

X-API-KeyRequiredstring

API key for authentication

curl -X POST "https://example.com/ofrep/v1/evaluate/flags/<string>" \
  -H "X-API-Key: <string>" \
  -H "Content-Type: application/json" \
  -d '{
    "context": {
      "targetingKey": "string",
      "properties": {
        "property1": null,
        "property2": null
      }
    }
  }'

Successful flag evaluation

{
  "key": "string",
  "value": null,
  "reason": "string",
  "variant": "string",
  "metadata": {
    "property1": null,
    "property2": null
  }
}