Evaluation
Variant Evaluation
Overview
OpenFeature Evaluation
Namespaces
Rollouts
Evaluation
Variant Evaluation
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
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200 - application/json
OK
The response is of type object
.
Was this page helpful?
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>"
}