Skip to content

/v1/sdk/evaluate

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" } } }'
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"
}
}
}

OK

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"
}

Unauthorized

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"
}

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"
}