POST
/
v1
/
evaluators
/
execute
curl --request POST \
  --url https://api.getmaxim.ai/v1/evaluators/execute \
  --header 'Content-Type: application/json' \
  --header 'x-maxim-api-key: <api-key>' \
  --data '{
  "workspaceId": "<string>",
  "id": "<string>",
  "name": "<string>",
  "language": "javascript",
  "variables": {}
}'
{
  "data": {
    "result": "<string>",
    "reasoning": "<string>",
    "logs": [
      {
        "timestamp": "<string>",
        "type": "<string>",
        "text": "<string>"
      }
    ]
  }
}

Authorizations

x-maxim-api-key
string
header
required

API key for authentication

Body

application/json

Payload for executing an evaluator

Response

200
application/json

Evaluator executed successfully

The response is of type object.