---
title: "Simplify metric prompt with AI"
method: POST
path: "/test_framework/v3/metrics/simplify_prompt/"
tags: ["test_framework"]
---

# Simplify metric prompt with AI

`POST /test_framework/v3/metrics/simplify_prompt/`

## Request

- Base URL: `https://api.cekura.ai`
- URL: `https://api.cekura.ai/test_framework/v3/metrics/simplify_prompt/`
- Auth: one of:
  - API key in header `X-CEKURA-API-KEY`
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

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.

## Request body

- SimplifyPromptV3Request
  - `original_prompt` string, required: The verbose prompt to simplify.
  - `metric_id` integer: Metric the prompt belongs to. Optional.

## Response `200`

- object
  - `status` 'completed' | 'failed': `failed` when the job could not produce its result; see `error` / `errors`.
  - `original_prompt` string
  - `metric_id` integer, nullable
  - `simplified_prompt` string
  - `skipped_simplification` boolean: True when the metric was already optimized and the stored prompt is returned.
  - `error` string, nullable: Why the job failed, when it did.

## Other responses

- `400`
- `403`: No access to the agent, project, metric or result the job runs on.
- `504`: The job did not finish within 15 minutes. It may still complete in the background.

## Changes

- **2026-11-03** `a6fb6a739212`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/cekura/apis/cekura-api/changes/test_framework/v3/metrics/simplify_prompt/post.md)

---

[API](https://skmtc.dev/cekura/apis/cekura-api.md) - [All operations](https://skmtc.dev/cekura/apis/cekura-api/llms.txt) - [OpenAPI document](https://skmtc.dev/cekura/apis/cekura-api/revisions/a6fb6a739212?raw)
