---
title: "POST /ofrep/v1/evaluate/flags/{key}"
method: POST
path: "/ofrep/v1/evaluate/flags/{key}"
tags: ["OFREPService"]
---

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

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

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/ofrep/v1/evaluate/flags/{key}`
- Auth: HTTP bearer

OFREP single flag evaluation

## Path parameters

- `key` string, required

## Request body

- EvaluateFlagRequest
  - `key` string
  - `context` object

## Response `200`

OK

- EvaluatedFlag
  - `key` string
  - `reason` 'UNKNOWN' | 'DISABLED' | 'TARGETING_MATCH' | 'DEFAULT', enum
  - `variant` string
  - `metadata` object
  - `value` unknown

## Changes

- **2024-08-08** `594afc3dbe2e`: 1 breaking, 4 warning
  - the `reason` response's property type changed from `integer` to `string` for status `200`
  - added the new `DEFAULT` enum value to the `reason` response property for the response status `200`
  - added the new `DISABLED` enum value to the `reason` response property for the response status `200`
  - added the new `TARGETING_MATCH` enum value to the `reason` response property for the response status `200`
  - …1 more
- **2024-08-07** `291b2f802c58`: 1 breaking, 4 info
  - the `reason` response's property type changed from `string` to `integer` for status `200`
  - removed the `DEFAULT` enum value from the `reason` response property for the response status `200`
  - removed the `DISABLED` enum value from the `reason` response property for the response status `200`
  - removed the `TARGETING_MATCH` enum value from the `reason` response property for the response status `200`
  - …1 more

[Operation history](https://skmtc.dev/flipt-io/apis/flipt-api/changes/ofrep/v1/evaluate/flags/:key/post.md)

---

[API](https://skmtc.dev/flipt-io/apis/flipt-api.md) - [All operations](https://skmtc.dev/flipt-io/apis/flipt-api/llms.txt) - [OpenAPI document](https://skmtc.dev/flipt-io/apis/flipt-api/revisions/6fe4caf26f13?raw)
