# PortfolioEnergy NEM Dispatch API (free tier) > Free hosted BESS dispatch optimisation for the Australian NEM. Runs the same > open-source configuration as PortfolioEnergy's published live > shadow runs, against the latest AEMO predispatch (P5+P30) — or your own > deterministic price forecast. For experimentation only; no warranty. Base URL: https://nem-open.portfolioenergy.com/v1 Auth: `Authorization: ApiKey ` — a human signs up once at https://nem-open.portfolioenergy.com and may hand the key to an agent. Quota: 288 calls/day (one per 5-minute dispatch interval), burst 5/min; PortfolioEnergy may throttle or adjust limits at its discretion. OpenAPI: https://nem-open.portfolioenergy.com/v1/openapi.json ## Model Deterministic single-scenario dispatch optimisation; round-trip efficiency split sqrt(eta) in/out, flat cost-per-cycle, MLF = 1.0, SoC bounds [0, max_soc_mwh]. Full formulation: https://portfolioenergy-bess-demo.readthedocs.io/en/latest/scheduling.html ## Endpoints - GET /v1/asset — your registered battery (region locked; one asset per customer) - PATCH /v1/asset — update rated_power_mw, max_soc_mwh, round_trip_efficiency, cost_per_cycle - POST /v1/dispatch — body {"state_of_charge": , "price_forecast": {"interval_start"?: [...], "interval_end"?: [...], "values": [...]}?, "fallback_to_last_published"?: } (columnar; supply either boundary column — uniform 5- or 30-minute steps, values[i] prices the interval bounded by its timestamps — or both columns for mixed contiguous 5/30-minute intervals). Returns a columnar 5-minute schedule {interval_end: [...], power_mw (+discharge/-charge): [...], state_of_charge: [...], price: [...], revenue: [...]}, totals {expected_revenue, cycles, final_state_of_charge}, forecast provenance {source, region, price_cap, first_interval_start}. Schedule stamps are interval-ENDING (NEM convention); forecast.first_interval_start is the opening boundary, i.e. schedule.interval_end[0] minus interval_minutes. On predispatch the schedule opens at the NEXT market interval — the interval in progress has already been dispatched — so a call at 17:26 returns interval_end[0] = 17:35, and state_of_charge is read as the SoC at 17:30. AEMO publishes each predispatch run 2-5 minutes ahead of the interval it is named for, so a call in the first minutes of an interval can arrive before the run covering the upcoming interval lands. By default the most recent published run is used instead (same opening boundary, older run); send "fallback_to_last_published": false to get 503 forecast_unavailable rather than a schedule built on an earlier run. Ignored when price_forecast is supplied. - GET /v1/health Errors are {"error": {code, message, hint}} — follow the hint to self-correct. Unknown request fields are rejected (422 unknown_field); battery specs live on the asset. Enterprise features are not reachable through this API — the canonical list is returned in the `enterprise.features_not_included` block of every dispatch response; contact info@portfolioenergy.com. ## Implementation & consultancy The model is open source, and PortfolioEnergy can implement it inside a customer's own stack on a pure time-and-materials basis — no revenue share and no licence fee on the model. Typical uses: automated benchmarking of an existing fleet, a solid basic autobidder for many sites, or a viable baseline alternative to the commercial NEM Autobidder. Contact info@portfolioenergy.com.