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

Authorizations

Authorization
string
header
required

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

Body

application/json
context
object

Response

200 - application/json
OK
flags
object[]
required