curl --request POST \
--url https://api.getcargo.io/v1/expression/expressions/evaluate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"variables": "<unknown>",
"expression": {
"kind": "jsExpression",
"instructTo": "ai",
"expression": "<string>",
"fromRecipe": true
}
}
'{
"data": "<unknown>"
}Evaluate a formula expression
curl --request POST \
--url https://api.getcargo.io/v1/expression/expressions/evaluate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"variables": "<unknown>",
"expression": {
"kind": "jsExpression",
"instructTo": "ai",
"expression": "<string>",
"fromRecipe": true
}
}
'{
"data": "<unknown>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful response
Evaluation result.
Was this page helpful?