GET /runs/{id}/best#

GET https://app.promptpotter.dev/api/v1/runs/{id}/best

Return the highest-scoring prompt — the evolved config and the rendered text. Callable mid-run.

Path parameters

idstringrequired
The run id returned by POST /runs.

Response 200 OK

{
  "score": 0.91,
  "config": {
    "persona": "You are a careful problem solver…",
    "task_intent": "Produce one exact numeric answer.",
    "instruction": "Work step-by-step; verify arithmetic.",
    "thinking_style": "Deliberate chain-of-thought."
  },
  "prompt": "You are a careful problem solver…"
}