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

# Create Evaluate

> Trigger an evaluation run of a workflow's committed version through the evaluations pipeline. Evaluate the workflow's attached dataset, inline data, or a platform dataset id; parameters bind as constant entry inputs on every row. Returns a run id and a results URL to poll or open in the browser.



## OpenAPI

````yaml POST /api/workflows/{id}/evaluate
openapi: 3.1.0
info:
  title: LangWatch API
  version: 1.0.0
  description: LangWatch openapi spec
servers:
  - url: https://app.langwatch.ai
security:
  - project_api_key: []
paths:
  /api/workflows/{id}/evaluate:
    post:
      description: >-
        Trigger an evaluation run of a workflow's committed version through the
        evaluations pipeline. Evaluate the workflow's attached dataset, inline
        data, or a platform dataset id; parameters bind as constant entry inputs
        on every row. Returns a run id and a results URL to poll or open in the
        browser.
      operationId: postApiWorkflowsByIdEvaluate
      parameters:
        - schema:
            type: string
          in: path
          name: id
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                version_id:
                  type: string
                  description: Committed version to evaluate; defaults to the latest commit
                data:
                  type: array
                  items:
                    type: object
                    additionalProperties: {}
                  description: >-
                    Inline rows to evaluate instead of the workflow's attached
                    dataset
                dataset_id:
                  type: string
                  description: >-
                    Platform dataset id to evaluate; mutually exclusive with
                    data
                parameters:
                  type: object
                  additionalProperties:
                    anyOf:
                      - type: string
                      - type: number
                      - type: boolean
                  description: >-
                    Constant entry inputs applied to every row, e.g. a feature
                    flag or PR number
                row_indices:
                  type: array
                  items:
                    type: integer
                    minimum: 0
                  description: Subset of dataset row indices to evaluate
      responses:
        '200':
          description: Evaluation started
          content:
            application/json:
              schema:
                type: object
                properties:
                  run_id:
                    type: string
                  run_url:
                    type: string
                  workflow_version_id:
                    type: string
                  version:
                    type: string
                required:
                  - run_id
                  - run_url
                  - workflow_version_id
                  - version
        '400':
          description: No committed version to evaluate
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - error
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - error
        '404':
          description: Workflow not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - error
        '422':
          description: Unprocessable Entity
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - error
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  message:
                    type: string
                required:
                  - error
components:
  securitySchemes:
    project_api_key:
      type: apiKey
      in: header
      name: X-Auth-Token
      description: >-
        Project API key for sending traces and accessing project-scoped
        resources. Format: sk-lw-... (no underscore). Obtain one by creating a
        project via the Admin API or the LangWatch UI.

````