---
title: "Simulate a portfolio"
method: POST
path: "/strategies/{strategy_uuid}/simulations"
tags: ["Simulations"]
---

# Simulate a portfolio

`POST /strategies/{strategy_uuid}/simulations`

## Request

- Base URL: `https://kovatools.com/api/v1`
- URL: `https://kovatools.com/api/v1/strategies/{strategy_uuid}/simulations`
- Auth: HTTP bearer

Runs an asynchronous, ephemeral what-if evaluation. Does not create strategies, portfolios, snapshots, or briefs. The result expires after one hour. An optional strategy_content override applies only to this simulation.

## Path parameters

- `strategy_uuid` string, uuid, required

## Request body

- SimulationCreateRequest
  - `portfolio` object, required
    - `source` 'text' | 'json', required
    - `content` string, required: Plain text when source is text; a JSON-encoded string matching portfolio_v1 when source is json. File uploads are not supported for simulations.
  - `strategy_content` string: Optional strategy override for this simulation only. Does not update the saved strategy.
  - `context` string: Optional context for the simulated brief.

## Response `202`

Simulation queued; poll the returned URL

- object
  - `simulation` SimulationProcessing, required
    - `id` string, uuid, required
    - `status` 'processing', required
    - `poll_url` string, uri: Polling URL, present only in the create response.
    - `started_at` string, date-time, required
    - `elapsed_seconds` integer, required
    - `expected_duration_seconds` 120, required
    - `retry_after_seconds` integer, required
    - `message` string, required
  - `meta` Meta, required
    - `request_id` string: Unique request identifier for debugging
    - `timestamp` string, date-time

## Other responses

- `401`: Missing or invalid Bearer token
- `403`: Active subscription required
- `404`: Resource not found or not owned by the authenticated user
- `422`: Invalid portfolio source or content

---

[API](https://skmtc.dev/kovatools/apis/kova-api.md) · [All operations](https://skmtc.dev/kovatools/apis/kova-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kovatools/apis/kova-api/revisions/915eb7ffe3b6?raw)
