POST
/
ofrep
/
v1
/
evaluate
/
flags
/
{key}
curl --request POST \
  --url https://try.flipt.io/ofrep/v1/evaluate/flags/<flagKey> \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --header 'X-Flipt-Namespace: <namespaceKey>' \
  --data '{
  "context": {
    "targetingKey": "targetingKey1"
  },
}'
{
  "key": "<string>",
  "reason": "UNKNOWN",
  "variant": "<string>",
  "metadata": {},
  "value": "<any>"
}
curl --request POST \
  --url https://try.flipt.io/ofrep/v1/evaluate/flags/<flagKey> \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --header 'X-Flipt-Namespace: <namespaceKey>' \
  --data '{
  "context": {
    "targetingKey": "targetingKey1"
  },
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

key
string
required

Body

application/json
key
string
context
object

Response

200 - application/json
OK
key
string
reason
enum<string>
Available options:
UNKNOWN,
DISABLED,
TARGETING_MATCH,
DEFAULT
variant
string
metadata
object
value
any

Represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values.