Kova Simulations API
The Simulations API from Kova — 2 operation(s) for simulations.
The Simulations API from Kova — 2 operation(s) for simulations.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/kovatools-com:kovatools-com-simulations-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Kovatools Com Simulations API
version: 1.0.0
description: 'Operations tagged Simulations across 2 of this provider''s published API definitions: kovatools-com-openapi.yml, openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://kovatools.com/api/v1
description: Production
- url: http://localhost:3000/api/v1
description: Development
security:
- bearerAuth: []
tags:
- name: Simulations
paths:
/strategies/{strategy_uuid}/simulations:
post:
summary: Simulate a portfolio
operationId: createSimulation
tags:
- Simulations
parameters:
- name: strategy_uuid
in: path
required: true
schema:
type: string
format: uuid
responses:
'202':
description: Simulation queued; poll the returned URL
content:
application/json:
schema:
type: object
required:
- simulation
- meta
properties:
simulation:
$ref: '#/components/schemas/SimulationProcessing'
meta:
$ref: '#/components/schemas/Meta'
'422':
description: Invalid portfolio source or content
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: Missing or invalid Bearer token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Active subscription required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found or not owned by the authenticated user
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: 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.
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/SimulationCreateRequest'
servers:
- url: https://kovatools.com/api/v1
description: Production
- url: http://localhost:3000/api/v1
description: Development
/strategies/{strategy_uuid}/simulations/{id}:
get:
summary: Read a simulation
operationId: getSimulation
tags:
- Simulations
parameters:
- name: strategy_uuid
in: path
required: true
schema:
type: string
format: uuid
- name: id
in: path
required: true
schema:
type: string
format: uuid
responses:
'200':
description: Current processing, completed, or failed state
content:
application/json:
schema:
type: object
required:
- simulation
- meta
properties:
simulation:
oneOf:
- $ref: '#/components/schemas/SimulationProcessing'
- $ref: '#/components/schemas/SimulationCompleted'
- $ref: '#/components/schemas/SimulationFailed'
meta:
$ref: '#/components/schemas/Meta'
'401':
description: Missing or invalid Bearer token
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'403':
description: Active subscription required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Resource not found or not owned by the authenticated user
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
description: Poll until status is completed or failed. Failed simulations return HTTP 200 with status failed. Missing, expired, or other-strategy results return 404.
servers:
- url: https://kovatools.com/api/v1
description: Production
- url: http://localhost:3000/api/v1
description: Development
components:
schemas:
Error:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
meta:
$ref: '#/components/schemas/Meta'
SimulationFailed:
type: object
required:
- id
- status
- error
properties:
id:
type: string
format: uuid
status:
type: string
enum:
- failed
error:
type: object
required:
- code
- message
properties:
code:
type: string
message:
type: string
SimulationCompleted:
type: object
required:
- id
- status
- alignment
- content
- summary
- target_allocations
- compliance_checks
- generated_at
properties:
id:
type: string
format: uuid
status:
type: string
enum:
- completed
alignment:
anyOf:
- $ref: '#/components/schemas/Alignment'
- type: 'null'
content:
type: string
summary:
type:
- string
- 'null'
target_allocations:
type:
- array
- 'null'
items:
type: object
compliance_checks:
type:
- array
- 'null'
items:
type: object
generated_at:
type: string
format: date-time
SimulationProcessing:
type: object
required:
- id
- status
- started_at
- elapsed_seconds
- expected_duration_seconds
- retry_after_seconds
- message
properties:
id:
type: string
format: uuid
status:
type: string
enum:
- processing
poll_url:
type: string
format: uri
description: Polling URL, present only in the create response.
started_at:
type: string
format: date-time
elapsed_seconds:
type: integer
minimum: 0
expected_duration_seconds:
type: integer
const: 120
retry_after_seconds:
type: integer
minimum: 15
maximum: 30
message:
type: string
SimulationCreateRequest:
type: object
required:
- portfolio
properties:
portfolio:
type: object
required:
- source
- content
properties:
source:
type: string
enum:
- text
- json
content:
type: string
minLength: 1
description: 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:
type: string
description: Optional strategy override for this simulation only. Does not update the saved strategy.
context:
type: string
description: Optional context for the simulated brief.
Meta:
type: object
properties:
request_id:
type: string
description: Unique request identifier for debugging
timestamp:
type: string
format: date-time
Alignment:
type: object
properties:
score:
type: number
format: float
minimum: 0
maximum: 1
description: Alignment score between 0 and 1
label:
type: string
enum:
- Strongly Aligned
- Aligned
- Partially Aligned
- Drifting
- Off-Track
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: 'API token prefixed with `kova_tk_`. Example: `Bearer kova_tk_a3f2b1c4d5e6f7a8b9c0d1e2f3a4b5c6`'
x-refined-from:
- kovatools-com-openapi.yml
- openapi.yaml