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

# OFREP bulk evaluation for server-side OpenFeature SDKs.

`POST /ofrep/v1/evaluate/flags`

## 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`
- Auth: HTTP bearer

Every flag of the token's environment, including server-only ones. Point
an OFREP provider at `TEMPS_API_URL` with `TEMPS_API_TOKEN` as its bearer
token.

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

- OfrepBulkResponse
  - `flags` OfrepEvaluationSuccess[], required
    - `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

- `304`: Unchanged for this context
- `400`: Invalid context or token not environment-scoped
- `401`: Unauthorized
- `403`: Insufficient permissions

## Changes

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

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/ofrep/v1/evaluate/flags/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)
