curl --request POST \
--url https://api.example.com/api/projects/{project}/evaluate/{key} \
--header 'Content-Type: application/json' \
--header 'X-Access-Token: <api-key>' \
--data '
{
"context": {
"customer": {
"tier": "gold",
"totalOrders": 50
},
"order": {
"amount": 150
}
},
"trace": false
}
'{
"result": {},
"trace": {},
"details": {
"releaseId": "<string>",
"versionId": "<string>"
}
}Evaluates a decision model with the provided context and returns the result. Optionally include trace information for debugging.
curl --request POST \
--url https://api.example.com/api/projects/{project}/evaluate/{key} \
--header 'Content-Type: application/json' \
--header 'X-Access-Token: <api-key>' \
--data '
{
"context": {
"customer": {
"tier": "gold",
"totalOrders": 50
},
"order": {
"amount": 150
}
},
"trace": false
}
'{
"result": {},
"trace": {},
"details": {
"releaseId": "<string>",
"versionId": "<string>"
}
}Evaluation token from project settings
Evaluation request with context data
Was this page helpful?