> ## Documentation Index
> Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Execute an evaluator

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



## OpenAPI

````yaml /public-apis/openapi/evaluators.json post /v1/evaluators/execute
openapi: 3.0.0
info:
  version: 1.0.0
  contact:
    name: Maxim Engineering
    email: eng@getmaxim.ai
  title: Maxim SDK API - evaluators
  description: API documentation for Maxim SDK evaluators endpoints
servers:
  - url: https://api.getmaxim.ai
security: []
paths:
  /v1/evaluators/execute:
    post:
      tags:
        - Evaluator
      summary: Execute an evaluator
      description: >-
        Execute an evaluator to assess content based on predefined criteria and
        return grading results, reasoning, and execution logs
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                workspaceId:
                  type: string
                  minLength: 1
                  description: Unique identifier for the workspace
                id:
                  type: string
                  minLength: 1
                  description: Unique identifier for the evaluator
                name:
                  type: string
                  minLength: 1
                  description: Name of the evaluator
                language:
                  type: string
                  enum:
                    - javascript
                    - python
                  description: Programming language for the evaluator
                variables:
                  type: object
                  additionalProperties:
                    type: string
                  description: Variables to be used in evaluation
              required:
                - workspaceId
              additionalProperties:
                type: string
              description: Payload for executing an evaluator
      responses:
        '200':
          description: Evaluator executed successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      result:
                        type: string
                      reasoning:
                        type: string
                      logs:
                        type: array
                        items:
                          type: object
                          properties:
                            timestamp:
                              type: string
                            type:
                              type: string
                            text:
                              type: string
                          required:
                            - timestamp
                            - type
                            - text
                    required:
                      - result
                      - logs
                required:
                  - data
        '400':
          description: Invalid request parameters
        '404':
          description: Evaluator not found
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-maxim-api-key
      description: API key for authentication

````