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

> Rewrite a verbose metric prompt into a minimal version focused on its decision logic. When `metric_id` names an already-optimized metric whose prompt is unchanged, the stored prompt comes back at once. Usually takes under 30 seconds.



## OpenAPI

````yaml post /test_framework/v3/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/v3/metrics/simplify_prompt/:
    post:
      tags:
        - test_framework
      summary: Simplify metric prompt with AI
      description: >-
        Rewrite a verbose metric prompt into a minimal version focused on its
        decision logic. When `metric_id` names an already-optimized metric whose
        prompt is unchanged, the stored prompt comes back at once. Usually takes
        under 30 seconds.
      operationId: metrics-v3-simplify-prompt
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SimplifyPromptV3Request'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/SimplifyPromptV3Request'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/SimplifyPromptV3Request'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - completed
                      - failed
                    description: >-
                      `failed` when the job could not produce its result; see
                      `error` / `errors`.
                  original_prompt:
                    type: string
                  metric_id:
                    type:
                      - integer
                      - 'null'
                  simplified_prompt:
                    type: string
                  skipped_simplification:
                    type: boolean
                    description: >-
                      True when the metric was already optimized and the stored
                      prompt is returned.
                  error:
                    type:
                      - string
                      - 'null'
                    description: Why the job failed, when it did.
          description: ''
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  field_name:
                    type: array
                    items:
                      type: string
          description: ''
        '403':
          description: No access to the agent, project or metric the job runs on.
        '504':
          description: >-
            The job did not finish within 15 minutes. It may still complete in
            the background.
      security:
        - api_key: []
        - oauth2: []
        - embedded_session: []
        - supabase_session: []
components:
  schemas:
    SimplifyPromptV3Request:
      type: object
      properties:
        original_prompt:
          type: string
          description: The verbose prompt to simplify.
        metric_id:
          type: integer
          description: Metric the prompt belongs to. Optional.
      required:
        - original_prompt
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: X-CEKURA-API-KEY
      description: >-
        API Key Authentication. It should be included in the header of each
        request.
    oauth2:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: OAuth access token issued by Cekura for connected apps.
    embedded_session:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Embedded-dashboard session token. Internal.
    supabase_session:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Cekura dashboard session token. Not a customer API credential.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.