Skip to main content
POST
cURL

Authorizations

X-CEKURA-API-KEY
string
header
required

API Key Authentication. It should be included in the header of each request.

Body

metric_id
integer
required

ID of the metric to process feedbacks for

metric_type
enum<string>

Optional metric type

  • basic - Basic (Deprecated in favor of LLM Judge)
  • custom_prompt - Custom Prompt ( Deprecated in favor of LLM Judge)
  • custom_code - Custom Code
  • llm_judge - LLM Judge
Available options:
basic,
custom_prompt,
custom_code,
llm_judge
test_set_ids
integer[]

Test set IDs whose feedback drives the optimization. If omitted, defaults to every test set already added to this metric's Lab.

simplified_prompt
string

Simplified prompt to use as initial prompt for optimization. If provided, the optimizer will start from this prompt instead of the metric's original description.

skip_evaluation
boolean
default:false

If true, skip running LLM evaluations on test sets after optimization. This speeds up the process but won't show evaluation results.

Response

200

Returns progress_id for tracking progress