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

# Reevaluate Metrics

> Evaluate metrics against result transcripts



## OpenAPI

````yaml post /test_framework/v1/results/{id}/evaluate_metrics/
openapi: 3.1.0
info:
  title: Cekura API
  version: v1
  description: >-
    Complete API documentation for the Cekura platform. This API provides
    endpoints for testing, observing, and evaluating AI voice agents — including
    managing agents, running evaluators, defining metrics, and analyzing call
    quality.
servers:
  - url: https://api.cekura.ai
security: []
paths:
  /test_framework/v1/results/{id}/evaluate_metrics/:
    post:
      tags:
        - test_framework
      description: Evaluate metrics against result transcripts
      operationId: results-evaluate-metrics-create
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          description: A unique integer value identifying this result.
          required: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SchemaPostReRunResultDetail'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SchemaPostReRunResultDetail'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SchemaPostReRunResultDetail'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Result'
          description: ''
      security:
        - api_key: []
components:
  schemas:
    SchemaPostReRunResultDetail:
      type: object
      properties:
        run_ids:
          type: array
          items:
            type: string
          description: List of run IDs
          minItems: 1
        metric_ids:
          type: array
          items:
            type: string
          description: List of metric IDs to evaluate
          minItems: 1
      required:
        - metric_ids
        - run_ids
    Result:
      type: object
      properties:
        id:
          type: integer
          readOnly: true
          description: |

            Unique identifier for the Result
            Example: `123`
        name:
          type: string
          description: |

            Name of the Result
            Example: `"Test Result 1"`
          maxLength: 255
        agent:
          type: integer
          readOnly: true
          description: |

            ID of the AI agent that was tested
            Example: `123`
        agent_name:
          type: string
          readOnly: true
          description: |

            Name of the AI agent that was tested
            Example: `"Test Agent 1"`
        agent_inbound:
          type: boolean
          readOnly: true
          description: >

            Whether the agent is configured for inbound calls (true) or outbound
            calls (false)

            Example: `true` or `false`
        status:
          enum:
            - running
            - completed
            - failed
            - pending
            - in_progress
            - evaluating
            - in_queue
            - timeout
            - cancelled
            - scaling_up
          type: string
          x-spec-enum-id: 623e22fc1eb17833
          default: pending
          description: |-

            Current status of the result


            * `running` - Running
            * `completed` - Completed
            * `failed` - Failed
            * `pending` - Pending
            * `in_progress` - In Progress
            * `evaluating` - Evaluating
            * `in_queue` - In Queue
            * `timeout` - Timeout
            * `cancelled` - Cancelled
            * `scaling_up` - Scaling Up
        success_rate:
          type: number
          format: double
          default: 0
          description: Success rate of the test runs as a decimal (0.0 to 1.0)
        run_as_text:
          type: boolean
          default: false
          description: |

            Whether this test was run in text mode instead of voice mode
            Example: `true` or `false`
        is_cronjob:
          type: string
          readOnly: true
          description: |

            Whether this result was created by a scheduled cronjob
            Example: `true` or `false`
        runs:
          type: object
          additionalProperties: {}
          description: >-
            Run summaries for this result. For full run data including
            transcripts and metric scores, fetch the result detail endpoint —
            there `runs` is a dict keyed by run ID.
          readOnly: true
        met_expected_outcome_count:
          type: string
          readOnly: true
          description: |

            Number of test runs that met the expected outcome criteria
            Example: `10`
        total_expected_outcome_count:
          type: string
          readOnly: true
          description: |

            Total number of test runs that were evaluated for expected outcomes
            Example: `10`
        total_runs_count:
          type: string
          readOnly: true
          description: |

            Total number of test runs associated with this result
            Example: `10`
        completed_runs_count:
          type: string
          readOnly: true
          description: |

            Number of test runs that have completed successfully
            Example: `10`
        success_runs_count:
          type: string
          readOnly: true
          description: |

            Number of test runs that were marked as successful
            Example: `10`
        failed_runs_count:
          type: string
          readOnly: true
          description: |

            Number of test runs that failed or encountered errors
            Example: `10`
        scenarios:
          type: object
          additionalProperties: {}
          description: |

            List of scenario names used in the test runs for this result
            Example:
            ```json
            [
                {
                    "id": 123,
                    "name": "Scenario 1"
                },
                {
                    "id": 456,
                    "name": "Scenario 2"
                }
            ]
            ```
          readOnly: true
        run_type:
          type:
            - string
            - 'null'
          readOnly: true
          description: Run Execution Type
        created_at:
          type: string
          format: date-time
          readOnly: true
          description: |

            Timestamp when this test result was created
            Example: `2021-01-01 00:00:00`
        updated_at:
          type: string
          format: date-time
          readOnly: true
          description: Timestamp when this test result was last updated
      required:
        - name
  securitySchemes:
    api_key:
      type: apiKey
      name: X-CEKURA-API-KEY
      in: header
      description: >-
        API Key Authentication. It should be included in the header of each
        request.

````