---
title: "Simulate Separation Endpoint"
method: POST
path: "/api/simulate-separation"
---

# Simulate Separation Endpoint

`POST /api/simulate-separation`

## Request

- Base URL: `https://biotechdsp-579272663320.europe-west1.run.app`
- URL: `https://biotechdsp-579272663320.europe-west1.run.app/api/simulate-separation`
- Auth: HTTP bearer

## Request body

- SimulateBody: Feed plus steps, as the canvas posts them. Inherits the economic basis only for `annual_energy_cost_usd` in the response, which was `total_energy_kw * 8000 * 0.10` - hardcoded hours and a fourth copy of DEFAULT_ELECTRICITY_USD_PER_KWH, honouring neither the user's operating hours nor their tariff. Every field defaults to the house basis, so an old client sending only stream/steps/target_products gets exactly the numbers it did before.
  - `annual_operating_hours` integer
  - `cooling_water_price_usd_per_m3` number
  - `electricity_price_usd_per_kWh` number
  - `facility_type` string, nullable
  - `feeds` object
  - `labor_profile` string
  - `product_identity_requested_targets` string[]
  - `product_identity_warnings` string[]
  - `product_selling_price_source` 'default' | 'user_supplied'
  - `product_selling_price_usd_per_kg` number
  - `steam_price_usd_per_GJ` number
  - `steps` object[], required
  - `stream` object, required
  - `stream_closure_warnings` string[]
  - `target_products` string[], required
  - `target_provenance` object, nullable
  - `terminal_streams` TerminalStream[], nullable
    - `fraction` number, required
    - `output_index` integer, required
    - `port_id` string, required
    - `sink` 'product' | 'waste' | 'vent', required
    - `step_index` integer, required
    - `target_products` string[]
    - `terminal_id` string, required
  - `wastewater_scope` 'included' | 'excluded_osbl'

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/untangle/apis/untangle-bio-engine-api.md) · [All operations](https://skmtc.dev/untangle/apis/untangle-bio-engine-api/llms.txt) · [OpenAPI document](https://skmtc.dev/untangle/apis/untangle-bio-engine-api/revisions/161714bf261c?raw)
