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

# POST /simulate/api/harness-environments/{id}/run/

`POST /simulate/api/harness-environments/{id}/run/`

## Request

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

Create one new Run for the selected scenarios and trial count.

## Request body

- HarnessRunCreate
  - `scenario_ids` string[], required
  - `trials` integer

## Response `202`

Accepted

- HarnessRunCreateResponse
  - `environment_id` string, uuid, required
  - `job_id` string, uuid, required
  - `run_id` string, uuid, required
  - `run_test_id` string, uuid, required
  - `test_execution_id` string, uuid, required
  - `scenario_count` integer, required
  - `trials` integer, required
  - `total_calls` integer, required
  - `state` string, required
  - `stage` string, required

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