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": {}
}Documentation Index
Fetch the complete documentation index at: https://docs.gorules.io/llms.txt
Use this file to discover all available pages before exploring further.
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?