Maxim Logo
Evaluators/Execute

Execute an evaluator

Execute an evaluator to assess content based on predefined criteria and return grading results, reasoning, and execution logs

POST
/v1/evaluators/execute

Authorization

x-maxim-api-key<token>

API key for authentication

In: header

Query Parameters

workspaceIdRequiredstring

Unique identifier for the workspace

Minimum length: 1
idstring

Unique identifier for the evaluator

Minimum length: 1
namestring

Name of the evaluator

Minimum length: 1
languagestring

Programming language for the evaluator

Value in: "javascript" | "python"
variablesobject

Variables to be used in evaluation

curl -X POST "https://api.getmaxim.ai/v1/evaluators/execute?workspaceId=%3Cstring%3E&id=%3Cstring%3E&name=%3Cstring%3E&language=javascript&variables=%5Bobject+Object%5D" \
  -H "x-maxim-api-key: <token>"

Evaluator executed successfully

{
  "data": {
    "result": "string",
    "reasoning": "string",
    "logs": [
      {
        "timestamp": "string",
        "type": "string",
        "text": "string"
      }
    ]
  }
}