Skip to content

Evaluates a feature flag for the given context.

POST
/v1/sdk/evaluate
curl --request POST \
--url https://eval.featureflip.io/v1/sdk/evaluate \
--header 'Authorization: <Authorization>' \
--header 'Content-Type: application/json' \
--data '{ "flagKey": "example", "context": { "userId": "example", "attributes": { "additionalProperty": "example" } } }'

The evaluation request containing flag key and context.

object
flagKey
required
string
nullable
context
required
object
userId
string
nullable
attributes
object
key
additional properties
Examplegenerated
{
"flagKey": "example",
"context": {
"userId": "example",
"attributes": {
"additionalProperty": "example"
}
}
}

Returns the evaluation result.

Media typeapplication/json
object
key
required
string
nullable
variation
required
string
nullable
value
required
reason
required
string
nullable
prerequisiteKey
string
nullable
Examplegenerated
{
"key": "example",
"variation": "example",
"value": "example",
"reason": "example",
"prerequisiteKey": "example"
}

SDK key is missing or invalid.

Media typeapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Flag with the specified key was not found.

Media typeapplication/json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
key
additional properties
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Service Unavailable