---
title: "POST /simulate/api/agent-prompt-optimiser/"
method: POST
path: "/simulate/api/agent-prompt-optimiser/"
tags: ["simulate"]
---

# POST /simulate/api/agent-prompt-optimiser/

`POST /simulate/api/agent-prompt-optimiser/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/simulate/api/agent-prompt-optimiser/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

ViewSet for Agent Prompt Optimiser Runs.

## Request body

- AgentPromptOptimiserRunCreate
  - `id` string, uuid
  - `name` string, required
  - `test_execution_id` string, uuid, required
  - `optimiser_type` 'random_search' | 'gepa' | 'protegi' | 'bayesian' | 'metaprompt' | 'promptwizard', required
  - `model` string, required: LLM model used for the optimiser run
  - `configuration` object, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Response `201`

Created

- AgentPromptOptimiserRunCreate
  - `id` string, uuid
  - `name` string, required
  - `test_execution_id` string, uuid, required
  - `optimiser_type` 'random_search' | 'gepa' | 'protegi' | 'bayesian' | 'metaprompt' | 'promptwizard', required
  - `model` string, required: LLM model used for the optimiser run
  - `configuration` object, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `400`: Bad Request
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
