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

Authorizations

Authorization
string
headerrequired

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

Body

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

Response

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