POST
/
evaluate
/
v1
/
variant
curl --request POST \
  --url https://try.flipt.io/evaluate/v1/variant \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --data '{
  "context": {},
  "entityId": "<entityid>",
  "flagKey": "<flagkey>",
  "namespaceKey": "<namespacekey>"
}'
{
  "match": true,
  "segmentKeys": [
    "<string>"
  ],
  "reason": "UNKNOWN_EVALUATION_REASON",
  "variantKey": "<string>",
  "variantAttachment": "<string>",
  "requestId": "<string>",
  "requestDurationMillis": 123,
  "timestamp": "2023-11-07T05:31:56Z",
  "flagKey": "<string>"
}
curl --request POST \
  --url https://try.flipt.io/evaluate/v1/variant \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --data '{
  "context": {},
  "entityId": "<entityid>",
  "flagKey": "<flagkey>",
  "namespaceKey": "<namespacekey>"
}'

Authorizations

Authorization
string
header
required

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

Body

application/json
namespaceKey
string
required
flagKey
string
required
entityId
string
required
context
object
required
requestId
string
reference
string

Response

200 - application/json
OK
match
boolean
segmentKeys
string[]
reason
enum<string>
Available options:
UNKNOWN_EVALUATION_REASON,
FLAG_DISABLED_EVALUATION_REASON,
MATCH_EVALUATION_REASON,
DEFAULT_EVALUATION_REASON
variantKey
string
variantAttachment
string
requestId
string
requestDurationMillis
number
timestamp
string
flagKey
string