---
title: "POST /simulate/api/harness/attempts/{id}/scenarios/"
method: POST
path: "/simulate/api/harness/attempts/{id}/scenarios/"
tags: ["simulate"]
---

# POST /simulate/api/harness/attempts/{id}/scenarios/

`POST /simulate/api/harness/attempts/{id}/scenarios/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/simulate/api/harness/attempts/{id}/scenarios/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

## Request body

- HarnessScenarioOperation
  - `operation` 'provision' | 'begin', required
  - `name` string
  - `modality` 'text' | 'voice'
  - `description` string
  - `personas` HarnessProvisionPersona[]
    - `scenario_key` string, required
    - `name` string
    - `role` string
    - `situation` string
    - `outcome` string
    - `persona` object
  - `agent_definition_id` string, uuid, nullable
  - `agent_name` string
  - `agent_prompt` string
  - `chosen_evals` string[]
  - `run_test_id` string, uuid
  - `scenario_keys` string[]

## Response `200`

OK

- HarnessScenarioOperationResponse
  - `result` HarnessScenarioOperationResult, required
    - `run_test_id` string, uuid
    - `test_execution_id` string, uuid
    - `scenarios` HarnessScenarioRegistrationResponse[], required
      - `scenario_key` string, required
      - `scenario_id` string, uuid, required
      - `call_execution_id` string, uuid

## Other responses

- `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)
