curl --request POST \
--url https://api.example.com/api/projects/{projectId}/environments/{environmentId}/evaluate/{*} \
--header 'Content-Type: application/json' \
--header 'X-Access-Token: <api-key>' \
--data '
{
"context": {
"cart": {
"total": 1500
},
"customer": {
"country": "US",
"tier": "gold"
}
},
"trace": false
}
'{
"result": "<unknown>",
"performance": "<string>",
"trace": {}
}Evaluates a decision using the release deployed to a specific environment.
curl --request POST \
--url https://api.example.com/api/projects/{projectId}/environments/{environmentId}/evaluate/{*} \
--header 'Content-Type: application/json' \
--header 'X-Access-Token: <api-key>' \
--data '
{
"context": {
"cart": {
"total": 1500
},
"customer": {
"country": "US",
"tier": "gold"
}
},
"trace": false
}
'{
"result": "<unknown>",
"performance": "<string>",
"trace": {}
}Project access token is obtained within project settings
ProjectId or projectKey
EnvironmentId or environmentKey
Decision document key
Successful environment decision evaluation result
Was this page helpful?