---
title: "OFREP single-flag evaluation for server-side OpenFeature SDKs."
method: POST
path: "/ofrep/v1/evaluate/flags/{key}"
tags: ["Feature Flags"]
---

# OFREP single-flag evaluation for server-side OpenFeature SDKs.

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

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/ofrep/v1/evaluate/flags/{key}`
- Auth: HTTP bearer

## Path parameters

- `key` string, required

## Request body

- OfrepEvaluationRequest: OFREP evaluation request: `{ "context": { "targetingKey": "...", ... } }`. `context` is an OpenFeature evaluation context, arbitrary JSON by definition. Scalar entries become targeting attributes; nested objects and arrays are ignored.
  - `context` object, nullable

## Response `200`

Evaluated flag

- OfrepEvaluationSuccess
  - `key` string, required
  - `metadata` OfrepMetadata, required: OFREP metadata. Always empty today; present because the protocol defines it.
  - `reason` string, required: `STATIC`, `TARGETING_MATCH`, `SPLIT`, `DISABLED`, `DEFAULT` or `ERROR`.
  - `value` unknown, required
  - `variant` string, nullable

## Other responses

- `400`: Invalid context or token not environment-scoped
- `401`: Unauthorized
- `403`: Insufficient permissions
- `404`: Flag not found

## Changes

- **2026-11-20** `68c970dc603c`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ofrep/v1/evaluate/flags/:key/post.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
