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

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
flagKey
string
required
enabled
boolean
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