---
title: "Cheapest Window"
method: POST
path: "/optimizer/cheapest-window"
---

# Cheapest Window

`POST /optimizer/cheapest-window`

## Request

- Base URL: `https://energy.halowerk.com`
- URL: `https://energy.halowerk.com/optimizer/cheapest-window`
- Auth: none declared

Flexible-load agents buy this endpoint to schedule a contiguous operating window at the lowest average electricity price.

## Request body

- object
  - `duration_hours` integer

## Response `200`

Result. Settled.

- object

## Other responses

- `400`: Request body does not match inputSchema. Nothing settled.
- `402`: Payment required — 0.005 USDC (per_request). The challenge carries accepts, description and inputSchema.
- `500`: Internal error. Nothing settled.

---

[API](https://skmtc.dev/halowerk/apis/halowerk-energy.md) · [All operations](https://skmtc.dev/halowerk/apis/halowerk-energy/llms.txt) · [OpenAPI document](https://skmtc.dev/halowerk/apis/halowerk-energy/revisions/59458d8c787e?raw)
