> ## 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.

# Simplify Metric Prompt with AI

> Simplify a verbose metric prompt into a minimal, algorithmic version. Returns immediately if the metric is already optimized, otherwise returns a `progress_id` for polling via `simplify_prompt_progress/`.



## OpenAPI

````yaml post /test_framework/v1/metrics/simplify_prompt/
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/metrics/simplify_prompt/:
    post:
      tags:
        - test_framework
      description: >-
        Simplify a verbose metric prompt into a minimal algorithmic version.
        Returns immediately if metric is already optimized, otherwise returns a
        progress_id for polling.
      operationId: metrics-simplify-prompt-create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SimplifyPromptRequest'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SimplifyPromptRequest'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SimplifyPromptRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SimplifyPromptResponse'
          description: ''
      security:
        - api_key: []
components:
  schemas:
    SimplifyPromptRequest:
      type: object
      properties:
        original_prompt:
          type: string
          description: The verbose prompt to simplify
        metric_id:
          type: integer
          description: >-
            Optional metric ID. If provided and metric is already optimized,
            returns stored instructions instead of simplifying.
      required:
        - original_prompt
    SimplifyPromptResponse:
      type: object
      properties:
        simplified_prompt:
          type: string
        original_prompt:
          type: string
        skipped_simplification:
          type: boolean
        progress_id:
          type: string
          description: >-
            Returned when async processing is needed. Poll
            simplify_prompt_progress for result.
  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.

````