{"uid":"cap_S1RC1_XPJs9ZZINKDLE3d","slug":"halowerk-energy-decision-engine-7dc02d06","name":"HALOWERK Energy Decision Engine","description":"EV, battery, and flexible-load agents buy this endpoint to receive an executable action with timing, expected value, confidence, and expiry.","url":"https://energy.halowerk.com/energy/decision?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"goal":{"enum":["minimize_cost","minimize_carbon","balanced","maximize_self_consumption","trading_signal"],"type":"string","default":"balanced"},"device":{"enum":["ev","battery","heat_pump","flexible_load","generic"],"type":"string","default":"generic"},"deadline":{"type":"string"},"location":{"type":"string","default":"Germany"},"constraints":{"type":"object","properties":{"min_soc":{"type":"number"},"target_soc":{"type":"number"},"max_power_kw":{"type":"number"},"must_finish_by":{"type":"string"}},"additionalProperties":false},"duration_hours":{"type":"integer","default":4,"maximum":24,"minimum":1},"policy_profile":{"enum":["balanced","utility","precision","recall"],"type":"string","description":"Optional override. Trading defaults to precision; flexible devices default to utility."}},"additionalProperties":false},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["ok","endpoint","result"],"properties":{"ok":{"type":"boolean"},"result":{"type":"object","required":["schema_version","decision_id","action","confidence","expires_at","risk_flags"],"properties":{"action":{"type":"string"},"confidence":{"type":"number"},"expires_at":{"type":["string","null"]},"risk_flags":{"type":"array","items":{"type":"string"}},"decision_id":{"type":"string"},"schema_version":{"type":"string"},"estimated_value":{"type":"object"},"recommended_window":{"type":["object","null"]}},"additionalProperties":true},"endpoint":{"type":"string"}},"additionalProperties":true}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dVxJqwEzDRCm0YvCLWWHm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Generates an executable energy dispatch action with timing, confidence, estimated value, and expiry for EV, battery, heat pump, or flexible-load devices","exampleAgentPrompt":"My home battery in Germany is at 30% SOC and I need it at 80% within 4 hours — give me a balanced dispatch decision with the action I should take now, including confidence and when the recommendation expires.","exampleUseCases":[{"title":"EV overnight charge cost minimization","prompt":"I have an EV in Germany that needs to be fully charged by 7am tomorrow. It's currently at 20% and can accept up to 11 kW. Give me a minimize_cost dispatch decision for 8 hours so I know when to start charging tonight."},{"title":"Home battery carbon-aware dispatch","prompt":"My home battery is at 45% SOC right now in Germany. I want to minimize carbon emissions — give me a dispatch decision for the next 6 hours using the balanced policy so I know whether to charge, hold, or discharge."},{"title":"Flexible load trading signal","prompt":"I'm running a flexible industrial load in Germany and want a trading_signal decision using the precision policy profile for the next 2 hours — tell me the recommended action, confidence, and estimated value so I can decide whether to curtail."}],"resultDescription":"Returns a structured decision object containing: a unique decision_id, schema_version, the recommended action string, a confidence score (0–1), an estimated_value object with financial or carbon impact, a recommended_window with start/end timing, an expires_at timestamp after which the decision should not be acted on, and an array of risk_flags highlighting any anomalies or caveats.","failureModes":["Missing required body fields (type, method, bodyType, body) returns a 400 validation error","Invalid enum values for device or goal fields return a 422 schema error","duration_hours outside 1–24 range is rejected","Payment not provided or insufficient triggers a 402 x402 payment-required challenge","Downstream energy data unavailable may result in low-confidence decisions or errors","Expired decisions (past expires_at) must not be acted upon — agent must re-call for a fresh decision"],"whenToPreferThis":"Use this endpoint when you need an actionable, executable dispatch recommendation rather than raw price or carbon data. It synthesizes multiple signals (spot prices, carbon intensity, grid load, device constraints) into a single opinionated action with confidence and expiry — ideal for autonomous agents controlling EV chargers, home batteries, heat pumps, or flexible industrial loads. Prefer this over raw data endpoints when you need a decision, not just information.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T12:32:52.780Z","isFirstParty":false,"canonicalSlug":"halowerk-energy-decision-engine-7dc02d06"}