{"openapi":"3.1.0","info":{"title":"tinypeak","version":"2","description":"Peak and event forecasts for every program, and the record they are scored on. Every data route requires an API key; a free key reads forecasts, programs and the record. Only status, health and this document are anonymous. Numbers use the site's words: a day's `chance`, the `currentPeak`, the `standingPeaks`, a `call` at a `threshold`. Every response carries `x-tinypeak-contract`; changes within a contract version are additive.","contact":{"email":"team@tinypeak.io"},"termsOfService":"https://tinypeak.io/terms","license":{"name":"tinypeak terms of use","url":"https://tinypeak.io/terms"}},"servers":[{"url":"https://tinypeak.io"}],"tags":[{"name":"programs","description":"The catalog and each program's rule, terms, documents and calendar."},{"name":"forecast","description":"Each program's forecast as its page shows it, its history, its windows, its closed days and its weather."},{"name":"record","description":"How the forecasts have done, the scoring cells, every scored claim and the ledger."},{"name":"paid","description":"Licensed plans (partner, enterprise): the model's working, the weather and every publication."},{"name":"account","description":"A customer key's own exposures and outlook."},{"name":"portfolios","description":"The organization's portfolios, and each one's alert: a threshold per program that bills its sites, delivered by signed webhook, email, Slack or Microsoft Teams after every publication."},{"name":"status","description":"Whether every forecast and data feed is current. No key needed."},{"name":"internal","description":"Service health and the scheduler's routes."}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API key, `Authorization: Bearer tp_live_…`. Free keys read public-tier data; licensed keys read full forecasts and manage alerts."},"cronAuth":{"type":"http","scheme":"bearer","description":"The deployment's `CRON_SECRET`. Internal: the scheduler and the operator only."}},"schemas":{"ApiError":{"type":"object","properties":{"error":{"type":"string","enum":["bad_request","body_too_large","email_not_configured","api_key_required","cron_secret_required","key_revoked","plan_not_allowed","program_not_licensed","alert_not_authorized","not_found","method_not_allowed","unknown_program","unknown_job","no_customer_profile","no_organization","no_publication","not_closed","subscription_revoked","too_many_subscriptions","too_many_requests","internal_error","unavailable","cron_disabled"],"description":"What went wrong, as a stable code to branch on."},"message":{"type":"string","description":"The same in a sentence, for a person; its wording may change."},"contact":{"type":"string","description":"Where to ask, on errors a person resolves (a key, a plan)."}},"required":["error","message"],"description":"Every error response's body."},"ProgramList":{"type":"object","properties":{"programs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"Program id, the path segment of every program route."},"name":{"type":"string","description":"Short name, as the site shows it: `ERCOT 4CP`, `NYISO ICAP`."},"market":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z]+$","description":"e.g. \"ercot\", \"ieso\""},"name":{"type":"string","description":"As the site names it: `ERCOT`, `ISO-NE`."}},"required":["id","name"],"description":"The wholesale market the program's grid operator runs."},"service":{"type":"string","enum":["served","planned"],"description":"`served`: forecast every day; `planned`: mapped with its rules, forecasts to come."},"measures":{"type":"string","enum":["peak","event"],"description":"What each day's `chance` is: the chance it sets the peak (`peak`), or the chance its administrator calls an event (`event`)."},"rule":{"type":"object","properties":{"summary":{"type":"string","description":"The rule in a phrase: `one peak day a month, every day`."},"lede":{"type":["string","null"],"description":"What sets the charge, in a sentence."},"peaksCounted":{"type":"integer","minimum":1},"months":{"type":"array","items":{"type":"integer","minimum":1,"maximum":12},"description":"The months whose days can count."}},"required":["summary","lede","peaksCounted","months"]},"tags":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string","enum":["stake","trigger","scope","timing","billing","caveat"]},"label":{"type":"string","description":"As the site's tag reads: `Transmission charge`, `Top 5 days`, `Zone peak`."},"meaning":{"type":"string","description":"The tag in a sentence."}},"required":["group","label","meaning"],"description":"One of the tags that tell programs apart: what it costs, what decides it, whose peak, which months."}},"window":{"type":["object","null"],"properties":{"id":{"type":"string","minLength":1,"description":"`{programId}:{YYYY-MM}` for a monthly window, `{programId}:{YYYY}` for a season or year."},"label":{"type":"string","description":"As the site names it: `August 2026`, `Jul–Aug 2026`."},"start":{"type":"string","format":"date","description":"The window's first day, a local date."},"end":{"type":"string","format":"date","description":"The window's last day, inclusive."},"status":{"type":"string","enum":["upcoming","open","settled"],"description":"`open` while its days are still to come or under way; `settled` once its last day has closed."},"peaksCounted":{"type":"integer","minimum":1,"description":"How many of the window's highest peaks count toward the charge: 1 for 4CP's monthly peak, 5 for ICI."}},"required":["id","label","start","end","status","peaksCounted"],"description":"The window open now, else the next one; null when none is scheduled."},"links":{"type":"object","properties":{"page":{"type":"string","format":"uri","description":"The program's forecast page on the site."},"forecast":{"type":"string","description":"API path of the forecast."},"record":{"type":"string","description":"API path of the evaluation."}},"required":["page","forecast","record"],"description":"Where to go next."}},"required":["id","name","market","service","measures","rule","tags","window","links"],"description":"A program in the catalog."}}},"required":["programs"],"description":"Every program: the served ones first, then the planned, each group in catalog order."},"ProgramDetail":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"Program id, the path segment of every program route."},"name":{"type":"string","description":"Short name, as the site shows it: `ERCOT 4CP`, `NYISO ICAP`."},"market":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z]+$","description":"e.g. \"ercot\", \"ieso\""},"name":{"type":"string","description":"As the site names it: `ERCOT`, `ISO-NE`."}},"required":["id","name"],"description":"The wholesale market the program's grid operator runs."},"service":{"type":"string","enum":["served","planned"],"description":"`served`: forecast every day; `planned`: mapped with its rules, forecasts to come."},"measures":{"type":"string","enum":["peak","event"],"description":"What each day's `chance` is: the chance it sets the peak (`peak`), or the chance its administrator calls an event (`event`)."},"rule":{"type":"object","properties":{"summary":{"type":"string","description":"The rule in a phrase: `one peak day a month, every day`."},"lede":{"type":["string","null"],"description":"What sets the charge, in a sentence."},"peaksCounted":{"type":"integer","minimum":1},"months":{"type":"array","items":{"type":"integer","minimum":1,"maximum":12},"description":"The months whose days can count."}},"required":["summary","lede","peaksCounted","months"]},"tags":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string","enum":["stake","trigger","scope","timing","billing","caveat"]},"label":{"type":"string","description":"As the site's tag reads: `Transmission charge`, `Top 5 days`, `Zone peak`."},"meaning":{"type":"string","description":"The tag in a sentence."}},"required":["group","label","meaning"],"description":"One of the tags that tell programs apart: what it costs, what decides it, whose peak, which months."}},"window":{"type":["object","null"],"properties":{"id":{"type":"string","minLength":1,"description":"`{programId}:{YYYY-MM}` for a monthly window, `{programId}:{YYYY}` for a season or year."},"label":{"type":"string","description":"As the site names it: `August 2026`, `Jul–Aug 2026`."},"start":{"type":"string","format":"date","description":"The window's first day, a local date."},"end":{"type":"string","format":"date","description":"The window's last day, inclusive."},"status":{"type":"string","enum":["upcoming","open","settled"],"description":"`open` while its days are still to come or under way; `settled` once its last day has closed."},"peaksCounted":{"type":"integer","minimum":1,"description":"How many of the window's highest peaks count toward the charge: 1 for 4CP's monthly peak, 5 for ICI."}},"required":["id","label","start","end","status","peaksCounted"],"description":"The window open now, else the next one; null when none is scheduled."},"links":{"type":"object","properties":{"page":{"type":"string","format":"uri","description":"The program's forecast page on the site."},"forecast":{"type":"string","description":"API path of the forecast."},"record":{"type":"string","description":"API path of the evaluation."}},"required":["page","forecast","record"],"description":"Where to go next."},"terms":{"type":"object","properties":{"consequence":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["charge"],"description":"The outcome sets the customer's share of a cost."},"on":{"type":"string","enum":["capacity","transmission","global_adjustment"],"description":"Which cost: `capacity`, `transmission` or Ontario's `global_adjustment`."},"rates":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"description":"The rate, in `currency` per `unit`."},"currency":{"type":"string","enum":["USD","CAD"],"description":"ISO 4217 currency code."},"unit":{"type":"string","enum":["per_kw_month","per_kw_year","per_mw_day","per_mw_month","per_mw_season","per_mw_year","per_kwh","per_mwh"],"description":"What it is charged or paid per: `per_kw_month` is per kW of the determinant each month."},"from":{"type":"string","format":"date","description":"First day the rate applies."},"to":{"type":"string","format":"date","description":"Last day, inclusive; absent while in force."},"appliesTo":{"type":"string","minLength":1,"description":"Who it applies to, where the program has several rates."},"fromEvents":{"type":"integer","minimum":1,"description":"Applies once a season has this many events."},"sourceIds":{"type":"array","items":{"type":"string","minLength":1},"description":"Research registry ids (docs/research/sources.json)."},"basis":{"type":"string","minLength":1,"description":"How the number was derived, when no registry document states it."}},"required":["amount","currency","unit","from","sourceIds"]},"minItems":1,"description":"The published charge per unit of the determinant, by period."}},"required":["kind","on"]},{"type":"object","properties":{"kind":{"type":"string","enum":["payment"],"description":"Paid to deliver relief on declared events."},"reservation":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"description":"The rate, in `currency` per `unit`."},"currency":{"type":"string","enum":["USD","CAD"],"description":"ISO 4217 currency code."},"unit":{"type":"string","enum":["per_kw_month","per_kw_year","per_mw_day","per_mw_month","per_mw_season","per_mw_year","per_kwh","per_mwh"],"description":"What it is charged or paid per: `per_kw_month` is per kW of the determinant each month."},"from":{"type":"string","format":"date","description":"First day the rate applies."},"to":{"type":"string","format":"date","description":"Last day, inclusive; absent while in force."},"appliesTo":{"type":"string","minLength":1,"description":"Who it applies to, where the program has several rates."},"fromEvents":{"type":"integer","minimum":1,"description":"Applies once a season has this many events."},"sourceIds":{"type":"array","items":{"type":"string","minLength":1},"description":"Research registry ids (docs/research/sources.json)."},"basis":{"type":"string","minLength":1,"description":"How the number was derived, when no registry document states it."}},"required":["amount","currency","unit","from","sourceIds"]},"minItems":1,"description":"Paid per unit enrolled, by period."},"performance":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"description":"The rate, in `currency` per `unit`."},"currency":{"type":"string","enum":["USD","CAD"],"description":"ISO 4217 currency code."},"unit":{"type":"string","enum":["per_kw_month","per_kw_year","per_mw_day","per_mw_month","per_mw_season","per_mw_year","per_kwh","per_mwh"],"description":"What it is charged or paid per: `per_kw_month` is per kW of the determinant each month."},"from":{"type":"string","format":"date","description":"First day the rate applies."},"to":{"type":"string","format":"date","description":"Last day, inclusive; absent while in force."},"appliesTo":{"type":"string","minLength":1,"description":"Who it applies to, where the program has several rates."},"fromEvents":{"type":"integer","minimum":1,"description":"Applies once a season has this many events."},"sourceIds":{"type":"array","items":{"type":"string","minLength":1},"description":"Research registry ids (docs/research/sources.json)."},"basis":{"type":"string","minLength":1,"description":"How the number was derived, when no registry document states it."}},"required":["amount","currency","unit","from","sourceIds"]},"minItems":1,"description":"Paid per unit delivered in an event, by period."},"sourceIds":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"description":"Research registry ids (docs/research/sources.json)."}},"required":["kind","sourceIds"]},{"type":"object","properties":{"kind":{"type":"string","enum":["none"],"description":"Nothing settles on it."}},"required":["kind"]}],"description":"What the outcome costs or pays."},"action":{"type":"string","description":"What a likely day asks: curtail, be ready to deliver, or informational."},"notice":{"type":["string","null"],"description":"Why this is not a billing peak; null for one."},"proxy":{"type":["string","null"],"description":"What the forecast load stands in for; null when it is the load that settles."}},"required":["consequence","action","notice","proxy"]},"ruleDetail":{"type":["object","null"],"properties":{"bills":{"type":"string","description":"How the charge bills: who pays, which hour counts, when the bill comes."},"forecast":{"type":"string","description":"What we forecast, and where it is not the billed load, why."},"approximations":{"type":"array","items":{"type":"string"},"description":"Where the forecast simplifies, and why. At most three."},"documents":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string"},"publisher":{"type":"string"},"url":{"type":"string","format":"uri"},"section":{"type":"string","description":"The part of the document the rule rests on."},"edition":{"type":["string","null"],"description":"The version or effective date, as the publisher states it."},"role":{"type":["string","null"],"description":"What it is for: `The rule`, `The official hour`, `Our load data`."}},"required":["title","publisher","url","section","edition","role"],"description":"A document the program rests on."},"description":"The rule, the official outcome and the data we read."},"checkedOn":{"type":"string","format":"date","description":"When the documents were last read."}},"required":["bills","forecast","approximations","documents","checkedOn"],"description":"The program explained, with the documents it rests on."},"zones":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"}},"required":["key","label"]},"description":"The zones a zonal program covers."},"calendar":{"type":"object","properties":{"year":{"type":"integer"},"rule":{"type":"string","description":"Which days count: `Weekdays count; weekends and NERC holidays do not.`"},"holidays":{"type":"array","items":{"type":"string","format":"date"}},"windows":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"`{programId}:{YYYY-MM}` for a monthly window, `{programId}:{YYYY}` for a season or year."},"label":{"type":"string","description":"As the site names it: `August 2026`, `Jul–Aug 2026`."},"start":{"type":"string","format":"date","description":"The window's first day, a local date."},"end":{"type":"string","format":"date","description":"The window's last day, inclusive."},"countingDays":{"type":"array","items":{"type":"string","format":"date"},"description":"The days that count toward the peak: in the window and allowed by the rule."}},"required":["id","label","start","end","countingDays"],"description":"The billing window: the span whose highest peaks set the charge."}}},"required":["year","rule","holidays","windows"],"description":"The program year's windows and the days in each that count."}},"required":["id","name","market","service","measures","rule","tags","window","links","terms","ruleDetail","zones","calendar"],"description":"A program with its rule, terms, documents and calendar."},"Forecast":{"type":"object","properties":{"program":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"Program id, the path segment of every program route."},"name":{"type":"string","description":"Short name, as the site shows it: `ERCOT 4CP`, `NYISO ICAP`."},"market":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z]+$","description":"e.g. \"ercot\", \"ieso\""},"name":{"type":"string","description":"As the site names it: `ERCOT`, `ISO-NE`."}},"required":["id","name"],"description":"The wholesale market the program's grid operator runs."}},"required":["id","name","market"],"description":"Which program a response is about."},"window":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"`{programId}:{YYYY-MM}` for a monthly window, `{programId}:{YYYY}` for a season or year."},"label":{"type":"string","description":"As the site names it: `August 2026`, `Jul–Aug 2026`."},"start":{"type":"string","format":"date","description":"The window's first day, a local date."},"end":{"type":"string","format":"date","description":"The window's last day, inclusive."},"status":{"type":"string","enum":["upcoming","open","settled"],"description":"`open` while its days are still to come or under way; `settled` once its last day has closed."},"peaksCounted":{"type":"integer","minimum":1,"description":"How many of the window's highest peaks count toward the charge: 1 for 4CP's monthly peak, 5 for ICI."}},"required":["id","label","start","end","status","peaksCounted"],"description":"The billing window: the span whose highest peaks set the charge."},"moment":{"type":"object","properties":{"asOf":{"type":"string","format":"date-time","description":"When this forecast was published."},"publicationId":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"The publication's fingerprint: the prefix of every scored claim's id on the ledger, so the forecast can be checked against the record."},"provenance":{"type":"string","enum":["live","replayed","sample"],"description":"Where the numbers come from: `live`, published as it happened; `replayed`, rebuilt on past data as if live, for evaluation; `sample`, synthetic demonstration data. Only `live` is for dispatch."},"model":{"type":"string","description":"Model version."},"nextUpdateAfter":{"type":["string","null"],"format":"date-time","description":"The next scheduled publication; null for a settled window."},"inputs":{"type":"object","properties":{"loadThrough":{"type":["string","null"],"format":"date-time","description":"End of the last metered interval it saw."},"operatorForecastIssuedAt":{"type":["string","null"],"format":"date-time","description":"When the grid operator's load forecast it read was issued; null when it had none."},"weatherForecastIssuedAt":{"type":["string","null"],"format":"date-time","description":"When the weather forecast it read was issued; null when it had none."}},"required":["loadThrough","operatorForecastIssuedAt","weatherForecastIssuedAt"],"description":"How recent its inputs were: a recent `asOf` does not imply recent inputs."}},"required":["asOf","publicationId","provenance","model","nextUpdateAfter","inputs"],"description":"When the forecast was made, and from what."},"threshold":{"type":["number","null"],"exclusiveMinimum":0,"maximum":1,"description":"The chance at or above which a day counts as a call. Echoed back; null when the request set none."},"decision":{"type":["object","null"],"properties":{"rule":{"type":"string","enum":["threshold","budget"],"description":"`threshold`: a day is called when its chance is at or above the threshold, the rule of a site that can curtail as often as it pays to. `budget`: a day is called at the threshold plus what keeping the call is expected to catch later, the rule of a site with a call budget."},"threshold":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The threshold stated: the cost of one curtailment over the charge it avoids. No day under it is called, whatever the rule."},"per":{"type":["string","null"],"enum":["window","season"],"description":"The period the calls last; null under `threshold`."},"callsLeft":{"type":["integer","null"],"minimum":0,"maximum":366,"description":"The calls in hand for the rest of the period, a call in force counted as used; null under `threshold`."},"keepValue":{"type":["number","null"],"minimum":0,"description":"What the last call in hand is expected to catch if it is kept past today: peaks caught, less the threshold for the call spent. 0 under `threshold`, and with as many calls as days left. Null with no call left."},"thresholdInForce":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance a day has to reach to be called at this publication: `threshold` plus `keepValue`. Null with no call left, when no day is called."}},"required":["rule","threshold","per","callsLeft","keepValue","thresholdInForce"],"description":"How each day's `call` is decided at this publication. Null when the request set no threshold."},"summary":{"type":"string","description":"The forecast in one sentence, as the page's headline reads."},"today":{"type":["object","null"],"properties":{"date":{"type":"string","format":"date","description":"Today, the program's local date."},"open":{"type":"boolean","description":"Today's peak hours are still ahead. False once they have passed."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"The chance today sets the peak (ends among the counted peaks)."},"call":{"type":["boolean","null"],"description":"The chance is at or above the threshold in force (`decision`): `threshold` itself, unless the request stated calls left. Null when the request set no threshold."},"loadSoFarMw":{"type":["number","null"],"description":"Today's highest metered load so far."},"forecastPeakMw":{"type":"number","description":"Today's expected peak load."},"forecastSdMw":{"type":"number","minimum":0,"description":"Its standard deviation."},"operatorForecastMw":{"type":["number","null"],"description":"The grid operator's own forecast of today's peak."},"likelyHours":{"type":["object","null"],"properties":{"firstHourEnding":{"type":"string","format":"date-time","description":"The end of the run's first hour, in the program's local time."},"lastHourEnding":{"type":"string","format":"date-time","description":"The end of its last hour; the same as the first for a single hour."}},"required":["firstHourEnding","lastHourEnding"],"description":"The run of hours most likely to hold today's highest load still to come, the likelier one when the chance splits between two parts of the day; null once they have passed."},"otherLikelyHours":{"type":["object","null"],"properties":{"firstHourEnding":{"type":"string","format":"date-time","description":"The end of the run's first hour, in the program's local time."},"lastHourEnding":{"type":"string","format":"date-time","description":"The end of its last hour; the same as the first for a single hour."}},"required":["firstHourEnding","lastHourEnding"],"description":"The next likeliest run of hours still to come, when today's chance splits and it holds at least a fifth of it: the hours a curtailment on `likelyHours` alone would leave exposed. Null while the chance gathers in one run."},"hours":{"type":"array","items":{"type":"object","properties":{"hourEnding":{"type":"string","format":"date-time","description":"The end of the hour, in the program's local time: 18:00 is 17:00–18:00."},"operatorMw":{"type":["number","null"],"description":"The grid operator's forecast load for the hour, whole MW, from the issues in force when the forecast was published."},"forecastMw":{"type":["number","null"],"description":"The load the forecast expects in the hour, whole MW: the operator's moved by the forecast's correction. The day's highest of these sits below its `forecastPeakMw`, the expected peak, by what each hour's own error adds to the highest of them."},"chanceDayPeak":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance this hour holds the day's highest load, whatever the day's size. A day's hours sum to 1."},"chance":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance this hour sets the peak: the day's `chance` shared by the hour that holds the day's highest load. A day's hours sum to its `chance`."}},"required":["hourEnding","operatorMw","forecastMw","chanceDayPeak","chance"],"description":"One hour of a day: its load as the operator and the forecast expect it, and its chance of setting the peak."},"description":"The day's hours in order. Today's include the hours already past, which have no chance of setting the peak unless the highest load so far came in one of them. A value is null where the forecast had none, beyond the operator's horizon or without a peak-hour profile."}},"required":["date","open","chance","call","loadSoFarMw","forecastPeakMw","forecastSdMw","operatorForecastMw","likelyHours","otherLikelyHours","hours"],"description":"Null when today is outside the window, and for an event program: its days are declared the evening before, so by the day itself the call is a fact and the forecast starts tomorrow."},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","description":"The day, a local date."},"dayType":{"type":"string","enum":["weekday","saturday","sunday","holiday"],"description":"Weekday, Saturday, Sunday or a holiday, as the program's rule reads days."},"counts":{"type":"boolean","description":"The rule counts this day (a weekday, not a holiday, when it says so)."},"daysAhead":{"type":"integer","minimum":0,"description":"Days after today; 0 for an earlier day still open because its load has not come in yet."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"The chance this day sets the peak (or, for an event program, that an event is called)."},"call":{"type":["boolean","null"],"description":"The chance is at or above the threshold in force (`decision`): `threshold` itself, unless the request stated calls left. Null when the request set no threshold."},"forecastPeakMw":{"type":"number","description":"The day's expected peak load, MW."},"forecastSdMw":{"type":"number","minimum":0,"description":"Its standard deviation, MW."},"operatorForecastMw":{"type":["number","null"],"description":"The grid operator's own forecast of the day's peak, MW; null beyond its horizon."},"likelyHours":{"type":["object","null"],"properties":{"firstHourEnding":{"type":"string","format":"date-time","description":"The end of the run's first hour, in the program's local time."},"lastHourEnding":{"type":"string","format":"date-time","description":"The end of its last hour; the same as the first for a single hour."}},"required":["firstHourEnding","lastHourEnding"],"description":"The run of hours most likely to hold the day's highest load, the likelier one when the chance splits between two parts of the day; null without a peak-hour profile."},"otherLikelyHours":{"type":["object","null"],"properties":{"firstHourEnding":{"type":"string","format":"date-time","description":"The end of the run's first hour, in the program's local time."},"lastHourEnding":{"type":"string","format":"date-time","description":"The end of its last hour; the same as the first for a single hour."}},"required":["firstHourEnding","lastHourEnding"],"description":"The next likeliest run of hours, when the day's chance splits and it holds at least a fifth of it. Null while the chance gathers in one run."},"hours":{"type":"array","items":{"type":"object","properties":{"hourEnding":{"type":"string","format":"date-time","description":"The end of the hour, in the program's local time: 18:00 is 17:00–18:00."},"operatorMw":{"type":["number","null"],"description":"The grid operator's forecast load for the hour, whole MW, from the issues in force when the forecast was published."},"forecastMw":{"type":["number","null"],"description":"The load the forecast expects in the hour, whole MW: the operator's moved by the forecast's correction. The day's highest of these sits below its `forecastPeakMw`, the expected peak, by what each hour's own error adds to the highest of them."},"chanceDayPeak":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance this hour holds the day's highest load, whatever the day's size. A day's hours sum to 1."},"chance":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance this hour sets the peak: the day's `chance` shared by the hour that holds the day's highest load. A day's hours sum to its `chance`."}},"required":["hourEnding","operatorMw","forecastMw","chanceDayPeak","chance"],"description":"One hour of a day: its load as the operator and the forecast expect it, and its chance of setting the peak."},"description":"The day's hours in order. Today's include the hours already past, which have no chance of setting the peak unless the highest load so far came in one of them. A value is null where the forecast had none, beyond the operator's horizon or without a peak-hour profile."},"highTempF":{"type":["number","null"],"description":"The forecast daily high, population-weighted."},"basis":{"type":"string","enum":["operator","weather","history"],"description":"What a day's forecast rests on: the grid operator's own load forecast (the coming week), the weather forecast (up to about two weeks), or history for the date (beyond)."}},"required":["date","dayType","counts","daysAhead","chance","call","forecastPeakMw","forecastSdMw","operatorForecastMw","likelyHours","otherLikelyHours","hours","highTempF","basis"],"description":"A day still to come, or an earlier day still open until its load comes in."},"description":"Every remaining day of the window, nearest first, after any earlier day still open because its load has not come in yet."},"currentPeak":{"type":["object","null"],"properties":{"rank":{"type":"integer","minimum":1,"description":"1 is the window's highest so far."},"date":{"type":"string","format":"date","description":"The day that set it, a local date."},"hourEnding":{"type":"string","format":"date-time","description":"End of the settlement interval that set it."},"loadMw":{"type":"number","description":"Its load, MW, as metered."},"chanceHolds":{"type":"number","minimum":0,"maximum":1,"description":"The chance it is still among the counted peaks when the window closes."},"pending":{"type":"boolean","description":"True for a pending peak: its day's load is read but not yet closed in the record, because the operator has not published the rest of the day or never posted one of its hours, so `loadMw` is the highest read so far, the least the day's peak can be. The forecast counts it at once. False once the day is closed."}},"required":["rank","date","hourEnding","loadMw","chanceHolds","pending"],"description":"The lowest of the counted standing peaks: what a later day must beat to count. Null before any day has closed."},"standingPeaks":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer","minimum":1,"description":"1 is the window's highest so far."},"date":{"type":"string","format":"date","description":"The day that set it, a local date."},"hourEnding":{"type":"string","format":"date-time","description":"End of the settlement interval that set it."},"loadMw":{"type":"number","description":"Its load, MW, as metered."},"chanceHolds":{"type":"number","minimum":0,"maximum":1,"description":"The chance it is still among the counted peaks when the window closes."},"pending":{"type":"boolean","description":"True for a pending peak: its day's load is read but not yet closed in the record, because the operator has not published the rest of the day or never posted one of its hours, so `loadMw` is the highest read so far, the least the day's peak can be. The forecast counts it at once. False once the day is closed."}},"required":["rank","date","hourEnding","loadMw","chanceHolds","pending"],"description":"A peak already set in the window."},"description":"Every standing peak, highest first."},"outlook":{"type":"object","properties":{"standingHolds":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance the current peak holds to the window's end: no later day, today included, beats it. Null while no peak is set: no counted day of the window is metered yet."},"today":{"type":"number","minimum":0,"maximum":1,"description":"Today's share of the window's counted peaks."},"laterDays":{"type":"number","minimum":0,"description":"Expected counted peaks among the days still to come."},"likeliestDay":{"type":["object","null"],"properties":{"date":{"type":"string","format":"date","description":"A local date."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"A probability, 0 to 1."}},"required":["date","chance"],"description":"The later day most likely to set the peak, with its chance; null when no day is left."},"sentence":{"type":"string","description":"Where the window's peak most likely comes from, in a sentence."}},"required":["standingHolds","today","laterDays","likeliestDay","sentence"],"description":"Where the window's peak will come from: what stands, today, or a later day."},"settled":{"type":["object","null"],"properties":{"peaks":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer","minimum":1,"description":"1 is the window's highest so far."},"date":{"type":"string","format":"date","description":"The day that set it, a local date."},"hourEnding":{"type":"string","format":"date-time","description":"End of the settlement interval that set it."},"loadMw":{"type":"number","description":"Its load, MW, as metered."}},"required":["rank","date","hourEnding","loadMw"],"description":"A peak already set in the window."},"description":"The window's final counted peaks."},"callOnPeakDay":{"type":["object","null"],"properties":{"asOf":{"type":"string","format":"date-time","description":"When the chance was published."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"A probability, 0 to 1."},"outcome":{"type":["string","null"],"enum":["caught","missed","rightly_skipped","called_anyway"],"description":"A day's call judged by what happened: `caught`, called and it set the peak; `missed`, not called but it set the peak; `rightly_skipped`, not called and it did not; `called_anyway`, called but it did not."}},"required":["asOf","chance","outcome"],"description":"The highest peak day's call, judged at `threshold` (outcome null without one)."}},"required":["peaks","callOnPeakDay"],"description":"Set once the window has closed."},"coverageGaps":{"type":"array","items":{"type":"object","properties":{"hourEnding":{"type":"string","format":"date-time","description":"The end of the unpublished interval, in the program's local time."},"couldSetPeak":{"type":"boolean","description":"Its load might have beaten the current peak, so the peak may not stand until it comes in."}},"required":["hourEnding","couldSetPeak"]},"description":"Metered intervals the operator has not published yet; `couldSetPeak` when one might hide a peak."}},"required":["program","window","moment","threshold","decision","summary","today","days","currentPeak","standingPeaks","outlook","settled","coverageGaps"],"description":"A program's forecast, as its page shows it."},"ForecastDetail":{"type":"object","properties":{"program":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"Program id, the path segment of every program route."},"name":{"type":"string","description":"Short name, as the site shows it: `ERCOT 4CP`, `NYISO ICAP`."},"market":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z]+$","description":"e.g. \"ercot\", \"ieso\""},"name":{"type":"string","description":"As the site names it: `ERCOT`, `ISO-NE`."}},"required":["id","name"],"description":"The wholesale market the program's grid operator runs."}},"required":["id","name","market"],"description":"Which program a response is about."},"window":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"`{programId}:{YYYY-MM}` for a monthly window, `{programId}:{YYYY}` for a season or year."},"label":{"type":"string","description":"As the site names it: `August 2026`, `Jul–Aug 2026`."},"start":{"type":"string","format":"date","description":"The window's first day, a local date."},"end":{"type":"string","format":"date","description":"The window's last day, inclusive."},"status":{"type":"string","enum":["upcoming","open","settled"],"description":"`open` while its days are still to come or under way; `settled` once its last day has closed."},"peaksCounted":{"type":"integer","minimum":1,"description":"How many of the window's highest peaks count toward the charge: 1 for 4CP's monthly peak, 5 for ICI."}},"required":["id","label","start","end","status","peaksCounted"],"description":"The billing window: the span whose highest peaks set the charge."},"moment":{"type":"object","properties":{"asOf":{"type":"string","format":"date-time","description":"When this forecast was published."},"publicationId":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"The publication's fingerprint: the prefix of every scored claim's id on the ledger, so the forecast can be checked against the record."},"provenance":{"type":"string","enum":["live","replayed","sample"],"description":"Where the numbers come from: `live`, published as it happened; `replayed`, rebuilt on past data as if live, for evaluation; `sample`, synthetic demonstration data. Only `live` is for dispatch."},"model":{"type":"string","description":"Model version."},"nextUpdateAfter":{"type":["string","null"],"format":"date-time","description":"The next scheduled publication; null for a settled window."},"inputs":{"type":"object","properties":{"loadThrough":{"type":["string","null"],"format":"date-time","description":"End of the last metered interval it saw."},"operatorForecastIssuedAt":{"type":["string","null"],"format":"date-time","description":"When the grid operator's load forecast it read was issued; null when it had none."},"weatherForecastIssuedAt":{"type":["string","null"],"format":"date-time","description":"When the weather forecast it read was issued; null when it had none."}},"required":["loadThrough","operatorForecastIssuedAt","weatherForecastIssuedAt"],"description":"How recent its inputs were: a recent `asOf` does not imply recent inputs."}},"required":["asOf","publicationId","provenance","model","nextUpdateAfter","inputs"],"description":"When the forecast was made, and from what."},"threshold":{"type":["number","null"],"exclusiveMinimum":0,"maximum":1,"description":"The chance at or above which a day counts as a call. Echoed back; null when the request set none."},"decision":{"type":["object","null"],"properties":{"rule":{"type":"string","enum":["threshold","budget"],"description":"`threshold`: a day is called when its chance is at or above the threshold, the rule of a site that can curtail as often as it pays to. `budget`: a day is called at the threshold plus what keeping the call is expected to catch later, the rule of a site with a call budget."},"threshold":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The threshold stated: the cost of one curtailment over the charge it avoids. No day under it is called, whatever the rule."},"per":{"type":["string","null"],"enum":["window","season"],"description":"The period the calls last; null under `threshold`."},"callsLeft":{"type":["integer","null"],"minimum":0,"maximum":366,"description":"The calls in hand for the rest of the period, a call in force counted as used; null under `threshold`."},"keepValue":{"type":["number","null"],"minimum":0,"description":"What the last call in hand is expected to catch if it is kept past today: peaks caught, less the threshold for the call spent. 0 under `threshold`, and with as many calls as days left. Null with no call left."},"thresholdInForce":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance a day has to reach to be called at this publication: `threshold` plus `keepValue`. Null with no call left, when no day is called."}},"required":["rule","threshold","per","callsLeft","keepValue","thresholdInForce"],"description":"How each day's `call` is decided at this publication. Null when the request set no threshold."},"summary":{"type":"string","description":"The forecast in one sentence, as the page's headline reads."},"today":{"type":["object","null"],"properties":{"date":{"type":"string","format":"date","description":"Today, the program's local date."},"open":{"type":"boolean","description":"Today's peak hours are still ahead. False once they have passed."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"The chance today sets the peak (ends among the counted peaks)."},"call":{"type":["boolean","null"],"description":"The chance is at or above the threshold in force (`decision`): `threshold` itself, unless the request stated calls left. Null when the request set no threshold."},"loadSoFarMw":{"type":["number","null"],"description":"Today's highest metered load so far."},"forecastPeakMw":{"type":"number","description":"Today's expected peak load."},"forecastSdMw":{"type":"number","minimum":0,"description":"Its standard deviation."},"operatorForecastMw":{"type":["number","null"],"description":"The grid operator's own forecast of today's peak."},"likelyHours":{"type":["object","null"],"properties":{"firstHourEnding":{"type":"string","format":"date-time","description":"The end of the run's first hour, in the program's local time."},"lastHourEnding":{"type":"string","format":"date-time","description":"The end of its last hour; the same as the first for a single hour."}},"required":["firstHourEnding","lastHourEnding"],"description":"The run of hours most likely to hold today's highest load still to come, the likelier one when the chance splits between two parts of the day; null once they have passed."},"otherLikelyHours":{"type":["object","null"],"properties":{"firstHourEnding":{"type":"string","format":"date-time","description":"The end of the run's first hour, in the program's local time."},"lastHourEnding":{"type":"string","format":"date-time","description":"The end of its last hour; the same as the first for a single hour."}},"required":["firstHourEnding","lastHourEnding"],"description":"The next likeliest run of hours still to come, when today's chance splits and it holds at least a fifth of it: the hours a curtailment on `likelyHours` alone would leave exposed. Null while the chance gathers in one run."},"hours":{"type":"array","items":{"type":"object","properties":{"hourEnding":{"type":"string","format":"date-time","description":"The end of the hour, in the program's local time: 18:00 is 17:00–18:00."},"operatorMw":{"type":["number","null"],"description":"The grid operator's forecast load for the hour, whole MW, from the issues in force when the forecast was published."},"forecastMw":{"type":["number","null"],"description":"The load the forecast expects in the hour, whole MW: the operator's moved by the forecast's correction. The day's highest of these sits below its `forecastPeakMw`, the expected peak, by what each hour's own error adds to the highest of them."},"chanceDayPeak":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance this hour holds the day's highest load, whatever the day's size. A day's hours sum to 1."},"chance":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance this hour sets the peak: the day's `chance` shared by the hour that holds the day's highest load. A day's hours sum to its `chance`."}},"required":["hourEnding","operatorMw","forecastMw","chanceDayPeak","chance"],"description":"One hour of a day: its load as the operator and the forecast expect it, and its chance of setting the peak."},"description":"The day's hours in order. Today's include the hours already past, which have no chance of setting the peak unless the highest load so far came in one of them. A value is null where the forecast had none, beyond the operator's horizon or without a peak-hour profile."}},"required":["date","open","chance","call","loadSoFarMw","forecastPeakMw","forecastSdMw","operatorForecastMw","likelyHours","otherLikelyHours","hours"],"description":"Null when today is outside the window, and for an event program: its days are declared the evening before, so by the day itself the call is a fact and the forecast starts tomorrow."},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","description":"The day, a local date."},"dayType":{"type":"string","enum":["weekday","saturday","sunday","holiday"],"description":"Weekday, Saturday, Sunday or a holiday, as the program's rule reads days."},"counts":{"type":"boolean","description":"The rule counts this day (a weekday, not a holiday, when it says so)."},"daysAhead":{"type":"integer","minimum":0,"description":"Days after today; 0 for an earlier day still open because its load has not come in yet."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"The chance this day sets the peak (or, for an event program, that an event is called)."},"call":{"type":["boolean","null"],"description":"The chance is at or above the threshold in force (`decision`): `threshold` itself, unless the request stated calls left. Null when the request set no threshold."},"forecastPeakMw":{"type":"number","description":"The day's expected peak load, MW."},"forecastSdMw":{"type":"number","minimum":0,"description":"Its standard deviation, MW."},"operatorForecastMw":{"type":["number","null"],"description":"The grid operator's own forecast of the day's peak, MW; null beyond its horizon."},"likelyHours":{"type":["object","null"],"properties":{"firstHourEnding":{"type":"string","format":"date-time","description":"The end of the run's first hour, in the program's local time."},"lastHourEnding":{"type":"string","format":"date-time","description":"The end of its last hour; the same as the first for a single hour."}},"required":["firstHourEnding","lastHourEnding"],"description":"The run of hours most likely to hold the day's highest load, the likelier one when the chance splits between two parts of the day; null without a peak-hour profile."},"otherLikelyHours":{"type":["object","null"],"properties":{"firstHourEnding":{"type":"string","format":"date-time","description":"The end of the run's first hour, in the program's local time."},"lastHourEnding":{"type":"string","format":"date-time","description":"The end of its last hour; the same as the first for a single hour."}},"required":["firstHourEnding","lastHourEnding"],"description":"The next likeliest run of hours, when the day's chance splits and it holds at least a fifth of it. Null while the chance gathers in one run."},"hours":{"type":"array","items":{"type":"object","properties":{"hourEnding":{"type":"string","format":"date-time","description":"The end of the hour, in the program's local time: 18:00 is 17:00–18:00."},"operatorMw":{"type":["number","null"],"description":"The grid operator's forecast load for the hour, whole MW, from the issues in force when the forecast was published."},"forecastMw":{"type":["number","null"],"description":"The load the forecast expects in the hour, whole MW: the operator's moved by the forecast's correction. The day's highest of these sits below its `forecastPeakMw`, the expected peak, by what each hour's own error adds to the highest of them."},"chanceDayPeak":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance this hour holds the day's highest load, whatever the day's size. A day's hours sum to 1."},"chance":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance this hour sets the peak: the day's `chance` shared by the hour that holds the day's highest load. A day's hours sum to its `chance`."}},"required":["hourEnding","operatorMw","forecastMw","chanceDayPeak","chance"],"description":"One hour of a day: its load as the operator and the forecast expect it, and its chance of setting the peak."},"description":"The day's hours in order. Today's include the hours already past, which have no chance of setting the peak unless the highest load so far came in one of them. A value is null where the forecast had none, beyond the operator's horizon or without a peak-hour profile."},"highTempF":{"type":["number","null"],"description":"The forecast daily high, population-weighted."},"basis":{"type":"string","enum":["operator","weather","history"],"description":"What a day's forecast rests on: the grid operator's own load forecast (the coming week), the weather forecast (up to about two weeks), or history for the date (beyond)."}},"required":["date","dayType","counts","daysAhead","chance","call","forecastPeakMw","forecastSdMw","operatorForecastMw","likelyHours","otherLikelyHours","hours","highTempF","basis"],"description":"A day still to come, or an earlier day still open until its load comes in."},"description":"Every remaining day of the window, nearest first, after any earlier day still open because its load has not come in yet."},"currentPeak":{"type":["object","null"],"properties":{"rank":{"type":"integer","minimum":1,"description":"1 is the window's highest so far."},"date":{"type":"string","format":"date","description":"The day that set it, a local date."},"hourEnding":{"type":"string","format":"date-time","description":"End of the settlement interval that set it."},"loadMw":{"type":"number","description":"Its load, MW, as metered."},"chanceHolds":{"type":"number","minimum":0,"maximum":1,"description":"The chance it is still among the counted peaks when the window closes."},"pending":{"type":"boolean","description":"True for a pending peak: its day's load is read but not yet closed in the record, because the operator has not published the rest of the day or never posted one of its hours, so `loadMw` is the highest read so far, the least the day's peak can be. The forecast counts it at once. False once the day is closed."}},"required":["rank","date","hourEnding","loadMw","chanceHolds","pending"],"description":"The lowest of the counted standing peaks: what a later day must beat to count. Null before any day has closed."},"standingPeaks":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer","minimum":1,"description":"1 is the window's highest so far."},"date":{"type":"string","format":"date","description":"The day that set it, a local date."},"hourEnding":{"type":"string","format":"date-time","description":"End of the settlement interval that set it."},"loadMw":{"type":"number","description":"Its load, MW, as metered."},"chanceHolds":{"type":"number","minimum":0,"maximum":1,"description":"The chance it is still among the counted peaks when the window closes."},"pending":{"type":"boolean","description":"True for a pending peak: its day's load is read but not yet closed in the record, because the operator has not published the rest of the day or never posted one of its hours, so `loadMw` is the highest read so far, the least the day's peak can be. The forecast counts it at once. False once the day is closed."}},"required":["rank","date","hourEnding","loadMw","chanceHolds","pending"],"description":"A peak already set in the window."},"description":"Every standing peak, highest first."},"outlook":{"type":"object","properties":{"standingHolds":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance the current peak holds to the window's end: no later day, today included, beats it. Null while no peak is set: no counted day of the window is metered yet."},"today":{"type":"number","minimum":0,"maximum":1,"description":"Today's share of the window's counted peaks."},"laterDays":{"type":"number","minimum":0,"description":"Expected counted peaks among the days still to come."},"likeliestDay":{"type":["object","null"],"properties":{"date":{"type":"string","format":"date","description":"A local date."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"A probability, 0 to 1."}},"required":["date","chance"],"description":"The later day most likely to set the peak, with its chance; null when no day is left."},"sentence":{"type":"string","description":"Where the window's peak most likely comes from, in a sentence."}},"required":["standingHolds","today","laterDays","likeliestDay","sentence"],"description":"Where the window's peak will come from: what stands, today, or a later day."},"settled":{"type":["object","null"],"properties":{"peaks":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer","minimum":1,"description":"1 is the window's highest so far."},"date":{"type":"string","format":"date","description":"The day that set it, a local date."},"hourEnding":{"type":"string","format":"date-time","description":"End of the settlement interval that set it."},"loadMw":{"type":"number","description":"Its load, MW, as metered."}},"required":["rank","date","hourEnding","loadMw"],"description":"A peak already set in the window."},"description":"The window's final counted peaks."},"callOnPeakDay":{"type":["object","null"],"properties":{"asOf":{"type":"string","format":"date-time","description":"When the chance was published."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"A probability, 0 to 1."},"outcome":{"type":["string","null"],"enum":["caught","missed","rightly_skipped","called_anyway"],"description":"A day's call judged by what happened: `caught`, called and it set the peak; `missed`, not called but it set the peak; `rightly_skipped`, not called and it did not; `called_anyway`, called but it did not."}},"required":["asOf","chance","outcome"],"description":"The highest peak day's call, judged at `threshold` (outcome null without one)."}},"required":["peaks","callOnPeakDay"],"description":"Set once the window has closed."},"coverageGaps":{"type":"array","items":{"type":"object","properties":{"hourEnding":{"type":"string","format":"date-time","description":"The end of the unpublished interval, in the program's local time."},"couldSetPeak":{"type":"boolean","description":"Its load might have beaten the current peak, so the peak may not stand until it comes in."}},"required":["hourEnding","couldSetPeak"]},"description":"Metered intervals the operator has not published yet; `couldSetPeak` when one might hide a peak."},"model":{"type":"object","properties":{"weatherMembers":{"type":"integer","minimum":1,"description":"Weather scenarios each day's range is drawn from."},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date"},"chanceAboveCurrentPeak":{"type":"number","minimum":0,"maximum":1,"description":"The chance this day's peak beats the current peak."},"hazard":{"type":"number","minimum":0,"description":"Its share of the window's remaining risk."},"curtailmentMw":{"type":"number","description":"Load the model expects to be curtailed on this day."},"currentPeakTempF":{"type":["number","null"],"description":"The daily high that would put this day at the current peak."}},"required":["date","chanceAboveCurrentPeak","hazard","curtailmentMw","currentPeakTempF"]}},"peaks":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer","minimum":1},"beatenAtTempF":{"type":"object","properties":{"weekday":{"type":["number","null"]},"saturday":{"type":["number","null"]}},"required":["weekday","saturday"]},"chanceBeatenBy":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","description":"A local date."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"A probability, 0 to 1."}},"required":["date","chance"]}}},"required":["rank","beatenAtTempF","chanceBeatenBy"]}},"parameterBytes":{"type":"integer","minimum":0},"fitVersion":{"type":"string","description":"The version of the fitted parameters the model read."}},"required":["weatherMembers","days","peaks","parameterBytes","fitVersion"],"description":"How the forecast was built: for analysts checking the model."}},"required":["program","window","moment","threshold","decision","summary","today","days","currentPeak","standingPeaks","outlook","settled","coverageGaps","model"],"description":"The forecast with the model's working."},"ForecastHistory":{"type":"object","properties":{"program":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"Program id, the path segment of every program route."},"name":{"type":"string","description":"Short name, as the site shows it: `ERCOT 4CP`, `NYISO ICAP`."},"market":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z]+$","description":"e.g. \"ercot\", \"ieso\""},"name":{"type":"string","description":"As the site names it: `ERCOT`, `ISO-NE`."}},"required":["id","name"],"description":"The wholesale market the program's grid operator runs."}},"required":["id","name","market"],"description":"Which program a response is about."},"window":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"`{programId}:{YYYY-MM}` for a monthly window, `{programId}:{YYYY}` for a season or year."},"label":{"type":"string","description":"As the site names it: `August 2026`, `Jul–Aug 2026`."},"start":{"type":"string","format":"date","description":"The window's first day, a local date."},"end":{"type":"string","format":"date","description":"The window's last day, inclusive."},"status":{"type":"string","enum":["upcoming","open","settled"],"description":"`open` while its days are still to come or under way; `settled` once its last day has closed."},"peaksCounted":{"type":"integer","minimum":1,"description":"How many of the window's highest peaks count toward the charge: 1 for 4CP's monthly peak, 5 for ICI."}},"required":["id","label","start","end","status","peaksCounted"],"description":"The billing window: the span whose highest peaks set the charge."},"evenings":{"type":"array","items":{"type":"object","properties":{"asOf":{"type":"string","format":"date-time"},"standingHolds":{"type":"number","minimum":0,"maximum":1,"description":"The chance the current peak, as it stood, held to the end."},"currentPeak":{"type":"object","properties":{"date":{"type":"string","format":"date"},"loadMw":{"type":"number"}},"required":["date","loadMw"]}},"required":["asOf","standingHolds","currentPeak"]}}},"required":["program","window","evenings"],"description":"The chance the peak holds, as published each evening of the window."},"WindowList":{"type":"object","properties":{"program":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"Program id, the path segment of every program route."},"name":{"type":"string","description":"Short name, as the site shows it: `ERCOT 4CP`, `NYISO ICAP`."},"market":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z]+$","description":"e.g. \"ercot\", \"ieso\""},"name":{"type":"string","description":"As the site names it: `ERCOT`, `ISO-NE`."}},"required":["id","name"],"description":"The wholesale market the program's grid operator runs."}},"required":["id","name","market"],"description":"Which program a response is about."},"year":{"type":"integer"},"threshold":{"type":["number","null"],"exclusiveMinimum":0,"maximum":1,"description":"The chance at or above which a day counts as a call. Echoed back; null when the request set none."},"windows":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"`{programId}:{YYYY-MM}` for a monthly window, `{programId}:{YYYY}` for a season or year."},"label":{"type":"string","description":"As the site names it: `August 2026`, `Jul–Aug 2026`."},"start":{"type":"string","format":"date","description":"The window's first day, a local date."},"end":{"type":"string","format":"date","description":"The window's last day, inclusive."},"status":{"type":"string","enum":["upcoming","open","settled"],"description":"`open` while its days are still to come or under way; `settled` once its last day has closed."},"peaksCounted":{"type":"integer","minimum":1,"description":"How many of the window's highest peaks count toward the charge: 1 for 4CP's monthly peak, 5 for ICI."},"peaks":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer","minimum":1,"description":"1 is the window's highest so far."},"date":{"type":"string","format":"date","description":"The day that set it, a local date."},"hourEnding":{"type":"string","format":"date-time","description":"End of the settlement interval that set it."},"loadMw":{"type":"number","description":"Its load, MW, as metered."}},"required":["rank","date","hourEnding","loadMw"],"description":"A peak already set in the window."},"description":"Final peaks once settled, else the standing ones."},"runnersUp":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date"},"loadMw":{"type":"number"},"shortOfPeakMw":{"type":"number"}},"required":["date","loadMw","shortOfPeakMw"]},"description":"The days that came closest without counting, closest first."},"calls":{"type":["object","null"],"properties":{"daysCalled":{"type":"integer","minimum":0},"chanceOnPeakDay":{"type":["number","null"],"minimum":0,"maximum":1,"description":"A probability, 0 to 1."},"peakOutcome":{"type":["string","null"],"enum":["caught","missed","rightly_skipped","called_anyway"],"description":"A day's call judged by what happened: `caught`, called and it set the peak; `missed`, not called but it set the peak; `rightly_skipped`, not called and it did not; `called_anyway`, called but it did not."}},"required":["daysCalled","chanceOnPeakDay","peakOutcome"],"description":"The window at `threshold`: days called and how the peak day was called. Null without a threshold."}},"required":["id","label","start","end","status","peaksCounted","peaks","runnersUp","calls"],"description":"One window's peaks and calls."}}},"required":["program","year","threshold","windows"],"description":"A program year's windows."},"DayResult":{"type":"object","properties":{"program":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"Program id, the path segment of every program route."},"name":{"type":"string","description":"Short name, as the site shows it: `ERCOT 4CP`, `NYISO ICAP`."},"market":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z]+$","description":"e.g. \"ercot\", \"ieso\""},"name":{"type":"string","description":"As the site names it: `ERCOT`, `ISO-NE`."}},"required":["id","name"],"description":"The wholesale market the program's grid operator runs."}},"required":["id","name","market"],"description":"Which program a response is about."},"date":{"type":"string","format":"date"},"window":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"`{programId}:{YYYY-MM}` for a monthly window, `{programId}:{YYYY}` for a season or year."},"label":{"type":"string","description":"As the site names it: `August 2026`, `Jul–Aug 2026`."},"start":{"type":"string","format":"date","description":"The window's first day, a local date."},"end":{"type":"string","format":"date","description":"The window's last day, inclusive."},"status":{"type":"string","enum":["upcoming","open","settled"],"description":"`open` while its days are still to come or under way; `settled` once its last day has closed."},"peaksCounted":{"type":"integer","minimum":1,"description":"How many of the window's highest peaks count toward the charge: 1 for 4CP's monthly peak, 5 for ICI."}},"required":["id","label","start","end","status","peaksCounted"],"description":"The billing window: the span whose highest peaks set the charge."},"counts":{"type":"boolean"},"threshold":{"type":["number","null"],"exclusiveMinimum":0,"maximum":1,"description":"The chance at or above which a day counts as a call. Echoed back; null when the request set none."},"eveningBefore":{"type":["object","null"],"properties":{"asOf":{"type":"string","format":"date-time","description":"When the chance was published."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"A probability, 0 to 1."}},"required":["asOf","chance"],"description":"The chance the evening before."},"call":{"type":["object","null"],"properties":{"asOf":{"type":"string","format":"date-time","description":"When the chance was published."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"A probability, 0 to 1."}},"required":["asOf","chance"],"description":"The day's graded call: the last publication before its load reached the current peak."},"peakMw":{"type":["number","null"],"description":"The day's metered peak."},"setThePeak":{"type":["boolean","null"],"description":"It counts among the window's final peaks; null while the window is open."},"outcome":{"type":["string","null"],"enum":["caught","missed","rightly_skipped","called_anyway"],"description":"Null until the window settles or without a threshold."}},"required":["program","date","window","counts","threshold","eveningBefore","call","peakMw","setThePeak","outcome"],"description":"A closed day: what was said, and what happened."},"Weather":{"type":"object","properties":{"program":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"Program id, the path segment of every program route."},"name":{"type":"string","description":"Short name, as the site shows it: `ERCOT 4CP`, `NYISO ICAP`."},"market":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z]+$","description":"e.g. \"ercot\", \"ieso\""},"name":{"type":"string","description":"As the site names it: `ERCOT`, `ISO-NE`."}},"required":["id","name"],"description":"The wholesale market the program's grid operator runs."}},"required":["id","name","market"],"description":"Which program a response is about."},"window":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"`{programId}:{YYYY-MM}` for a monthly window, `{programId}:{YYYY}` for a season or year."},"label":{"type":"string","description":"As the site names it: `August 2026`, `Jul–Aug 2026`."},"start":{"type":"string","format":"date","description":"The window's first day, a local date."},"end":{"type":"string","format":"date","description":"The window's last day, inclusive."},"status":{"type":"string","enum":["upcoming","open","settled"],"description":"`open` while its days are still to come or under way; `settled` once its last day has closed."},"peaksCounted":{"type":"integer","minimum":1,"description":"How many of the window's highest peaks count toward the charge: 1 for 4CP's monthly peak, 5 for ICI."}},"required":["id","label","start","end","status","peaksCounted"],"description":"The billing window: the span whose highest peaks set the charge."},"observed":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date"},"highF":{"type":"number"},"lowF":{"type":["number","null"]}},"required":["date","highF","lowF"]}},"normals":{"type":"array","items":{"type":"object","properties":{"meanF":{"type":"number"},"sdF":{"type":"number","minimum":0},"date":{"type":"string","format":"date"},"low":{"type":["object","null"],"properties":{"meanF":{"type":"number"},"sdF":{"type":"number","minimum":0}},"required":["meanF","sdF"]}},"required":["meanF","sdF","date","low"],"description":"A day's population-weighted high (mean and spread across the weather scenarios), and its low."},"description":"Each window day's normal, from history."},"forecasts":{"type":"array","items":{"type":"object","properties":{"issuedAt":{"type":"string","format":"date-time"},"days":{"type":"array","items":{"type":"object","properties":{"meanF":{"type":"number"},"sdF":{"type":"number","minimum":0},"date":{"type":"string","format":"date"},"low":{"type":["object","null"],"properties":{"meanF":{"type":"number"},"sdF":{"type":"number","minimum":0}},"required":["meanF","sdF"]}},"required":["meanF","sdF","date","low"],"description":"A day's population-weighted high (mean and spread across the weather scenarios), and its low."}}},"required":["issuedAt","days"]},"description":"Each weather forecast the window's publications used, its highs calibrated as the model reads them."},"forecastUsedOn":{"type":"object","additionalProperties":{"type":"integer","minimum":0},"description":"For each day of the window, the index into `forecasts` that day's publication used."}},"required":["program","window","observed","normals","forecasts","forecastUsedOn"],"description":"The window's weather: observed, forecast and normal highs and lows."},"ProgramRecord":{"type":"object","properties":{"program":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"Program id, the path segment of every program route."},"name":{"type":"string","description":"Short name, as the site shows it: `ERCOT 4CP`, `NYISO ICAP`."},"market":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z]+$","description":"e.g. \"ercot\", \"ieso\""},"name":{"type":"string","description":"As the site names it: `ERCOT`, `ISO-NE`."}},"required":["id","name"],"description":"The wholesale market the program's grid operator runs."}},"required":["id","name","market"],"description":"Which program a response is about."},"provenance":{"type":"string","enum":["live","replayed","sample"],"description":"Where the numbers come from: `live`, published as it happened; `replayed`, rebuilt on past data as if live, for evaluation; `sample`, synthetic demonstration data. Only `live` is for dispatch."},"model":{"type":"string","description":"The model version this record scores."},"modelVersions":{"type":"array","items":{"type":"string"},"description":"Every model version scored on the program's record, newest first."},"season":{"type":"string","description":"A season, or `all` for every season together."},"seasons":{"type":"array","items":{"type":"object","properties":{"season":{"type":"string"},"coverage":{"type":"string","enum":["complete","partial","open"],"description":"`complete`, every day scored; `partial`, the record starts mid-season; `open`, the season is still running."},"from":{"type":["string","null"],"format":"date"},"to":{"type":["string","null"],"format":"date"}},"required":["season","coverage","from","to"]}},"threshold":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The chance at or above which a day counts as a call. Echoed back; null when the request set none."},"days":{"type":"integer","minimum":0,"description":"Scored days."},"peaks":{"type":"integer","minimum":0},"summary":{"type":"string","description":"The record at the threshold in one sentence."},"tinypeak":{"type":"object","properties":{"daysCalled":{"type":"integer","minimum":0},"peaksCaught":{"type":"integer","minimum":0},"peaksMissed":{"type":"integer","minimum":0},"calledForNothing":{"type":"integer","minimum":0,"description":"Days called that did not set the peak."}},"required":["daysCalled","peaksCaught","peaksMissed","calledForNothing"],"description":"Calling every day whose chance is at or above `threshold`."},"operator":{"type":["object","null"],"properties":{"daysCalled":{"type":"integer","minimum":0},"peaksCaught":{"type":"integer","minimum":0},"peaksMissed":{"type":"integer","minimum":0},"calledForNothing":{"type":"integer","minimum":0,"description":"Days called that did not set the peak."}},"required":["daysCalled","peaksCaught","peaksMissed","calledForNothing"],"description":"The usual rule: calling every day the grid operator's own forecast was above the current peak. Null where its forecasts were not archived."},"recommended":{"type":["object","null"],"properties":{"threshold":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The chance at or above which a day counts as a call. Echoed back; null when the request set none."},"tinypeak":{"type":"object","properties":{"daysCalled":{"type":"integer","minimum":0},"peaksCaught":{"type":"integer","minimum":0},"peaksMissed":{"type":"integer","minimum":0},"calledForNothing":{"type":"integer","minimum":0,"description":"Days called that did not set the peak."}},"required":["daysCalled","peaksCaught","peaksMissed","calledForNothing"],"description":"Calling at it over every season of the record it was chosen on."},"heldOut":{"type":["object","null"],"properties":{"daysCalled":{"type":"integer","minimum":0},"peaksCaught":{"type":"integer","minimum":0},"peaksMissed":{"type":"integer","minimum":0},"calledForNothing":{"type":"integer","minimum":0,"description":"Days called that did not set the peak."}},"required":["daysCalled","peaksCaught","peaksMissed","calledForNothing"],"description":"Each season called at the threshold the other seasons recommend, pooled: what the rule does on seasons it did not see. Null with fewer than two seasons that hold a peak."}},"required":["threshold","tinypeak","heldOut"],"description":"The threshold the program's record recommends, and `threshold`'s default: the highest whole percent that would have called nine in ten of its settled peaks, read off the newest model's replayed record. Null without a settled peak."},"curve":{"type":"array","items":{"type":"object","properties":{"threshold":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The chance at or above which a day counts as a call. Echoed back; null when the request set none."},"daysCalled":{"type":"integer","minimum":0},"peaksCaught":{"type":"integer","minimum":0}},"required":["threshold","daysCalled","peaksCaught"]},"description":"What each whole-percent threshold from 1% to 60% would have done over the scored days, lowest first: the trade-off a threshold is chosen on."},"budgets":{"type":"array","items":{"type":"object","properties":{"calls":{"type":"integer","minimum":1,"description":"The calls the budget holds in each period."},"per":{"type":"string","enum":["window","season"],"description":"How long a budget's calls last. `window`: each billing window of the program, a month of a 12CP. `season`: every window of the program's year together, a summer or a calendar year. The two are one for a program with a single window a year."},"threshold":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The threshold both rules call at: the program's recommended one where its record has one, else 10%."},"rule":{"type":"object","properties":{"daysCalled":{"type":"integer","minimum":0},"peaksCaught":{"type":"integer","minimum":0},"peaksMissed":{"type":"integer","minimum":0},"calledForNothing":{"type":"integer","minimum":0,"description":"Days called that did not set the peak."}},"required":["daysCalled","peaksCaught","peaksMissed","calledForNothing"],"description":"The budget's rule: a day is called at the threshold plus what keeping the call is expected to catch later in the period, learned from the other seasons only."},"untilOut":{"type":"object","properties":{"daysCalled":{"type":"integer","minimum":0},"peaksCaught":{"type":"integer","minimum":0},"peaksMissed":{"type":"integer","minimum":0},"calledForNothing":{"type":"integer","minimum":0,"description":"Days called that did not set the peak."}},"required":["daysCalled","peaksCaught","peaksMissed","calledForNothing"],"description":"The threshold until out: every day at or above the threshold, until the period's calls are spent."}},"required":["calls","per","threshold","rule","untilOut"]},"description":"The record at a call budget, at one, one and a half, two and three calls for each peak a period counts, each budget's rule against the threshold until out. Every day called spends one call. Empty for an event program and before the record has graded it."},"scores":{"type":"object","properties":{"economicValue":{"type":["number","null"],"description":"The share of a perfect forecast's savings the calls capture, against the better of always or never acting, with acting priced at `threshold` of one peak's charge. 1 perfect, 0 no better, below 0 worse."},"calibrationErrorPoints":{"type":["number","null"],"description":"How far the chances were from how often days then set the peak, in percentage points."},"chanceOnPeakDays":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The average chance given on the days that set the peak."},"chanceOnOtherDays":{"type":["number","null"],"minimum":0,"maximum":1,"description":"A probability, 0 to 1."},"peakRankedHigher":{"type":["number","null"],"minimum":0,"maximum":1,"description":"Of every pairing of a peak day with another, the share where the peak got the higher chance: 0.5 a coin flip, 1 perfect."},"leadTime":{"type":"object","properties":{"flagged":{"type":"integer","minimum":0,"description":"Peaks over the threshold on their day."},"medianDaysAhead":{"type":["number","null"],"description":"How far ahead a flagged peak first crossed and held."},"byDaysAhead":{"type":"array","items":{"type":"object","properties":{"daysAhead":{"type":"integer","minimum":0},"flagged":{"type":"integer","minimum":0}},"required":["daysAhead","flagged"]}}},"required":["flagged","medianDaysAhead","byDaysAhead"]}},"required":["economicValue","calibrationErrorPoints","chanceOnPeakDays","chanceOnOtherDays","peakRankedHigher","leadTime"]},"windows":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"peak":{"type":["object","null"],"properties":{"date":{"type":"string","format":"date"},"loadMw":{"type":["number","null"]},"chance":{"type":["number","null"],"minimum":0,"maximum":1,"description":"A probability, 0 to 1."}},"required":["date","loadMw","chance"]},"outcome":{"type":["string","null"],"enum":["caught","missed","rightly_skipped","called_anyway"],"description":"A day's call judged by what happened: `caught`, called and it set the peak; `missed`, not called but it set the peak; `rightly_skipped`, not called and it did not; `called_anyway`, called but it did not."},"daysCalled":{"type":"integer","minimum":0},"calledForNothing":{"type":"integer","minimum":0}},"required":["id","label","peak","outcome","daysCalled","calledForNothing"]}},"provisional":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string","description":"`Will a given day set the peak?`"},"forecasts":{"type":"integer","minimum":0},"cameTrue":{"type":"number","minimum":0,"maximum":1,"description":"A probability, 0 to 1."},"calibrationErrorPoints":{"type":["number","null"]},"accuracyVsCalendar":{"type":["string","null"],"enum":["more","about the same","less"],"description":"Overall accuracy against treating every day alike."}},"required":["question","forecasts","cameTrue","calibrationErrorPoints","accuracyVsCalendar"]},"description":"The season still running, judged against its closed days only: a first impression."},"ledger":{"type":["object","null"],"properties":{"date":{"type":"string","format":"date"},"root":{"type":"string"},"calls":{"type":"integer","minimum":0}},"required":["date","root","calls"],"description":"The latest day of the published ledger: every scored call is chained into its root."}},"required":["program","provenance","model","modelVersions","season","seasons","threshold","days","peaks","summary","tinypeak","operator","recommended","curve","budgets","scores","windows","provisional","ledger"],"description":"How the forecasts have done, as the evaluation page reads it."},"Status":{"type":"object","properties":{"ok":{"type":"boolean","description":"Every served program current and the scheduler healthy."},"checkedAt":{"type":"string","format":"date-time","description":"When this status was read."},"provenance":{"type":"string","enum":["live","replayed","sample"],"description":"Where the numbers come from: `live`, published as it happened; `replayed`, rebuilt on past data as if live, for evaluation; `sample`, synthetic demonstration data. Only `live` is for dispatch."},"lastRefresh":{"type":["string","null"],"format":"date-time","description":"When the scheduler last completed a refresh; null if it never has."},"programs":{"type":"array","items":{"type":"object","properties":{"program":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"Program id, the path segment of every program route."},"name":{"type":"string","description":"Short name, as the site shows it: `ERCOT 4CP`, `NYISO ICAP`."},"market":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z]+$","description":"e.g. \"ercot\", \"ieso\""},"name":{"type":"string","description":"As the site names it: `ERCOT`, `ISO-NE`."}},"required":["id","name"],"description":"The wholesale market the program's grid operator runs."}},"required":["id","name","market"],"description":"Which program a response is about."},"current":{"type":"boolean","description":"Its latest forecast is no older than its cadence allows, from current inputs."},"window":{"type":["object","null"],"properties":{"id":{"type":"string","minLength":1,"description":"`{programId}:{YYYY-MM}` for a monthly window, `{programId}:{YYYY}` for a season or year."},"label":{"type":"string","description":"As the site names it: `August 2026`, `Jul–Aug 2026`."},"start":{"type":"string","format":"date","description":"The window's first day, a local date."},"end":{"type":"string","format":"date","description":"The window's last day, inclusive."}},"required":["id","label","start","end"],"description":"The window open today; null between windows."},"nextWindowStart":{"type":["string","null"],"format":"date","description":"The next window's first day, while none is open."},"forecastAsOf":{"type":["string","null"],"format":"date-time","description":"When its latest forecast was published; null before the first."},"feeds":{"type":"array","items":{"type":"object","properties":{"feed":{"type":"string","enum":["load","operator_forecast","weather_forecast","temperature"],"description":"Which input: metered load, the operator's load forecast, the weather forecast or observed temperature."},"source":{"type":"string","description":"Who publishes it."},"fetch":{"type":"string","enum":["sample","not_configured","not_started","running","delayed","error","empty","current"],"description":"Whether the last fetch ran on time."},"data":{"type":"string","enum":["sample","missing","stale","current"],"description":"Whether the data itself is recent enough."},"lastSuccessAt":{"type":["string","null"],"format":"date-time","description":"When it last fetched successfully; null if it never has."},"dataThrough":{"type":["string","null"],"description":"The latest data held: an instant, or a date for daily data."}},"required":["feed","source","fetch","data","lastSuccessAt","dataThrough"],"description":"One data feed's health."},"description":"Each input feed it reads."},"completeness":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","description":"A local date."},"load":{"type":"string","enum":["full","partial","missing"],"description":"How much of the day's metered load is in."},"operatorForecast":{"type":"boolean","description":"An operator load forecast covered the day."},"weatherForecast":{"type":"boolean","description":"A weather forecast covered the day."},"temperature":{"type":"boolean","description":"Observed temperatures are in for the day."}},"required":["date","load","operatorForecast","weatherForecast","temperature"]},"description":"The last 30 days, oldest first: which inputs each day has."}},"required":["program","current","window","nextWindowStart","forecastAsOf","feeds","completeness"]},"description":"Every program the site serves."}},"required":["ok","checkedAt","provenance","lastRefresh","programs"],"description":"Whether every program's forecast and data are current: the status page as data."},"WebhookEvent":{"type":"object","properties":{"schemaVersion":{"type":"number","enum":[1],"description":"The payload's shape; a new version would be announced before it is sent."},"id":{"type":"string","description":"This delivery's id, also `x-tinypeak-delivery`. Changes when the payload does: use it to deduplicate."},"eventId":{"type":"string","description":"The event's id: the same across retries and updated payloads."},"type":{"type":"string","enum":["day.ahead","day.called","day.cleared"],"description":"`day.ahead` (warning): a day one to three days out reaches the threshold · `day.called` (call): from the day's morning, its chance reaches the threshold, with its likely peak hours; an event program's day, declared the evening before, is called on its eve. A called day whose likely hours move and hold for an hour sends a call update, also `day.called`, under `hours:{date}` · `day.cleared` (stand-down): a warning or call ends, because the chance stayed below half the threshold for an hour or the day's peak hours passed. A day that comes back after a stand-down is warned or called again once it holds the threshold for an hour, under a numbered key (`call:{date}:2`). Forecast advisories, not operator dispatch instructions."},"signal":{"type":"string","enum":["warning","call","call_update","stand_down"],"description":"What the alert tells a receiver, the one field to branch on. `warning`: a day ahead may be called, plan for it. `call`: the day is called, curtail in its likely hours (also a call back after a stand-down). `call_update`: a standing call's likely hours moved, reschedule to the new ones; the call stands. `stand_down`: a warning or call is off (`standDown` says which and why)."},"standDown":{"type":["object","null"],"properties":{"ends":{"type":"string","enum":["warning","call"],"description":"What it ends: the day's warning, or its call."},"reason":{"type":"string","enum":["fell","passed","spent"],"description":"`fell`: the chance stayed below half the threshold in force when the warning or call was raised, for an hour. `passed`: the day's peak hours passed. `spent`: the last call of the site's budget went to another day, so no call can follow the warning."}},"required":["ends","reason"],"description":"Set on a stand-down alone: what it ends and why."},"test":{"type":"boolean","description":"A test send: never act on it."},"provenance":{"type":"string","enum":["live","replayed","sample"],"description":"Where the numbers come from: `live`, published as it happened; `replayed`, rebuilt on past data as if live, for evaluation; `sample`, synthetic demonstration data. Only `live` is for dispatch."},"subscription":{"type":"object","properties":{"id":{"type":"string","description":"The subscription that sent it: one program, at one set of terms, to one destination."},"threshold":{"type":"number","minimum":0,"maximum":1,"description":"The threshold it states."}},"required":["id","threshold"],"description":"What sent the alert."},"decision":{"type":"object","properties":{"rule":{"type":"string","enum":["threshold","budget"],"description":"`threshold`: a day is called when its chance is at or above the threshold, the rule of a site that can curtail as often as it pays to. `budget`: a day is called at the threshold plus what keeping the call is expected to catch later, the rule of a site with a call budget."},"threshold":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The threshold stated: the cost of one curtailment over the charge it avoids. No day under it is called, whatever the rule."},"per":{"type":["string","null"],"enum":["window","season"],"description":"The period the calls last; null under `threshold`."},"callsLeft":{"type":["integer","null"],"minimum":0,"maximum":366,"description":"The calls in hand for the rest of the period, a call in force counted as used; null under `threshold`."},"keepValue":{"type":["number","null"],"minimum":0,"description":"What the last call in hand is expected to catch if it is kept past today: peaks caught, less the threshold for the call spent. 0 under `threshold`, and with as many calls as days left. Null with no call left."},"thresholdInForce":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance a day has to reach to be called at this publication: `threshold` plus `keepValue`. Null with no call left, when no day is called."}},"required":["rule","threshold","per","callsLeft","keepValue","thresholdInForce"],"description":"How the event's day was decided: the rule, and the threshold in force when the warning or call was raised, which a stand-down is measured against. On a call, `callsLeft` counts that call as used."},"portfolio":{"type":["object","null"],"properties":{"id":{"type":"string","description":"The portfolio's id."},"name":{"type":"string","description":"Its name, as the organization set it."},"sites":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The site's id in the organization's profile."},"label":{"type":"string","description":"Its name, as the organization set it."},"program":{"type":"object","properties":{"id":{"type":"string","description":"Program id."},"name":{"type":"string","description":"Its short name."}},"required":["id","name"],"description":"The program it alerts on."}},"required":["id","label","program"]},"description":"The portfolio's sites the alert is about: on an alert, those its program bills at its threshold, the ones to act on; on a test, every site the destination covers."}},"required":["id","name","sites"],"description":"The portfolio whose alert this is (`/api/v1/portfolios/{id}`); null for one set outside a portfolio."},"program":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"Program id, the path segment of every program route."},"name":{"type":"string","description":"Short name, as the site shows it: `ERCOT 4CP`, `NYISO ICAP`."},"market":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z]+$","description":"e.g. \"ercot\", \"ieso\""},"name":{"type":"string","description":"As the site names it: `ERCOT`, `ISO-NE`."}},"required":["id","name"],"description":"The wholesale market the program's grid operator runs."}},"required":["id","name","market"],"description":"Which program a response is about."},"window":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"`{programId}:{YYYY-MM}` for a monthly window, `{programId}:{YYYY}` for a season or year."},"label":{"type":"string","description":"As the site names it: `August 2026`, `Jul–Aug 2026`."},"start":{"type":"string","format":"date","description":"The window's first day, a local date."},"end":{"type":"string","format":"date","description":"The window's last day, inclusive."},"status":{"type":"string","enum":["upcoming","open","settled"],"description":"`open` while its days are still to come or under way; `settled` once its last day has closed."},"peaksCounted":{"type":"integer","minimum":1,"description":"How many of the window's highest peaks count toward the charge: 1 for 4CP's monthly peak, 5 for ICI."}},"required":["id","label","start","end","status","peaksCounted"],"description":"The billing window: the span whose highest peaks set the charge."},"moment":{"type":"object","properties":{"asOf":{"type":"string","format":"date-time","description":"When this forecast was published."},"publicationId":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"The publication's fingerprint: the prefix of every scored claim's id on the ledger, so the forecast can be checked against the record."},"provenance":{"type":"string","enum":["live","replayed","sample"],"description":"Where the numbers come from: `live`, published as it happened; `replayed`, rebuilt on past data as if live, for evaluation; `sample`, synthetic demonstration data. Only `live` is for dispatch."},"model":{"type":"string","description":"Model version."},"nextUpdateAfter":{"type":["string","null"],"format":"date-time","description":"The next scheduled publication; null for a settled window."},"inputs":{"type":"object","properties":{"loadThrough":{"type":["string","null"],"format":"date-time","description":"End of the last metered interval it saw."},"operatorForecastIssuedAt":{"type":["string","null"],"format":"date-time","description":"When the grid operator's load forecast it read was issued; null when it had none."},"weatherForecastIssuedAt":{"type":["string","null"],"format":"date-time","description":"When the weather forecast it read was issued; null when it had none."}},"required":["loadThrough","operatorForecastIssuedAt","weatherForecastIssuedAt"],"description":"How recent its inputs were: a recent `asOf` does not imply recent inputs."}},"required":["asOf","publicationId","provenance","model","nextUpdateAfter","inputs"],"description":"The publication the event comes from."},"inputsBehind":{"type":"array","items":{"type":"string","enum":["operator_forecast","weather_forecast"]},"description":"Inputs that publication read from an issue older than its feed is allowed (`moment.inputs` has when each was issued): the chance stands, but on older information than usual. Empty when every input was current."},"message":{"type":"string","description":"The event in a sentence, as the email reads it."},"date":{"type":"string","format":"date","description":"The day the event is about."},"today":{"type":["object","null"],"properties":{"date":{"type":"string","format":"date","description":"Today, the program's local date."},"open":{"type":"boolean","description":"Today's peak hours are still ahead. False once they have passed."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"The chance today sets the peak (ends among the counted peaks)."},"call":{"type":["boolean","null"],"description":"The chance is at or above the threshold in force (`decision`): `threshold` itself, unless the request stated calls left. Null when the request set no threshold."},"loadSoFarMw":{"type":["number","null"],"description":"Today's highest metered load so far."},"forecastPeakMw":{"type":"number","description":"Today's expected peak load."},"forecastSdMw":{"type":"number","minimum":0,"description":"Its standard deviation."},"operatorForecastMw":{"type":["number","null"],"description":"The grid operator's own forecast of today's peak."},"likelyHours":{"type":["object","null"],"properties":{"firstHourEnding":{"type":"string","format":"date-time","description":"The end of the run's first hour, in the program's local time."},"lastHourEnding":{"type":"string","format":"date-time","description":"The end of its last hour; the same as the first for a single hour."}},"required":["firstHourEnding","lastHourEnding"],"description":"The run of hours most likely to hold today's highest load still to come, the likelier one when the chance splits between two parts of the day; null once they have passed."},"otherLikelyHours":{"type":["object","null"],"properties":{"firstHourEnding":{"type":"string","format":"date-time","description":"The end of the run's first hour, in the program's local time."},"lastHourEnding":{"type":"string","format":"date-time","description":"The end of its last hour; the same as the first for a single hour."}},"required":["firstHourEnding","lastHourEnding"],"description":"The next likeliest run of hours still to come, when today's chance splits and it holds at least a fifth of it: the hours a curtailment on `likelyHours` alone would leave exposed. Null while the chance gathers in one run."},"hours":{"type":"array","items":{"type":"object","properties":{"hourEnding":{"type":"string","format":"date-time","description":"The end of the hour, in the program's local time: 18:00 is 17:00–18:00."},"operatorMw":{"type":["number","null"],"description":"The grid operator's forecast load for the hour, whole MW, from the issues in force when the forecast was published."},"forecastMw":{"type":["number","null"],"description":"The load the forecast expects in the hour, whole MW: the operator's moved by the forecast's correction. The day's highest of these sits below its `forecastPeakMw`, the expected peak, by what each hour's own error adds to the highest of them."},"chanceDayPeak":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance this hour holds the day's highest load, whatever the day's size. A day's hours sum to 1."},"chance":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance this hour sets the peak: the day's `chance` shared by the hour that holds the day's highest load. A day's hours sum to its `chance`."}},"required":["hourEnding","operatorMw","forecastMw","chanceDayPeak","chance"],"description":"One hour of a day: its load as the operator and the forecast expect it, and its chance of setting the peak."},"description":"The day's hours in order. Today's include the hours already past, which have no chance of setting the peak unless the highest load so far came in one of them. A value is null where the forecast had none, beyond the operator's horizon or without a peak-hour profile."}},"required":["date","open","chance","call","loadSoFarMw","forecastPeakMw","forecastSdMw","operatorForecastMw","likelyHours","otherLikelyHours","hours"],"description":"Today, as the forecast page's first panel shows it."},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","description":"The day, a local date."},"dayType":{"type":"string","enum":["weekday","saturday","sunday","holiday"],"description":"Weekday, Saturday, Sunday or a holiday, as the program's rule reads days."},"counts":{"type":"boolean","description":"The rule counts this day (a weekday, not a holiday, when it says so)."},"daysAhead":{"type":"integer","minimum":0,"description":"Days after today; 0 for an earlier day still open because its load has not come in yet."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"The chance this day sets the peak (or, for an event program, that an event is called)."},"call":{"type":["boolean","null"],"description":"The chance is at or above the threshold in force (`decision`): `threshold` itself, unless the request stated calls left. Null when the request set no threshold."},"forecastPeakMw":{"type":"number","description":"The day's expected peak load, MW."},"forecastSdMw":{"type":"number","minimum":0,"description":"Its standard deviation, MW."},"operatorForecastMw":{"type":["number","null"],"description":"The grid operator's own forecast of the day's peak, MW; null beyond its horizon."},"likelyHours":{"type":["object","null"],"properties":{"firstHourEnding":{"type":"string","format":"date-time","description":"The end of the run's first hour, in the program's local time."},"lastHourEnding":{"type":"string","format":"date-time","description":"The end of its last hour; the same as the first for a single hour."}},"required":["firstHourEnding","lastHourEnding"],"description":"The run of hours most likely to hold the day's highest load, the likelier one when the chance splits between two parts of the day; null without a peak-hour profile."},"otherLikelyHours":{"type":["object","null"],"properties":{"firstHourEnding":{"type":"string","format":"date-time","description":"The end of the run's first hour, in the program's local time."},"lastHourEnding":{"type":"string","format":"date-time","description":"The end of its last hour; the same as the first for a single hour."}},"required":["firstHourEnding","lastHourEnding"],"description":"The next likeliest run of hours, when the day's chance splits and it holds at least a fifth of it. Null while the chance gathers in one run."},"hours":{"type":"array","items":{"type":"object","properties":{"hourEnding":{"type":"string","format":"date-time","description":"The end of the hour, in the program's local time: 18:00 is 17:00–18:00."},"operatorMw":{"type":["number","null"],"description":"The grid operator's forecast load for the hour, whole MW, from the issues in force when the forecast was published."},"forecastMw":{"type":["number","null"],"description":"The load the forecast expects in the hour, whole MW: the operator's moved by the forecast's correction. The day's highest of these sits below its `forecastPeakMw`, the expected peak, by what each hour's own error adds to the highest of them."},"chanceDayPeak":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance this hour holds the day's highest load, whatever the day's size. A day's hours sum to 1."},"chance":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance this hour sets the peak: the day's `chance` shared by the hour that holds the day's highest load. A day's hours sum to its `chance`."}},"required":["hourEnding","operatorMw","forecastMw","chanceDayPeak","chance"],"description":"One hour of a day: its load as the operator and the forecast expect it, and its chance of setting the peak."},"description":"The day's hours in order. Today's include the hours already past, which have no chance of setting the peak unless the highest load so far came in one of them. A value is null where the forecast had none, beyond the operator's horizon or without a peak-hour profile."},"highTempF":{"type":["number","null"],"description":"The forecast daily high, population-weighted."},"basis":{"type":"string","enum":["operator","weather","history"],"description":"What a day's forecast rests on: the grid operator's own load forecast (the coming week), the weather forecast (up to about two weeks), or history for the date (beyond)."}},"required":["date","dayType","counts","daysAhead","chance","call","forecastPeakMw","forecastSdMw","operatorForecastMw","likelyHours","otherLikelyHours","hours","highTempF","basis"],"description":"A day still to come, or an earlier day still open until its load comes in."},"description":"The next seven days."},"currentPeak":{"type":["object","null"],"properties":{"rank":{"type":"integer","minimum":1,"description":"1 is the window's highest so far."},"date":{"type":"string","format":"date","description":"The day that set it, a local date."},"hourEnding":{"type":"string","format":"date-time","description":"End of the settlement interval that set it."},"loadMw":{"type":"number","description":"Its load, MW, as metered."},"chanceHolds":{"type":"number","minimum":0,"maximum":1,"description":"The chance it is still among the counted peaks when the window closes."},"pending":{"type":"boolean","description":"True for a pending peak: its day's load is read but not yet closed in the record, because the operator has not published the rest of the day or never posted one of its hours, so `loadMw` is the highest read so far, the least the day's peak can be. The forecast counts it at once. False once the day is closed."}},"required":["rank","date","hourEnding","loadMw","chanceHolds","pending"],"description":"A peak already set in the window."},"outlook":{"type":"object","properties":{"standingHolds":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance the current peak holds to the window's end: no later day, today included, beats it. Null while no peak is set: no counted day of the window is metered yet."},"today":{"type":"number","minimum":0,"maximum":1,"description":"Today's share of the window's counted peaks."},"laterDays":{"type":"number","minimum":0,"description":"Expected counted peaks among the days still to come."},"likeliestDay":{"type":["object","null"],"properties":{"date":{"type":"string","format":"date","description":"A local date."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"A probability, 0 to 1."}},"required":["date","chance"],"description":"The later day most likely to set the peak, with its chance; null when no day is left."},"sentence":{"type":"string","description":"Where the window's peak most likely comes from, in a sentence."}},"required":["standingHolds","today","laterDays","likeliestDay","sentence"],"description":"Where the window's peak will come from: what stands, today, or a later day."},"url":{"type":"string","format":"uri","description":"The program's forecast page."}},"required":["schemaVersion","id","eventId","type","signal","standDown","test","provenance","subscription","decision","portfolio","program","window","moment","inputsBehind","message","date","today","days","currentPeak","outlook","url"],"description":"An alert's webhook body. Signed: `x-tinypeak-signature: t=<unix seconds>,v1=<hex HMAC-SHA256(secret, \"<t>.<raw body>\")>`; reject a timestamp more than five minutes old."},"PublicationRef":{"type":"object","properties":{"publicationId":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"sha256 (hex) of the publication's forecast body."},"asOf":{"type":"string","format":"date-time"},"provenance":{"type":"string","enum":["live","replayed","sample"],"description":"Where the numbers come from: `live`, published as it happened; `replayed`, rebuilt on past data as if live, for evaluation; `sample`, synthetic demonstration data. Only `live` is for dispatch."},"modelVersion":{"type":"string","description":"The model version that published it."},"cutoff":{"type":"boolean","description":"The first publication at or after a public cutoff: the one the public tier serves and the record scores."}},"required":["publicationId","asOf","provenance","modelVersion","cutoff"]},"EvalSummary":{"type":"object","properties":{"programId":{"type":"string","minLength":1,"description":"e.g. \"ercot-4cp\""},"season":{"type":"string","description":"A calendar year, or \"all\"."},"kind":{"type":"string","enum":["leader_survival","candidate_final","day_exceedance","day_peak","day_peak_pit","today_peak","event_called","hour_peak","peak_hour","alert"]},"provenance":{"type":"string","enum":["live","replayed","sample"],"description":"Where the numbers come from: `live`, published as it happened; `replayed`, rebuilt on past data as if live, for evaluation; `sample`, synthetic demonstration data. Only `live` is for dispatch."},"modelVersion":{"type":"string"},"provisional":{"type":"boolean","description":"Scored on `provisional` outcomes: windows still open, judged against their closed days. Never pooled with a settled cell."},"predictionCount":{"type":"integer"},"eventCount":{"type":"integer"},"baseRate":{"type":"number","description":"Base rate of the event among resolved Claims."},"firstAsOf":{"type":["string","null"],"format":"date-time"},"lastAsOf":{"type":["string","null"],"format":"date-time"},"computedAt":{"type":"string","format":"date-time"},"brier":{"type":["number","null"],"description":"Binary kinds only."},"logLoss":{"type":["number","null"]},"logLossClippedCount":{"type":"integer"},"brierSkill":{"type":"object","properties":{"calendar":{"type":["number","null"]},"climatology":{"type":["number","null"]},"isoDeterministic":{"type":["number","null"]}},"required":["calendar","climatology","isoDeterministic"]},"murphy":{"type":["object","null"],"properties":{"reliability":{"type":"number"},"resolution":{"type":"number"},"uncertainty":{"type":"number"},"withinBin":{"type":"number","description":"Within-bin variance minus twice covariance: makes the sum the Brier score exactly."}},"required":["reliability","resolution","uncertainty","withinBin"]},"reliability":{"type":"array","items":{"type":"object","properties":{"pLow":{"type":"number"},"pHigh":{"type":"number"},"pMean":{"type":"number"},"observedFrequency":{"type":"number"},"predictionCount":{"type":"integer"},"eventCount":{"type":"integer"},"bootstrapInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"Event-block bootstrap 90% interval on observedFrequency."},"consistencyInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"90% interval of observedFrequency under the null that `p` is calibrated."}},"required":["pLow","pHigh","pMean","observedFrequency","predictionCount","eventCount","bootstrapInterval90","consistencyInterval90"]},"description":"Equal-count bins: the forecaster's diagram."},"reliabilityFixed":{"type":"array","items":{"type":"object","properties":{"pLow":{"type":"number"},"pHigh":{"type":"number"},"pMean":{"type":"number"},"observedFrequency":{"type":"number"},"predictionCount":{"type":"integer"},"eventCount":{"type":"integer"},"bootstrapInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"Event-block bootstrap 90% interval on observedFrequency."},"consistencyInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"90% interval of observedFrequency under the null that `p` is calibrated."}},"required":["pLow","pHigh","pMean","observedFrequency","predictionCount","eventCount","bootstrapInterval90","consistencyInterval90"]},"description":"Fixed probability bands (`RELIABILITY_BANDS`): \"when we said 15–30 %, it happened x % of the time\". Empty bands are omitted."},"reliabilityByLead":{"type":"object","properties":{"0-2":{"type":"array","items":{"type":"object","properties":{"pLow":{"type":"number"},"pHigh":{"type":"number"},"pMean":{"type":"number"},"observedFrequency":{"type":"number"},"predictionCount":{"type":"integer"},"eventCount":{"type":"integer"},"bootstrapInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"Event-block bootstrap 90% interval on observedFrequency."},"consistencyInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"90% interval of observedFrequency under the null that `p` is calibrated."}},"required":["pLow","pHigh","pMean","observedFrequency","predictionCount","eventCount","bootstrapInterval90","consistencyInterval90"]}},"3-6":{"type":"array","items":{"type":"object","properties":{"pLow":{"type":"number"},"pHigh":{"type":"number"},"pMean":{"type":"number"},"observedFrequency":{"type":"number"},"predictionCount":{"type":"integer"},"eventCount":{"type":"integer"},"bootstrapInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"Event-block bootstrap 90% interval on observedFrequency."},"consistencyInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"90% interval of observedFrequency under the null that `p` is calibrated."}},"required":["pLow","pHigh","pMean","observedFrequency","predictionCount","eventCount","bootstrapInterval90","consistencyInterval90"]}},"7-13":{"type":"array","items":{"type":"object","properties":{"pLow":{"type":"number"},"pHigh":{"type":"number"},"pMean":{"type":"number"},"observedFrequency":{"type":"number"},"predictionCount":{"type":"integer"},"eventCount":{"type":"integer"},"bootstrapInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"Event-block bootstrap 90% interval on observedFrequency."},"consistencyInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"90% interval of observedFrequency under the null that `p` is calibrated."}},"required":["pLow","pHigh","pMean","observedFrequency","predictionCount","eventCount","bootstrapInterval90","consistencyInterval90"]}},"14+":{"type":"array","items":{"type":"object","properties":{"pLow":{"type":"number"},"pHigh":{"type":"number"},"pMean":{"type":"number"},"observedFrequency":{"type":"number"},"predictionCount":{"type":"integer"},"eventCount":{"type":"integer"},"bootstrapInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"Event-block bootstrap 90% interval on observedFrequency."},"consistencyInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"90% interval of observedFrequency under the null that `p` is calibrated."}},"required":["pLow","pHigh","pMean","observedFrequency","predictionCount","eventCount","bootstrapInterval90","consistencyInterval90"]}}}},"reliabilityFixedByLead":{"type":"object","properties":{"0-2":{"type":"array","items":{"type":"object","properties":{"pLow":{"type":"number"},"pHigh":{"type":"number"},"pMean":{"type":"number"},"observedFrequency":{"type":"number"},"predictionCount":{"type":"integer"},"eventCount":{"type":"integer"},"bootstrapInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"Event-block bootstrap 90% interval on observedFrequency."},"consistencyInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"90% interval of observedFrequency under the null that `p` is calibrated."}},"required":["pLow","pHigh","pMean","observedFrequency","predictionCount","eventCount","bootstrapInterval90","consistencyInterval90"]}},"3-6":{"type":"array","items":{"type":"object","properties":{"pLow":{"type":"number"},"pHigh":{"type":"number"},"pMean":{"type":"number"},"observedFrequency":{"type":"number"},"predictionCount":{"type":"integer"},"eventCount":{"type":"integer"},"bootstrapInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"Event-block bootstrap 90% interval on observedFrequency."},"consistencyInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"90% interval of observedFrequency under the null that `p` is calibrated."}},"required":["pLow","pHigh","pMean","observedFrequency","predictionCount","eventCount","bootstrapInterval90","consistencyInterval90"]}},"7-13":{"type":"array","items":{"type":"object","properties":{"pLow":{"type":"number"},"pHigh":{"type":"number"},"pMean":{"type":"number"},"observedFrequency":{"type":"number"},"predictionCount":{"type":"integer"},"eventCount":{"type":"integer"},"bootstrapInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"Event-block bootstrap 90% interval on observedFrequency."},"consistencyInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"90% interval of observedFrequency under the null that `p` is calibrated."}},"required":["pLow","pHigh","pMean","observedFrequency","predictionCount","eventCount","bootstrapInterval90","consistencyInterval90"]}},"14+":{"type":"array","items":{"type":"object","properties":{"pLow":{"type":"number"},"pHigh":{"type":"number"},"pMean":{"type":"number"},"observedFrequency":{"type":"number"},"predictionCount":{"type":"integer"},"eventCount":{"type":"integer"},"bootstrapInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"Event-block bootstrap 90% interval on observedFrequency."},"consistencyInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"90% interval of observedFrequency under the null that `p` is calibrated."}},"required":["pLow","pHigh","pMean","observedFrequency","predictionCount","eventCount","bootstrapInterval90","consistencyInterval90"]}}}},"sharpness":{"type":"object","properties":{"bins":{"type":"array","items":{"type":"integer"}},"decisiveShare":{"type":"number"}},"required":["bins","decisiveShare"]},"decisionValue":{"type":"array","items":{"type":"object","properties":{"costRatio":{"type":"number"},"expense":{"type":"object","properties":{"forecast":{"type":"number"},"calendar":{"type":["number","null"]},"climatology":{"type":["number","null"]},"baseRate":{"type":"number"},"perfect":{"type":"number"}},"required":["forecast","calendar","climatology","baseRate","perfect"]},"value":{"type":"object","properties":{"calendar":{"type":["number","null"]},"climatology":{"type":["number","null"]},"baseRate":{"type":["number","null"]}},"required":["calendar","climatology","baseRate"]}},"required":["costRatio","expense","value"]}},"pit":{"type":["object","null"],"properties":{"bins":{"type":"array","items":{"type":"integer"}},"upperDecileMass":{"type":"number"},"ks":{"type":"number"}},"required":["bins","upperDecileMass","ks"]},"tailCoverage":{"type":["object","null"],"properties":{"shareAboveP90":{"type":"number"},"shareAboveP99":{"type":"number"}},"required":["shareAboveP90","shareAboveP99"]},"cutoffCoverage":{"type":["object","null"],"properties":{"scored":{"type":"integer","minimum":0},"expected":{"type":"integer","minimum":0}},"required":["scored","expected"],"description":"`leader_survival` only: public cutoffs with an on-time scored Claim, against every cutoff between each window's first and last one. A late or skipped cutoff is missing, not dropped."},"martingale":{"type":["object","null"],"properties":{"drift":{"type":"number"},"varianceRatio":{"type":"number"},"spans":{"type":"integer"},"increments":{"type":"integer"}},"required":["drift","varianceRatio","spans","increments"],"description":"`leader_survival` only: increments of the published path over spans with a fixed leader."},"worstMiss":{"type":["object","null"],"properties":{"eventId":{"type":"string","description":"`${windowId}:${eventKey}`: the Event the miss was about."},"asOf":{"type":"string","format":"date-time"},"p":{"type":"number"},"outcome":{"type":"number"}},"required":["eventId","asOf","p","outcome"],"description":"Largest confident miss: highest p among outcome 0 (or lowest p among outcome 1)."},"peakHour":{"type":["object","null"],"properties":{"byLead":{"type":"array","items":{"type":"object","properties":{"lead":{"type":"string","enum":["today","1","2-3","4-7"]},"calls":{"type":"integer","minimum":0},"logScore":{"type":"number","description":"Mean log of the chance given the hour that held the peak, floored at 1e-3 (higher is better)."},"top1":{"type":"number","description":"Share of calls whose likeliest hour held the peak."},"top3":{"type":"number","description":"Share of calls whose peak hour was among the three likeliest."},"operatorCalls":{"type":"integer","minimum":0,"description":"Calls where the operator's forecast covered the day."},"operatorTop1":{"type":["number","null"],"description":"Over those calls, the share where the operator's highest hour held the peak."},"top1WhereOperator":{"type":["number","null"],"description":"Over the same calls, the share where our likeliest hour held it."}},"required":["lead","calls","logScore","top1","top3","operatorCalls","operatorTop1","top1WhereOperator"]}},"reliabilityFixed":{"type":"array","items":{"type":"object","properties":{"pLow":{"type":"number"},"pHigh":{"type":"number"},"pMean":{"type":"number"},"observedFrequency":{"type":"number"},"predictionCount":{"type":"integer"},"eventCount":{"type":"integer"},"bootstrapInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"Event-block bootstrap 90% interval on observedFrequency."},"consistencyInterval90":{"type":"array","prefixItems":[{"type":"number"},{"type":"number"}],"description":"90% interval of observedFrequency under the null that `p` is calibrated."}},"required":["pLow","pHigh","pMean","observedFrequency","predictionCount","eventCount","bootstrapInterval90","consistencyInterval90"]},"description":"Every hour's chance against whether it held the peak: \"when we gave an hour 30–50 %, it held x %\"."}},"required":["byLead","reliabilityFixed"],"description":"`peak_hour` only: the hour chances against the metered peak hour, from each publication's retained timing."},"alerts":{"type":["array","null"],"items":{"type":"object","properties":{"threshold":{"type":"number","minimum":0,"maximum":1},"grade":{"type":"object","properties":{"days":{"type":"integer","minimum":0},"peaks":{"type":"integer","minimum":0},"messages":{"type":"integer","minimum":0,"description":"Every warning, call, call update and stand-down sent: the noise an operator reads."},"updates":{"type":"integer","minimum":0,"description":"Call updates sent, on the likely hours moving."},"warnings":{"type":"object","properties":{"days":{"type":"integer","minimum":0},"peaks":{"type":"integer","minimum":0}},"required":["days","peaks"]},"calls":{"type":"object","properties":{"days":{"type":"integer","minimum":0},"hits":{"type":"integer","minimum":0},"falseAlarms":{"type":"integer","minimum":0},"missedPeaks":{"type":"integer","minimum":0}},"required":["days","hits","falseAlarms","missedPeaks"],"description":"Days called at least once, how many of them peaked, and the peaks never called."},"standDowns":{"type":"object","properties":{"days":{"type":"integer","minimum":0},"right":{"type":"integer","minimum":0},"wrong":{"type":"integer","minimum":0}},"required":["days","right","wrong"],"description":"Days whose alert ended in a stand-down on a falling chance before the day closed: right when the day did not peak, wrong when it did."},"churnDays":{"type":"integer","minimum":0,"description":"Days with more than one warning or more than one call."},"medianLeadHours":{"type":["number","null"],"description":"Median hours from a peak day's first warning or call to its peak, where the peak's hour is known."}},"required":["days","peaks","messages","updates","warnings","calls","standDowns","churnDays","medianLeadHours"]}},"required":["threshold","grade"]},"description":"`alert` only: the alerts the publications would have sent at each whole-percent threshold the record's slider sets, graded on the days."},"budgets":{"type":["array","null"],"items":{"type":"object","properties":{"calls":{"type":"integer","minimum":1,"description":"The calls the budget holds in each period."},"per":{"type":"string","enum":["window","season"],"description":"How long a budget's calls last. `window`: each billing window of the program, a month of a 12CP. `season`: every window of the program's year together, a summer or a calendar year. The two are one for a program with a single window a year."},"threshold":{"type":"number","minimum":0,"maximum":1,"description":"The threshold both rules call at, the program's recommended one where its record has one, else 10%."},"rule":{"type":"object","properties":{"called":{"type":"integer","description":"Days the rule would have curtailed."},"hits":{"type":"integer","description":"...of which became a peak."},"falseAlarms":{"type":"integer","description":"...of which did not."},"missed":{"type":"integer","description":"Peaks the rule sat out."}},"required":["called","hits","falseAlarms","missed"],"description":"The budget's rule: a day is called at the threshold plus what keeping the call is expected to catch later in the period, with what a chance ahead becomes read off the other seasons only."},"untilOut":{"type":"object","properties":{"called":{"type":"integer","description":"Days the rule would have curtailed."},"hits":{"type":"integer","description":"...of which became a peak."},"falseAlarms":{"type":"integer","description":"...of which did not."},"missed":{"type":"integer","description":"Peaks the rule sat out."}},"required":["called","hits","falseAlarms","missed"],"description":"The threshold until out: every day at or above the threshold, until the period's calls are spent."}},"required":["calls","per","threshold","rule","untilOut"]},"description":"`alert` only: the record at each call budget it is graded at, one, one and a half, two and three calls for each peak a period counts. Absent for an event program."},"landings":{"type":["object","null"],"properties":{"bands":{"type":"object","properties":{"lead":{"type":"array","items":{"type":"integer","minimum":1},"description":"The first lead of each lead band, in days ahead."},"given":{"type":"array","items":{"type":"number","minimum":0},"description":"The lower edge of each band of the chance given ahead."},"day":{"type":"array","items":{"type":"number","minimum":0},"description":"The lower edge of each band of the same-day chance."}},"required":["lead","given","day"],"description":"The bands the counts are kept in, each from its edge up to the next."},"ahead":{"type":"array","items":{"type":"array","items":{"type":"object","properties":{"days":{"type":"array","items":{"type":"integer","minimum":0},"description":"The days in each band."},"sum":{"type":"array","items":{"type":"number","minimum":0},"description":"Their chances, summed."}},"required":["days","sum"]}},"description":"By lead band, then by band of the chance given: the days, by the band of their same-day chance."},"months":{"type":"array","items":{"type":"object","properties":{"days":{"type":"array","items":{"type":"integer","minimum":0},"description":"The days in each band."},"sum":{"type":"array","items":{"type":"number","minimum":0},"description":"Their chances, summed."}},"required":["days","sum"]},"description":"By calendar month, January first: every scored day, by the band of its same-day chance."}},"required":["bands","ahead","months"],"description":"`day_peak` only: where each chance given ahead landed on its day over the cell's settled days, which a call budget's threshold in force is built from. Absent for an event program."}},"required":["programId","season","kind","provenance","modelVersion","provisional","predictionCount","eventCount","baseRate","firstAsOf","lastAsOf","computedAt","brier","logLoss","logLossClippedCount","brierSkill","murphy","reliability","reliabilityFixed","reliabilityByLead","reliabilityFixedByLead","sharpness","decisionValue","pit","tailCoverage","cutoffCoverage","martingale","worstMiss"]},"Claim":{"type":"object","properties":{"id":{"type":"string","pattern":"^[0-9a-f]{64}:(in_top_k|holds|exceeds|peak_value|event_called):\\S+$","description":"`${publicationId}:${eventKey}`: unique per Claim, and the unit the daily digest chains."},"publicationId":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"The publication the Claim belongs to: the content hash of its forecast body."},"event":{"allOf":[{"type":"object","properties":{"programId":{"type":"string","minLength":1,"description":"e.g. \"ercot-4cp\""},"windowId":{"type":"string","minLength":1,"description":"e.g. \"ercot-4cp:2026-08\""},"season":{"type":"string"}},"required":["programId","windowId","season"]},{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["in_top_k"]},"subject":{"anyOf":[{"type":"string","format":"date"},{"type":"string","pattern":"^PT(1H|30M|15M)\\/(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2})$"}]}},"required":["kind","subject"]},{"type":"object","properties":{"kind":{"type":"string","enum":["holds"]},"candidate":{"anyOf":[{"type":"string","format":"date"},{"type":"string","pattern":"^PT(1H|30M|15M)\\/(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2})$"}]},"withinTop":{"type":"integer","minimum":1}},"required":["kind","candidate","withinTop"]},{"type":"object","properties":{"kind":{"type":"string","enum":["exceeds"]},"subject":{"anyOf":[{"type":"string","format":"date"},{"type":"string","pattern":"^PT(1H|30M|15M)\\/(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2})$"}]},"thresholdMw":{"type":"number"}},"required":["kind","subject","thresholdMw"]},{"type":"object","properties":{"kind":{"type":"string","enum":["peak_value"]},"subject":{"anyOf":[{"type":"string","format":"date"},{"type":"string","pattern":"^PT(1H|30M|15M)\\/(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}[+-]\\d{2}:\\d{2})$"}]}},"required":["kind","subject"]},{"type":"object","properties":{"kind":{"type":"string","enum":["event_called"]},"subject":{"type":"string","format":"date"}},"required":["kind","subject"]}]}]},"scoredKind":{"type":"string","enum":["leader_survival","candidate_final","day_exceedance","day_peak","day_peak_pit","today_peak","event_called","hour_peak"],"description":"The question the record scores the Claim under; each is exactly one shape of the Event."},"issuedAt":{"type":"string","format":"date-time"},"cutoff":{"type":"boolean"},"modelId":{"type":"string"},"modelVersion":{"type":"string"},"provenance":{"type":"string","enum":["live","replayed","sample"],"description":"Where the numbers come from: `live`, published as it happened; `replayed`, rebuilt on past data as if live, for evaluation; `sample`, synthetic demonstration data. Only `live` is for dispatch."},"p":{"type":"number","minimum":0,"maximum":1,"description":"The probability, for an Event answered with one."},"distribution":{"type":"object","properties":{"expectedPeakMw":{"type":"number"},"peakSdMw":{"type":"number"},"memberExpectedPeakMw":{"type":"array","items":{"type":"number"},"description":"Mixture components, when the forecast carried them."},"memberPeakSdMw":{"type":"number"}},"required":["expectedPeakMw","peakSdMw"],"description":"The answer to a `peak_value` Event, scored by its PIT."},"baselines":{"type":"object","properties":{"calendar":{"type":["number","null"],"minimum":0,"maximum":1,"description":"Record theory under exchangeable days: no weather, no load."},"climatology":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The engine with climatology only (no ISO forecast, no ensemble)."},"isoDeterministic":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The ISO's deterministic forecast with a fixed error sd."}},"required":["calendar","climatology","isoDeterministic"],"description":"The baseline Models' answers to the same Event; cutoff Claims only."},"leadDays":{"type":"integer","minimum":0,"description":"To the subject day for day Events (0 for today and for an earlier day still open, its load unpublished); to the window's end for standing candidates."},"receipt":{"type":"object","properties":{"barrierMw":{"type":"number","description":"What the subject had to beat at the call: the candidate's own value for `holds`, the threshold for `exceeds`, the k-th standing value for `in_top_k`."},"rank":{"type":"integer","description":"The candidate's standing rank, for `holds`."},"isoForecastPeakMw":{"type":"number","description":"The grid operator's forecast peak for the subject day at the claim's instant, MW: what the rule of thumb acts on."},"runningPeakMw":{"type":"number","description":"Today's running peak at the call (`today_peak`)."},"distributionSource":{"type":"string","enum":["iso_forecast+ensemble","iso_forecast","ensemble","climatology"],"description":"Which input carried the day's distribution (`day_peak`)."},"realizedMw":{"type":"number","description":"The subject day's realized peak, MW, written at resolution for day Events."}}},"outcome":{"type":["number","null"],"minimum":0,"maximum":1,"description":"0/1 for a probability Event; the PIT value u in [0,1] for `peak_value`. Null until resolved."},"resolution":{"type":"string","enum":["pending","provisional","proxy","final"]},"resolvedAt":{"type":["string","null"],"format":"date-time"},"outcomeKnownAt":{"type":"string","format":"date-time","description":"When the settlement a top-k or record outcome was read from became known (its Fact `knownAt`)."},"inputsHash":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"sha256 of the Fact revisions (kind, subject, key, source, knownAt) the publication read: its model fit, ISO forecast issues and ensemble cycle. One per publication, stored with it and joined in when Claims are read."}},"required":["id","publicationId","event","scoredKind","issuedAt","cutoff","modelId","modelVersion","provenance","leadDays","receipt","outcome","resolution","resolvedAt"]},"DailyDigest":{"type":"object","properties":{"programId":{"type":"string","minLength":1,"description":"e.g. \"ercot-4cp\""},"date":{"type":"string","format":"date"},"provenance":{"type":"string","enum":["live","replayed","sample"],"description":"Where the numbers come from: `live`, published as it happened; `replayed`, rebuilt on past data as if live, for evaluation; `sample`, synthetic demonstration data. Only `live` is for dispatch."},"count":{"type":"integer"},"ids":{"type":"array","items":{"type":"string","pattern":"^[0-9a-f]{64}:(in_top_k|holds|exceeds|peak_value|event_called):\\S+$","description":"`${publicationId}:${eventKey}`."},"description":"The id of every cutoff Claim issued that local day (`${publicationId}:${eventKey}`), sorted; `count` is its length."},"root":{"type":"string","description":"sha256 over `ids` joined by newlines, prefixed by previousRoot and a newline."},"previousRoot":{"type":["string","null"]},"computedAt":{"type":"string","format":"date-time"}},"required":["programId","date","provenance","count","ids","root","previousRoot","computedAt"]},"CustomerExposures":{"type":"object","properties":{"customerId":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"name":{"type":"string"},"asOf":{"type":"string","format":"date","description":"Obligations are those with a version in force on this date."},"exposures":{"type":"array","items":{"type":"object","properties":{"siteId":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"obligationId":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","description":"e.g. \"ercot-4cp\", \"pjm-nspl\""},"programId":{"type":"string","minLength":1,"description":"The obligation id, or `{obligationId}.{zoneKey}` for the site's zone."},"covered":{"type":"boolean","description":"Whether the catalog has that Program (a Series measures the zone)."},"consequence":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["charge"],"description":"The outcome sets the customer's share of a cost."},"on":{"type":"string","enum":["capacity","transmission","global_adjustment"],"description":"Which cost: `capacity`, `transmission` or Ontario's `global_adjustment`."},"rates":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"description":"The rate, in `currency` per `unit`."},"currency":{"type":"string","enum":["USD","CAD"],"description":"ISO 4217 currency code."},"unit":{"type":"string","enum":["per_kw_month","per_kw_year","per_mw_day","per_mw_month","per_mw_season","per_mw_year","per_kwh","per_mwh"],"description":"What it is charged or paid per: `per_kw_month` is per kW of the determinant each month."},"from":{"type":"string","format":"date","description":"First day the rate applies."},"to":{"type":"string","format":"date","description":"Last day, inclusive; absent while in force."},"appliesTo":{"type":"string","minLength":1,"description":"Who it applies to, where the program has several rates."},"fromEvents":{"type":"integer","minimum":1,"description":"Applies once a season has this many events."},"sourceIds":{"type":"array","items":{"type":"string","minLength":1},"description":"Research registry ids (docs/research/sources.json)."},"basis":{"type":"string","minLength":1,"description":"How the number was derived, when no registry document states it."}},"required":["amount","currency","unit","from","sourceIds"]},"minItems":1,"description":"The published charge per unit of the determinant, by period."}},"required":["kind","on"]},{"type":"object","properties":{"kind":{"type":"string","enum":["payment"],"description":"Paid to deliver relief on declared events."},"reservation":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"description":"The rate, in `currency` per `unit`."},"currency":{"type":"string","enum":["USD","CAD"],"description":"ISO 4217 currency code."},"unit":{"type":"string","enum":["per_kw_month","per_kw_year","per_mw_day","per_mw_month","per_mw_season","per_mw_year","per_kwh","per_mwh"],"description":"What it is charged or paid per: `per_kw_month` is per kW of the determinant each month."},"from":{"type":"string","format":"date","description":"First day the rate applies."},"to":{"type":"string","format":"date","description":"Last day, inclusive; absent while in force."},"appliesTo":{"type":"string","minLength":1,"description":"Who it applies to, where the program has several rates."},"fromEvents":{"type":"integer","minimum":1,"description":"Applies once a season has this many events."},"sourceIds":{"type":"array","items":{"type":"string","minLength":1},"description":"Research registry ids (docs/research/sources.json)."},"basis":{"type":"string","minLength":1,"description":"How the number was derived, when no registry document states it."}},"required":["amount","currency","unit","from","sourceIds"]},"minItems":1,"description":"Paid per unit enrolled, by period."},"performance":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"description":"The rate, in `currency` per `unit`."},"currency":{"type":"string","enum":["USD","CAD"],"description":"ISO 4217 currency code."},"unit":{"type":"string","enum":["per_kw_month","per_kw_year","per_mw_day","per_mw_month","per_mw_season","per_mw_year","per_kwh","per_mwh"],"description":"What it is charged or paid per: `per_kw_month` is per kW of the determinant each month."},"from":{"type":"string","format":"date","description":"First day the rate applies."},"to":{"type":"string","format":"date","description":"Last day, inclusive; absent while in force."},"appliesTo":{"type":"string","minLength":1,"description":"Who it applies to, where the program has several rates."},"fromEvents":{"type":"integer","minimum":1,"description":"Applies once a season has this many events."},"sourceIds":{"type":"array","items":{"type":"string","minLength":1},"description":"Research registry ids (docs/research/sources.json)."},"basis":{"type":"string","minLength":1,"description":"How the number was derived, when no registry document states it."}},"required":["amount","currency","unit","from","sourceIds"]},"minItems":1,"description":"Paid per unit delivered in an event, by period."},"sourceIds":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"description":"Research registry ids (docs/research/sources.json)."}},"required":["kind","sourceIds"]},{"type":"object","properties":{"kind":{"type":"string","enum":["none"],"description":"Nothing settles on it."}},"required":["kind"]}]},"declared":{"type":"boolean","description":"The site declared it (`exposures.include`)."},"reason":{"type":"string","minLength":1},"sourceIds":{"type":"array","items":{"type":"string","minLength":1},"description":"The evidence: the version in force and the applicability rule."}},"required":["siteId","obligationId","programId","covered","consequence","declared","reason","sourceIds"]}},"available":{"type":"array","items":{"type":"object","properties":{"siteId":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"obligationId":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","description":"e.g. \"ercot-4cp\", \"pjm-nspl\""},"reason":{"type":"string","minLength":1}},"required":["siteId","obligationId","reason"]}},"unresolved":{"type":"array","items":{"type":"object","properties":{"siteId":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"obligationId":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","description":"e.g. \"ercot-4cp\", \"pjm-nspl\""},"reason":{"type":"string","minLength":1},"needs":{"type":"array","items":{"type":"string","minLength":1},"description":"What the site must state, e.g. \"zone (a zone of spp:zones)\"."}},"required":["siteId","reason","needs"]}}},"required":["customerId","name","asOf","exposures","available","unresolved"]},"CustomerOutlook":{"type":"object","properties":{"customerId":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"name":{"type":"string"},"asOf":{"type":"string","format":"date"},"programs":{"type":"array","items":{"type":"object","properties":{"programId":{"type":"string","minLength":1,"description":"e.g. \"ercot-4cp\""},"obligationId":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","description":"e.g. \"ercot-4cp\", \"pjm-nspl\""},"siteIds":{"type":"array","items":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"description":"The customer's sites it bills or pays."},"consequence":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["charge"],"description":"The outcome sets the customer's share of a cost."},"on":{"type":"string","enum":["capacity","transmission","global_adjustment"],"description":"Which cost: `capacity`, `transmission` or Ontario's `global_adjustment`."},"rates":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"description":"The rate, in `currency` per `unit`."},"currency":{"type":"string","enum":["USD","CAD"],"description":"ISO 4217 currency code."},"unit":{"type":"string","enum":["per_kw_month","per_kw_year","per_mw_day","per_mw_month","per_mw_season","per_mw_year","per_kwh","per_mwh"],"description":"What it is charged or paid per: `per_kw_month` is per kW of the determinant each month."},"from":{"type":"string","format":"date","description":"First day the rate applies."},"to":{"type":"string","format":"date","description":"Last day, inclusive; absent while in force."},"appliesTo":{"type":"string","minLength":1,"description":"Who it applies to, where the program has several rates."},"fromEvents":{"type":"integer","minimum":1,"description":"Applies once a season has this many events."},"sourceIds":{"type":"array","items":{"type":"string","minLength":1},"description":"Research registry ids (docs/research/sources.json)."},"basis":{"type":"string","minLength":1,"description":"How the number was derived, when no registry document states it."}},"required":["amount","currency","unit","from","sourceIds"]},"minItems":1,"description":"The published charge per unit of the determinant, by period."}},"required":["kind","on"]},{"type":"object","properties":{"kind":{"type":"string","enum":["payment"],"description":"Paid to deliver relief on declared events."},"reservation":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"description":"The rate, in `currency` per `unit`."},"currency":{"type":"string","enum":["USD","CAD"],"description":"ISO 4217 currency code."},"unit":{"type":"string","enum":["per_kw_month","per_kw_year","per_mw_day","per_mw_month","per_mw_season","per_mw_year","per_kwh","per_mwh"],"description":"What it is charged or paid per: `per_kw_month` is per kW of the determinant each month."},"from":{"type":"string","format":"date","description":"First day the rate applies."},"to":{"type":"string","format":"date","description":"Last day, inclusive; absent while in force."},"appliesTo":{"type":"string","minLength":1,"description":"Who it applies to, where the program has several rates."},"fromEvents":{"type":"integer","minimum":1,"description":"Applies once a season has this many events."},"sourceIds":{"type":"array","items":{"type":"string","minLength":1},"description":"Research registry ids (docs/research/sources.json)."},"basis":{"type":"string","minLength":1,"description":"How the number was derived, when no registry document states it."}},"required":["amount","currency","unit","from","sourceIds"]},"minItems":1,"description":"Paid per unit enrolled, by period."},"performance":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number","minimum":0,"description":"The rate, in `currency` per `unit`."},"currency":{"type":"string","enum":["USD","CAD"],"description":"ISO 4217 currency code."},"unit":{"type":"string","enum":["per_kw_month","per_kw_year","per_mw_day","per_mw_month","per_mw_season","per_mw_year","per_kwh","per_mwh"],"description":"What it is charged or paid per: `per_kw_month` is per kW of the determinant each month."},"from":{"type":"string","format":"date","description":"First day the rate applies."},"to":{"type":"string","format":"date","description":"Last day, inclusive; absent while in force."},"appliesTo":{"type":"string","minLength":1,"description":"Who it applies to, where the program has several rates."},"fromEvents":{"type":"integer","minimum":1,"description":"Applies once a season has this many events."},"sourceIds":{"type":"array","items":{"type":"string","minLength":1},"description":"Research registry ids (docs/research/sources.json)."},"basis":{"type":"string","minLength":1,"description":"How the number was derived, when no registry document states it."}},"required":["amount","currency","unit","from","sourceIds"]},"minItems":1,"description":"Paid per unit delivered in an event, by period."},"sourceIds":{"type":"array","items":{"type":"string","minLength":1},"minItems":1,"description":"Research registry ids (docs/research/sources.json)."}},"required":["kind","sourceIds"]},{"type":"object","properties":{"kind":{"type":"string","enum":["none"],"description":"Nothing settles on it."}},"required":["kind"]}]},"action":{"type":"string","description":"What a likely outcome asks, by consequence: \"Curtail to reduce the capacity tag\", \"Be ready to deliver: Con Edison CSRP event likely\"."},"forecast":{"type":["object","null"],"properties":{"program":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"Program id, the path segment of every program route."},"name":{"type":"string","description":"Short name, as the site shows it: `ERCOT 4CP`, `NYISO ICAP`."},"market":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z]+$","description":"e.g. \"ercot\", \"ieso\""},"name":{"type":"string","description":"As the site names it: `ERCOT`, `ISO-NE`."}},"required":["id","name"],"description":"The wholesale market the program's grid operator runs."}},"required":["id","name","market"],"description":"Which program a response is about."},"window":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"`{programId}:{YYYY-MM}` for a monthly window, `{programId}:{YYYY}` for a season or year."},"label":{"type":"string","description":"As the site names it: `August 2026`, `Jul–Aug 2026`."},"start":{"type":"string","format":"date","description":"The window's first day, a local date."},"end":{"type":"string","format":"date","description":"The window's last day, inclusive."},"status":{"type":"string","enum":["upcoming","open","settled"],"description":"`open` while its days are still to come or under way; `settled` once its last day has closed."},"peaksCounted":{"type":"integer","minimum":1,"description":"How many of the window's highest peaks count toward the charge: 1 for 4CP's monthly peak, 5 for ICI."}},"required":["id","label","start","end","status","peaksCounted"],"description":"The billing window: the span whose highest peaks set the charge."},"moment":{"type":"object","properties":{"asOf":{"type":"string","format":"date-time","description":"When this forecast was published."},"publicationId":{"type":"string","pattern":"^[0-9a-f]{64}$","description":"The publication's fingerprint: the prefix of every scored claim's id on the ledger, so the forecast can be checked against the record."},"provenance":{"type":"string","enum":["live","replayed","sample"],"description":"Where the numbers come from: `live`, published as it happened; `replayed`, rebuilt on past data as if live, for evaluation; `sample`, synthetic demonstration data. Only `live` is for dispatch."},"model":{"type":"string","description":"Model version."},"nextUpdateAfter":{"type":["string","null"],"format":"date-time","description":"The next scheduled publication; null for a settled window."},"inputs":{"type":"object","properties":{"loadThrough":{"type":["string","null"],"format":"date-time","description":"End of the last metered interval it saw."},"operatorForecastIssuedAt":{"type":["string","null"],"format":"date-time","description":"When the grid operator's load forecast it read was issued; null when it had none."},"weatherForecastIssuedAt":{"type":["string","null"],"format":"date-time","description":"When the weather forecast it read was issued; null when it had none."}},"required":["loadThrough","operatorForecastIssuedAt","weatherForecastIssuedAt"],"description":"How recent its inputs were: a recent `asOf` does not imply recent inputs."}},"required":["asOf","publicationId","provenance","model","nextUpdateAfter","inputs"],"description":"When the forecast was made, and from what."},"threshold":{"type":["number","null"],"exclusiveMinimum":0,"maximum":1,"description":"The chance at or above which a day counts as a call. Echoed back; null when the request set none."},"decision":{"type":["object","null"],"properties":{"rule":{"type":"string","enum":["threshold","budget"],"description":"`threshold`: a day is called when its chance is at or above the threshold, the rule of a site that can curtail as often as it pays to. `budget`: a day is called at the threshold plus what keeping the call is expected to catch later, the rule of a site with a call budget."},"threshold":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The threshold stated: the cost of one curtailment over the charge it avoids. No day under it is called, whatever the rule."},"per":{"type":["string","null"],"enum":["window","season"],"description":"The period the calls last; null under `threshold`."},"callsLeft":{"type":["integer","null"],"minimum":0,"maximum":366,"description":"The calls in hand for the rest of the period, a call in force counted as used; null under `threshold`."},"keepValue":{"type":["number","null"],"minimum":0,"description":"What the last call in hand is expected to catch if it is kept past today: peaks caught, less the threshold for the call spent. 0 under `threshold`, and with as many calls as days left. Null with no call left."},"thresholdInForce":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance a day has to reach to be called at this publication: `threshold` plus `keepValue`. Null with no call left, when no day is called."}},"required":["rule","threshold","per","callsLeft","keepValue","thresholdInForce"],"description":"How each day's `call` is decided at this publication. Null when the request set no threshold."},"summary":{"type":"string","description":"The forecast in one sentence, as the page's headline reads."},"today":{"type":["object","null"],"properties":{"date":{"type":"string","format":"date","description":"Today, the program's local date."},"open":{"type":"boolean","description":"Today's peak hours are still ahead. False once they have passed."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"The chance today sets the peak (ends among the counted peaks)."},"call":{"type":["boolean","null"],"description":"The chance is at or above the threshold in force (`decision`): `threshold` itself, unless the request stated calls left. Null when the request set no threshold."},"loadSoFarMw":{"type":["number","null"],"description":"Today's highest metered load so far."},"forecastPeakMw":{"type":"number","description":"Today's expected peak load."},"forecastSdMw":{"type":"number","minimum":0,"description":"Its standard deviation."},"operatorForecastMw":{"type":["number","null"],"description":"The grid operator's own forecast of today's peak."},"likelyHours":{"type":["object","null"],"properties":{"firstHourEnding":{"type":"string","format":"date-time","description":"The end of the run's first hour, in the program's local time."},"lastHourEnding":{"type":"string","format":"date-time","description":"The end of its last hour; the same as the first for a single hour."}},"required":["firstHourEnding","lastHourEnding"],"description":"The run of hours most likely to hold today's highest load still to come, the likelier one when the chance splits between two parts of the day; null once they have passed."},"otherLikelyHours":{"type":["object","null"],"properties":{"firstHourEnding":{"type":"string","format":"date-time","description":"The end of the run's first hour, in the program's local time."},"lastHourEnding":{"type":"string","format":"date-time","description":"The end of its last hour; the same as the first for a single hour."}},"required":["firstHourEnding","lastHourEnding"],"description":"The next likeliest run of hours still to come, when today's chance splits and it holds at least a fifth of it: the hours a curtailment on `likelyHours` alone would leave exposed. Null while the chance gathers in one run."},"hours":{"type":"array","items":{"type":"object","properties":{"hourEnding":{"type":"string","format":"date-time","description":"The end of the hour, in the program's local time: 18:00 is 17:00–18:00."},"operatorMw":{"type":["number","null"],"description":"The grid operator's forecast load for the hour, whole MW, from the issues in force when the forecast was published."},"forecastMw":{"type":["number","null"],"description":"The load the forecast expects in the hour, whole MW: the operator's moved by the forecast's correction. The day's highest of these sits below its `forecastPeakMw`, the expected peak, by what each hour's own error adds to the highest of them."},"chanceDayPeak":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance this hour holds the day's highest load, whatever the day's size. A day's hours sum to 1."},"chance":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance this hour sets the peak: the day's `chance` shared by the hour that holds the day's highest load. A day's hours sum to its `chance`."}},"required":["hourEnding","operatorMw","forecastMw","chanceDayPeak","chance"],"description":"One hour of a day: its load as the operator and the forecast expect it, and its chance of setting the peak."},"description":"The day's hours in order. Today's include the hours already past, which have no chance of setting the peak unless the highest load so far came in one of them. A value is null where the forecast had none, beyond the operator's horizon or without a peak-hour profile."}},"required":["date","open","chance","call","loadSoFarMw","forecastPeakMw","forecastSdMw","operatorForecastMw","likelyHours","otherLikelyHours","hours"],"description":"Null when today is outside the window, and for an event program: its days are declared the evening before, so by the day itself the call is a fact and the forecast starts tomorrow."},"days":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","description":"The day, a local date."},"dayType":{"type":"string","enum":["weekday","saturday","sunday","holiday"],"description":"Weekday, Saturday, Sunday or a holiday, as the program's rule reads days."},"counts":{"type":"boolean","description":"The rule counts this day (a weekday, not a holiday, when it says so)."},"daysAhead":{"type":"integer","minimum":0,"description":"Days after today; 0 for an earlier day still open because its load has not come in yet."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"The chance this day sets the peak (or, for an event program, that an event is called)."},"call":{"type":["boolean","null"],"description":"The chance is at or above the threshold in force (`decision`): `threshold` itself, unless the request stated calls left. Null when the request set no threshold."},"forecastPeakMw":{"type":"number","description":"The day's expected peak load, MW."},"forecastSdMw":{"type":"number","minimum":0,"description":"Its standard deviation, MW."},"operatorForecastMw":{"type":["number","null"],"description":"The grid operator's own forecast of the day's peak, MW; null beyond its horizon."},"likelyHours":{"type":["object","null"],"properties":{"firstHourEnding":{"type":"string","format":"date-time","description":"The end of the run's first hour, in the program's local time."},"lastHourEnding":{"type":"string","format":"date-time","description":"The end of its last hour; the same as the first for a single hour."}},"required":["firstHourEnding","lastHourEnding"],"description":"The run of hours most likely to hold the day's highest load, the likelier one when the chance splits between two parts of the day; null without a peak-hour profile."},"otherLikelyHours":{"type":["object","null"],"properties":{"firstHourEnding":{"type":"string","format":"date-time","description":"The end of the run's first hour, in the program's local time."},"lastHourEnding":{"type":"string","format":"date-time","description":"The end of its last hour; the same as the first for a single hour."}},"required":["firstHourEnding","lastHourEnding"],"description":"The next likeliest run of hours, when the day's chance splits and it holds at least a fifth of it. Null while the chance gathers in one run."},"hours":{"type":"array","items":{"type":"object","properties":{"hourEnding":{"type":"string","format":"date-time","description":"The end of the hour, in the program's local time: 18:00 is 17:00–18:00."},"operatorMw":{"type":["number","null"],"description":"The grid operator's forecast load for the hour, whole MW, from the issues in force when the forecast was published."},"forecastMw":{"type":["number","null"],"description":"The load the forecast expects in the hour, whole MW: the operator's moved by the forecast's correction. The day's highest of these sits below its `forecastPeakMw`, the expected peak, by what each hour's own error adds to the highest of them."},"chanceDayPeak":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance this hour holds the day's highest load, whatever the day's size. A day's hours sum to 1."},"chance":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance this hour sets the peak: the day's `chance` shared by the hour that holds the day's highest load. A day's hours sum to its `chance`."}},"required":["hourEnding","operatorMw","forecastMw","chanceDayPeak","chance"],"description":"One hour of a day: its load as the operator and the forecast expect it, and its chance of setting the peak."},"description":"The day's hours in order. Today's include the hours already past, which have no chance of setting the peak unless the highest load so far came in one of them. A value is null where the forecast had none, beyond the operator's horizon or without a peak-hour profile."},"highTempF":{"type":["number","null"],"description":"The forecast daily high, population-weighted."},"basis":{"type":"string","enum":["operator","weather","history"],"description":"What a day's forecast rests on: the grid operator's own load forecast (the coming week), the weather forecast (up to about two weeks), or history for the date (beyond)."}},"required":["date","dayType","counts","daysAhead","chance","call","forecastPeakMw","forecastSdMw","operatorForecastMw","likelyHours","otherLikelyHours","hours","highTempF","basis"],"description":"A day still to come, or an earlier day still open until its load comes in."},"description":"Every remaining day of the window, nearest first, after any earlier day still open because its load has not come in yet."},"currentPeak":{"type":["object","null"],"properties":{"rank":{"type":"integer","minimum":1,"description":"1 is the window's highest so far."},"date":{"type":"string","format":"date","description":"The day that set it, a local date."},"hourEnding":{"type":"string","format":"date-time","description":"End of the settlement interval that set it."},"loadMw":{"type":"number","description":"Its load, MW, as metered."},"chanceHolds":{"type":"number","minimum":0,"maximum":1,"description":"The chance it is still among the counted peaks when the window closes."},"pending":{"type":"boolean","description":"True for a pending peak: its day's load is read but not yet closed in the record, because the operator has not published the rest of the day or never posted one of its hours, so `loadMw` is the highest read so far, the least the day's peak can be. The forecast counts it at once. False once the day is closed."}},"required":["rank","date","hourEnding","loadMw","chanceHolds","pending"],"description":"The lowest of the counted standing peaks: what a later day must beat to count. Null before any day has closed."},"standingPeaks":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer","minimum":1,"description":"1 is the window's highest so far."},"date":{"type":"string","format":"date","description":"The day that set it, a local date."},"hourEnding":{"type":"string","format":"date-time","description":"End of the settlement interval that set it."},"loadMw":{"type":"number","description":"Its load, MW, as metered."},"chanceHolds":{"type":"number","minimum":0,"maximum":1,"description":"The chance it is still among the counted peaks when the window closes."},"pending":{"type":"boolean","description":"True for a pending peak: its day's load is read but not yet closed in the record, because the operator has not published the rest of the day or never posted one of its hours, so `loadMw` is the highest read so far, the least the day's peak can be. The forecast counts it at once. False once the day is closed."}},"required":["rank","date","hourEnding","loadMw","chanceHolds","pending"],"description":"A peak already set in the window."},"description":"Every standing peak, highest first."},"outlook":{"type":"object","properties":{"standingHolds":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance the current peak holds to the window's end: no later day, today included, beats it. Null while no peak is set: no counted day of the window is metered yet."},"today":{"type":"number","minimum":0,"maximum":1,"description":"Today's share of the window's counted peaks."},"laterDays":{"type":"number","minimum":0,"description":"Expected counted peaks among the days still to come."},"likeliestDay":{"type":["object","null"],"properties":{"date":{"type":"string","format":"date","description":"A local date."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"A probability, 0 to 1."}},"required":["date","chance"],"description":"The later day most likely to set the peak, with its chance; null when no day is left."},"sentence":{"type":"string","description":"Where the window's peak most likely comes from, in a sentence."}},"required":["standingHolds","today","laterDays","likeliestDay","sentence"],"description":"Where the window's peak will come from: what stands, today, or a later day."},"settled":{"type":["object","null"],"properties":{"peaks":{"type":"array","items":{"type":"object","properties":{"rank":{"type":"integer","minimum":1,"description":"1 is the window's highest so far."},"date":{"type":"string","format":"date","description":"The day that set it, a local date."},"hourEnding":{"type":"string","format":"date-time","description":"End of the settlement interval that set it."},"loadMw":{"type":"number","description":"Its load, MW, as metered."}},"required":["rank","date","hourEnding","loadMw"],"description":"A peak already set in the window."},"description":"The window's final counted peaks."},"callOnPeakDay":{"type":["object","null"],"properties":{"asOf":{"type":"string","format":"date-time","description":"When the chance was published."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"A probability, 0 to 1."},"outcome":{"type":["string","null"],"enum":["caught","missed","rightly_skipped","called_anyway"],"description":"A day's call judged by what happened: `caught`, called and it set the peak; `missed`, not called but it set the peak; `rightly_skipped`, not called and it did not; `called_anyway`, called but it did not."}},"required":["asOf","chance","outcome"],"description":"The highest peak day's call, judged at `threshold` (outcome null without one)."}},"required":["peaks","callOnPeakDay"],"description":"Set once the window has closed."},"coverageGaps":{"type":"array","items":{"type":"object","properties":{"hourEnding":{"type":"string","format":"date-time","description":"The end of the unpublished interval, in the program's local time."},"couldSetPeak":{"type":"boolean","description":"Its load might have beaten the current peak, so the peak may not stand until it comes in."}},"required":["hourEnding","couldSetPeak"]},"description":"Metered intervals the operator has not published yet; `couldSetPeak` when one might hide a peak."}},"required":["program","window","moment","threshold","decision","summary","today","days","currentPeak","standingPeaks","outlook","settled","coverageGaps"],"description":"The program's forecast for its current window (else its next), as `GET /api/v1/programs/{programId}/forecast` serves it; null before the first, or while no program forecasts the zone."}},"required":["programId","obligationId","siteIds","consequence","action","forecast"]}},"unresolved":{"type":"array","items":{"type":"object","properties":{"siteId":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$"},"obligationId":{"type":"string","pattern":"^[a-z0-9]+(-[a-z0-9]+)*$","description":"e.g. \"ercot-4cp\", \"pjm-nspl\""},"reason":{"type":"string","minLength":1},"needs":{"type":"array","items":{"type":"string","minLength":1},"description":"What the site must state, e.g. \"zone (a zone of spp:zones)\"."}},"required":["siteId","reason","needs"]},"description":"What the profile leaves undecided (see `GET /api/v1/me/exposures`)."}},"required":["customerId","name","asOf","programs","unresolved"]},"JobRun":{"type":"object","properties":{"job":{"type":"string","enum":["ingest-load","ingest-iso-forecast","ingest-ensemble","ingest-settlement","ingest-temperature","rollover","recompute","notify","refit","backfill","replay","resolve","score","digest","prune"]},"startedAt":{"type":"string","format":"date-time"},"finishedAt":{"type":"string","format":"date-time"},"ok":{"type":"boolean"},"counters":{"type":"object","additionalProperties":{"type":"number"},"description":"Free-form counters: rows ingested, publications emitted, ..."},"error":{"type":["string","null"]},"skipped":{"type":["string","null"],"enum":["locked"],"description":"Set when the runner did not run the job: another runner held its lock. `ok` is true; nothing failed."}},"required":["job","startedAt","finishedAt","ok","counters","error","skipped"]},"JobsHealth":{"type":"object","properties":{"now":{"type":"string","format":"date-time"},"jobs":{"type":"array","items":{"type":"object","properties":{"job":{"type":"string","enum":["ingest-load","ingest-iso-forecast","ingest-ensemble","ingest-settlement","ingest-temperature","rollover","recompute","notify","refit","backfill","replay","resolve","score","digest","prune"]},"lastRun":{"type":"object","properties":{"job":{"type":"string","enum":["ingest-load","ingest-iso-forecast","ingest-ensemble","ingest-settlement","ingest-temperature","rollover","recompute","notify","refit","backfill","replay","resolve","score","digest","prune"]},"startedAt":{"type":"string","format":"date-time"},"finishedAt":{"type":"string","format":"date-time"},"ok":{"type":"boolean"},"counters":{"type":"object","additionalProperties":{"type":"number"},"description":"Free-form counters: rows ingested, publications emitted, ..."},"error":{"type":["string","null"]},"skipped":{"type":["string","null"],"enum":["locked"],"description":"Set when the runner did not run the job: another runner held its lock. `ok` is true; nothing failed."}},"required":["job","startedAt","finishedAt","ok","counters","error","skipped"]},"ageMs":{"type":"integer","minimum":0,"description":"Wall-clock age of the last run at `now`."},"lastCompletedRun":{"type":["object","null"],"properties":{"job":{"type":"string","enum":["ingest-load","ingest-iso-forecast","ingest-ensemble","ingest-settlement","ingest-temperature","rollover","recompute","notify","refit","backfill","replay","resolve","score","digest","prune"]},"startedAt":{"type":"string","format":"date-time"},"finishedAt":{"type":"string","format":"date-time"},"ok":{"type":"boolean"},"counters":{"type":"object","additionalProperties":{"type":"number"},"description":"Free-form counters: rows ingested, publications emitted, ..."},"error":{"type":["string","null"]},"skipped":{"type":["string","null"],"enum":["locked"],"description":"Set when the runner did not run the job: another runner held its lock. `ok` is true; nothing failed."}},"required":["job","startedAt","finishedAt","ok","counters","error","skipped"],"description":"Last non-skipped run; a lock skip does not hide its failure or refresh job health."},"stale":{"type":"boolean","description":"No non-skipped run within the job's expected cadence with margin."}},"required":["job","lastRun","ageMs","lastCompletedRun","stale"]}},"locks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"token":{"type":"string","minLength":1,"description":"Opaque holder token; `release` requires it so a late holder cannot free someone else's lease."},"acquiredAt":{"type":"string","format":"date-time"},"expiresAt":{"type":"string","format":"date-time"}},"required":["name","token","acquiredAt","expiresAt"]},"description":"Leases still unexpired at `now`. A lease older than its job's budget is a wedged runner."},"inflight":{"type":"array","items":{"type":"object","properties":{"job":{"type":"string","enum":["ingest-load","ingest-iso-forecast","ingest-ensemble","ingest-settlement","ingest-temperature","rollover","recompute","notify","refit","backfill","replay","resolve","score","digest","prune"]},"startedAt":{"type":"string","format":"date-time"},"ageMs":{"type":"integer","minimum":0},"overdue":{"type":"boolean"}},"required":["job","startedAt","ageMs","overdue"]},"description":"Runs that have started and not yet recorded a result. `overdue` (older than budget plus lease slack) means the platform killed the process; the next runner of that job records it as a failed run."},"windows":{"type":"array","items":{"type":"object","properties":{"programId":{"type":"string","minLength":1,"description":"e.g. \"ercot-4cp\""},"windowId":{"type":"string","minLength":1,"description":"e.g. \"ercot-4cp:2026-08\""},"computedAt":{"type":["string","null"],"format":"date-time","description":"When the window's latest publication was computed."},"ageMs":{"type":["integer","null"],"minimum":0,"description":"Age of that publication from `computedAt`; null for a missing one or a future/invalid clock."},"stale":{"type":"boolean"}},"required":["programId","windowId","computedAt","ageMs","stale"]}},"feeds":{"type":"array","items":{"type":"object","properties":{"job":{"type":"string","enum":["ingest-load","ingest-iso-forecast","ingest-ensemble","ingest-settlement","ingest-temperature","rollover","recompute","notify","refit","backfill","replay","resolve","score","digest","prune"]},"lastSuccessAt":{"type":["string","null"],"format":"date-time"},"ageMs":{"type":["integer","null"],"minimum":0},"stale":{"type":"boolean"}},"required":["job","lastSuccessAt","ageMs","stale"]},"description":"Per ingest job: when it last succeeded."},"ok":{"type":"boolean","description":"True when scheduled jobs have no outstanding failure and nothing above is stale."}},"required":["now","jobs","locks","inflight","windows","feeds","ok"]},"PortfolioSummary":{"type":"object","properties":{"id":{"type":"string","description":"The portfolio's id, the path segment of its routes."},"name":{"type":"string","description":"Its name, as the organization set it."},"siteIds":{"type":"array","items":{"type":"string"},"description":"Sites of the organization's profile (`/api/v1/me/exposures`) it groups."},"alert":{"type":["object","null"],"properties":{"threshold":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The threshold of a site without one of its own, such as one new to the portfolio."},"thresholds":{"type":"object","additionalProperties":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"Fire when a day's chance reaches this (the chance an event is called, for an event program)."},"description":"Each site's own threshold, by site id, as its program's record calibrates it."},"budgets":{"type":"object","additionalProperties":{"type":"object","properties":{"calls":{"type":"integer","minimum":1,"maximum":366,"description":"The calls the site can act on in each period."},"per":{"type":"string","enum":["window","season"],"description":"How long a budget's calls last. `window`: each billing window of the program, a month of a 12CP. `season`: every window of the program's year together, a summer or a calendar year. The two are one for a program with a single window a year."},"left":{"type":"object","properties":{"calls":{"type":"integer","minimum":0,"maximum":366,"description":"The calls left when the count was stated."},"asOf":{"type":"string","format":"date-time","description":"When it was stated."}},"required":["calls","asOf"],"description":"The count the calls left are kept from: stated when the budget is set, and again whenever the site's own count differs. It counts a call in force when it was stated as used. Each call made after `asOf` takes one off, for good once it can no longer be taken back, until the period ends. A new period starts from `calls`."}},"required":["calls","per","left"],"description":"A site's call budget: the calls it can act on in a period. A site with one is called at its threshold plus what keeping the call is expected to catch later in the period."},"default":{},"description":"Each site's call budget, by site id. A site without one is called at its threshold."},"muted":{"type":"array","items":{"type":"string"},"default":[],"description":"Sites, by id, that send no alert."},"events":{"type":"array","items":{"type":"string","enum":["day.ahead","day.called","day.cleared"],"description":"`day.ahead` (warning): a day one to three days out reaches the threshold · `day.called` (call): from the day's morning, its chance reaches the threshold, with its likely peak hours; an event program's day, declared the evening before, is called on its eve. A called day whose likely hours move and hold for an hour sends a call update, also `day.called`, under `hours:{date}` · `day.cleared` (stand-down): a warning or call ends, because the chance stayed below half the threshold for an hour or the day's peak hours passed. A day that comes back after a stand-down is warned or called again once it holds the threshold for an hour, under a numbered key (`call:{date}:2`). Forecast advisories, not operator dispatch instructions."},"minItems":1,"description":"The events it sends."},"destinations":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["webhook"],"description":"Which kind of destination."},"host":{"type":"string","description":"The hook's host. The URL itself is a credential, shown only at creation."}},"required":["kind","host"]},{"type":"object","properties":{"kind":{"type":"string","enum":["email"],"description":"An email."},"to":{"type":"string","format":"email","description":"The address it goes to."},"confirmed":{"type":"boolean","description":"Whether the address confirmed it from the email sent there; alerts wait until it does."}},"required":["kind","to","confirmed"]},{"type":"object","properties":{"kind":{"type":"string","enum":["slack"],"description":"Which kind of destination."},"host":{"type":"string","description":"The hook's host. The URL itself is a credential, shown only at creation."},"channel":{"type":"string","description":"The channel, \"#ops\", where the Slack app installed the hook."},"team":{"type":"string","description":"The workspace, where the Slack app installed the hook."}},"required":["kind","host"]},{"type":"object","properties":{"kind":{"type":"string","enum":["teams"],"description":"Which kind of destination."},"host":{"type":"string","description":"The hook's host. The URL itself is a credential, shown only at creation."}},"required":["kind","host"]}]},"description":"In order: a destination is named by its index, as the test route takes it."}},"required":["threshold","thresholds","events","destinations"],"description":"Null while the portfolio sets none."},"createdAt":{"type":"string","format":"date-time","description":"When it was made."}},"required":["id","name","siteIds","alert","createdAt"]},"PortfolioDetail":{"type":"object","properties":{"id":{"type":"string","description":"The portfolio's id, the path segment of its routes."},"name":{"type":"string","description":"Its name, as the organization set it."},"siteIds":{"type":"array","items":{"type":"string"},"description":"Sites of the organization's profile (`/api/v1/me/exposures`) it groups."},"alert":{"type":["object","null"],"properties":{"threshold":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The threshold of a site without one of its own, such as one new to the portfolio."},"thresholds":{"type":"object","additionalProperties":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"Fire when a day's chance reaches this (the chance an event is called, for an event program)."},"description":"Each site's own threshold, by site id, as its program's record calibrates it."},"budgets":{"type":"object","additionalProperties":{"type":"object","properties":{"calls":{"type":"integer","minimum":1,"maximum":366,"description":"The calls the site can act on in each period."},"per":{"type":"string","enum":["window","season"],"description":"How long a budget's calls last. `window`: each billing window of the program, a month of a 12CP. `season`: every window of the program's year together, a summer or a calendar year. The two are one for a program with a single window a year."},"left":{"type":"object","properties":{"calls":{"type":"integer","minimum":0,"maximum":366,"description":"The calls left when the count was stated."},"asOf":{"type":"string","format":"date-time","description":"When it was stated."}},"required":["calls","asOf"],"description":"The count the calls left are kept from: stated when the budget is set, and again whenever the site's own count differs. It counts a call in force when it was stated as used. Each call made after `asOf` takes one off, for good once it can no longer be taken back, until the period ends. A new period starts from `calls`."}},"required":["calls","per","left"],"description":"A site's call budget: the calls it can act on in a period. A site with one is called at its threshold plus what keeping the call is expected to catch later in the period."},"default":{},"description":"Each site's call budget, by site id. A site without one is called at its threshold."},"muted":{"type":"array","items":{"type":"string"},"default":[],"description":"Sites, by id, that send no alert."},"events":{"type":"array","items":{"type":"string","enum":["day.ahead","day.called","day.cleared"],"description":"`day.ahead` (warning): a day one to three days out reaches the threshold · `day.called` (call): from the day's morning, its chance reaches the threshold, with its likely peak hours; an event program's day, declared the evening before, is called on its eve. A called day whose likely hours move and hold for an hour sends a call update, also `day.called`, under `hours:{date}` · `day.cleared` (stand-down): a warning or call ends, because the chance stayed below half the threshold for an hour or the day's peak hours passed. A day that comes back after a stand-down is warned or called again once it holds the threshold for an hour, under a numbered key (`call:{date}:2`). Forecast advisories, not operator dispatch instructions."},"minItems":1,"description":"The events it sends."},"destinations":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["webhook"],"description":"Which kind of destination."},"host":{"type":"string","description":"The hook's host. The URL itself is a credential, shown only at creation."}},"required":["kind","host"]},{"type":"object","properties":{"kind":{"type":"string","enum":["email"],"description":"An email."},"to":{"type":"string","format":"email","description":"The address it goes to."},"confirmed":{"type":"boolean","description":"Whether the address confirmed it from the email sent there; alerts wait until it does."}},"required":["kind","to","confirmed"]},{"type":"object","properties":{"kind":{"type":"string","enum":["slack"],"description":"Which kind of destination."},"host":{"type":"string","description":"The hook's host. The URL itself is a credential, shown only at creation."},"channel":{"type":"string","description":"The channel, \"#ops\", where the Slack app installed the hook."},"team":{"type":"string","description":"The workspace, where the Slack app installed the hook."}},"required":["kind","host"]},{"type":"object","properties":{"kind":{"type":"string","enum":["teams"],"description":"Which kind of destination."},"host":{"type":"string","description":"The hook's host. The URL itself is a credential, shown only at creation."}},"required":["kind","host"]}]},"description":"In order: a destination is named by its index, as the test route takes it."}},"required":["threshold","thresholds","events","destinations"],"description":"Null while the portfolio sets none."},"createdAt":{"type":"string","format":"date-time","description":"When it was made."},"programs":{"type":"array","items":{"type":"string","minLength":1,"description":"e.g. \"ercot-4cp\""},"description":"The programs that bill its sites, that a forecast covers and that the key's plan reads: each alerts at the thresholds of the sites it bills."},"decisions":{"type":"array","items":{"type":"object","properties":{"rule":{"type":"string","enum":["threshold","budget"],"description":"`threshold`: a day is called when its chance is at or above the threshold, the rule of a site that can curtail as often as it pays to. `budget`: a day is called at the threshold plus what keeping the call is expected to catch later, the rule of a site with a call budget."},"threshold":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The threshold stated: the cost of one curtailment over the charge it avoids. No day under it is called, whatever the rule."},"per":{"type":["string","null"],"enum":["window","season"],"description":"The period the calls last; null under `threshold`."},"callsLeft":{"type":["integer","null"],"minimum":0,"maximum":366,"description":"The calls in hand for the rest of the period, a call in force counted as used; null under `threshold`."},"keepValue":{"type":["number","null"],"minimum":0,"description":"What the last call in hand is expected to catch if it is kept past today: peaks caught, less the threshold for the call spent. 0 under `threshold`, and with as many calls as days left. Null with no call left."},"thresholdInForce":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance a day has to reach to be called at this publication: `threshold` plus `keepValue`. Null with no call left, when no day is called."},"programId":{"type":"string","minLength":1,"description":"e.g. \"ercot-4cp\""},"siteIds":{"type":"array","items":{"type":"string"},"description":"The sites the program bills that state these terms, and so share its calls."},"budget":{"type":["object","null"],"properties":{"calls":{"type":"integer","minimum":1,"maximum":366,"description":"The calls the site can act on in each period."},"per":{"type":"string","enum":["window","season"],"description":"How long a budget's calls last. `window`: each billing window of the program, a month of a 12CP. `season`: every window of the program's year together, a summer or a calendar year. The two are one for a program with a single window a year."},"left":{"type":"object","properties":{"calls":{"type":"integer","minimum":0,"maximum":366,"description":"The calls left when the count was stated."},"asOf":{"type":"string","format":"date-time","description":"When it was stated."}},"required":["calls","asOf"],"description":"The count the calls left are kept from: stated when the budget is set, and again whenever the site's own count differs. It counts a call in force when it was stated as used. Each call made after `asOf` takes one off, for good once it can no longer be taken back, until the period ends. A new period starts from `calls`."}},"required":["calls","per","left"],"description":"Their call budget as set; null without one."},"asOf":{"type":["string","null"],"format":"date-time","description":"When the publication the decision is read from was made, in the program's local time. Null while none is in reach, when a budget's `keepValue` and `thresholdInForce` are null too."}},"required":["rule","threshold","per","callsLeft","keepValue","thresholdInForce","programId","siteIds","budget","asOf"],"description":"How a day is called at one publication: the rule, what it was given, and the threshold it puts in force. Each day's `call` is its chance at or above `thresholdInForce`."},"description":"How each program's days are called now, once for each set of terms its alerting sites state (a threshold, and a call budget where a site has one), by program. Empty while no program bills an alerting site."},"alerts":{"type":"array","items":{"type":"object","properties":{"programId":{"type":"string","minLength":1,"description":"e.g. \"ercot-4cp\""},"threshold":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"Fire when a day's chance reaches this (the chance an event is called, for an event program)."},"budget":{"type":["object","null"],"properties":{"calls":{"type":"integer","minimum":1,"maximum":366,"description":"The calls the site can act on in each period."},"per":{"type":"string","enum":["window","season"],"description":"How long a budget's calls last. `window`: each billing window of the program, a month of a 12CP. `season`: every window of the program's year together, a summer or a calendar year. The two are one for a program with a single window a year."},"left":{"type":"object","properties":{"calls":{"type":"integer","minimum":0,"maximum":366,"description":"The calls left when the count was stated."},"asOf":{"type":"string","format":"date-time","description":"When it was stated."}},"required":["calls","asOf"],"description":"The count the calls left are kept from: stated when the budget is set, and again whenever the site's own count differs. It counts a call in force when it was stated as used. Each call made after `asOf` takes one off, for good once it can no longer be taken back, until the period ends. A new period starts from `calls`."}},"required":["calls","per","left"],"description":"The call budget the day is called under; null for the threshold alone."},"thresholdInForce":{"type":"number","minimum":0,"maximum":1,"description":"The threshold in force when the warning or call was raised, which a stand-down is measured against: `threshold` without a budget."},"date":{"type":"string","format":"date","description":"The day it is about: today, or a day ahead."},"stage":{"type":"string","enum":["warned","called","stood_down"],"description":"`warned`: a day ahead may be called. `called`: the day is called, its call or the update of it in force. A call stands from the organization's stand-down cutoff before its first hour until its hours pass, whatever its chance does. `stood_down`: the warning or call was withdrawn, or the day's peak hours passed."},"event":{"type":"string","enum":["day.ahead","day.called","day.cleared"],"description":"The event it was, or is, sent as."},"since":{"type":"string","format":"date-time","description":"When the publication that raised it was made, in the program's local time."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"The day's chance in that publication."},"likelyHours":{"type":["object","null"],"properties":{"firstHourEnding":{"type":"string","format":"date-time","description":"The end of the run's first hour, in the program's local time."},"lastHourEnding":{"type":"string","format":"date-time","description":"The end of its last hour; the same as the first for a single hour."}},"required":["firstHourEnding","lastHourEnding"],"description":"For a call, the likely peak hours it names, as its latest update moved them. For a stand-down of a call, the hours that call named. Null otherwise."},"reason":{"type":["string","null"],"enum":["fell","passed","spent"],"description":"For a stand-down, why: the chance fell and stayed down, the peak hours passed, or the budget's last call went to another day."},"ends":{"type":["string","null"],"enum":["warning","call"],"description":"For a stand-down, what it ended. A call ended because its peak hours passed (`reason` `passed`) ran its course, so its day was a called day. Null otherwise."},"sentAt":{"type":["string","null"],"format":"date-time","description":"When the portfolio's alert first delivered it, in the program's local time. Null while it has not: none of its destinations took it yet, it waits for the morning, its event is not chosen, or it was dropped as moot."}},"required":["programId","threshold","budget","thresholdInForce","date","stage","event","since","chance","likelyHours","reason","ends","sentAt"]},"description":"Each day from today on whose alert has raised something, under each set of terms the alert sends at, by program and then date. Empty while the alert sends nothing."}},"required":["id","name","siteIds","alert","createdAt","programs","decisions","alerts"]},"PortfolioCreate":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120,"description":"The new portfolio's name."}},"required":["name"]},"PortfolioAlertSet":{"type":"object","properties":{"threshold":{"type":"number","exclusiveMinimum":0,"maximum":1,"default":0.1,"description":"The threshold of a site without one of its own."},"thresholds":{"type":"object","additionalProperties":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"Fire when a day's chance reaches this (the chance an event is called, for an event program)."},"default":{},"description":"Each site's own threshold, by site id."},"budgets":{"type":"object","additionalProperties":{"type":"object","properties":{"calls":{"type":"integer","minimum":1,"maximum":366,"description":"The calls the site can act on in each period."},"per":{"type":"string","enum":["window","season"],"description":"How long a budget's calls last. `window`: each billing window of the program, a month of a 12CP. `season`: every window of the program's year together, a summer or a calendar year. The two are one for a program with a single window a year."},"left":{"type":"integer","minimum":0,"maximum":366,"description":"The calls left now, where the site's own count differs from the one kept. Left out, an unchanged budget keeps its count and a new or changed one starts from the calls it had left, at most `calls`."}},"required":["calls","per"]},"default":{},"description":"Each site's call budget, by site id. A site left out has none and is called at its threshold."},"muted":{"type":"array","items":{"type":"string"},"default":[],"description":"Sites, by id, that send no alert."},"events":{"type":"array","items":{"type":"string","enum":["day.ahead","day.called","day.cleared"],"description":"`day.ahead` (warning): a day one to three days out reaches the threshold · `day.called` (call): from the day's morning, its chance reaches the threshold, with its likely peak hours; an event program's day, declared the evening before, is called on its eve. A called day whose likely hours move and hold for an hour sends a call update, also `day.called`, under `hours:{date}` · `day.cleared` (stand-down): a warning or call ends, because the chance stayed below half the threshold for an hour or the day's peak hours passed. A day that comes back after a stand-down is warned or called again once it holds the threshold for an hour, under a numbered key (`call:{date}:2`). Forecast advisories, not operator dispatch instructions."},"minItems":1,"default":["day.ahead","day.called","day.cleared"],"description":"The events to receive; every type by default."},"destinations":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["webhook"],"description":"A signed HTTPS POST."},"url":{"type":"string","format":"uri","description":"https URL of a public host. Loopback, private, link-local and cloud-metadata addresses are refused; redirects are not followed."}},"required":["kind","url"]},{"type":"object","properties":{"kind":{"type":"string","enum":["email"],"description":"An email."},"to":{"type":"string","format":"email","description":"The address it goes to."}},"required":["kind","to"]},{"type":"object","properties":{"kind":{"type":"string","enum":["slack"],"description":"A Slack message, through an incoming webhook."},"url":{"type":"string","format":"uri","description":"The Slack incoming webhook; a credential, shown to the subscriber once, at creation."}},"required":["kind","url"]},{"type":"object","properties":{"kind":{"type":"string","enum":["teams"],"description":"A Microsoft Teams message, through a Workflows webhook."},"url":{"type":"string","format":"uri","description":"The Teams Workflows webhook; a credential, shown to the subscriber once, at creation."}},"required":["kind","url"]}]},"maxItems":10}},"required":["destinations"]},"PortfolioAlertSaved":{"type":"object","properties":{"portfolio":{"type":"object","properties":{"id":{"type":"string","description":"The portfolio's id, the path segment of its routes."},"name":{"type":"string","description":"Its name, as the organization set it."},"siteIds":{"type":"array","items":{"type":"string"},"description":"Sites of the organization's profile (`/api/v1/me/exposures`) it groups."},"alert":{"type":["object","null"],"properties":{"threshold":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The threshold of a site without one of its own, such as one new to the portfolio."},"thresholds":{"type":"object","additionalProperties":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"Fire when a day's chance reaches this (the chance an event is called, for an event program)."},"description":"Each site's own threshold, by site id, as its program's record calibrates it."},"budgets":{"type":"object","additionalProperties":{"type":"object","properties":{"calls":{"type":"integer","minimum":1,"maximum":366,"description":"The calls the site can act on in each period."},"per":{"type":"string","enum":["window","season"],"description":"How long a budget's calls last. `window`: each billing window of the program, a month of a 12CP. `season`: every window of the program's year together, a summer or a calendar year. The two are one for a program with a single window a year."},"left":{"type":"object","properties":{"calls":{"type":"integer","minimum":0,"maximum":366,"description":"The calls left when the count was stated."},"asOf":{"type":"string","format":"date-time","description":"When it was stated."}},"required":["calls","asOf"],"description":"The count the calls left are kept from: stated when the budget is set, and again whenever the site's own count differs. It counts a call in force when it was stated as used. Each call made after `asOf` takes one off, for good once it can no longer be taken back, until the period ends. A new period starts from `calls`."}},"required":["calls","per","left"],"description":"A site's call budget: the calls it can act on in a period. A site with one is called at its threshold plus what keeping the call is expected to catch later in the period."},"default":{},"description":"Each site's call budget, by site id. A site without one is called at its threshold."},"muted":{"type":"array","items":{"type":"string"},"default":[],"description":"Sites, by id, that send no alert."},"events":{"type":"array","items":{"type":"string","enum":["day.ahead","day.called","day.cleared"],"description":"`day.ahead` (warning): a day one to three days out reaches the threshold · `day.called` (call): from the day's morning, its chance reaches the threshold, with its likely peak hours; an event program's day, declared the evening before, is called on its eve. A called day whose likely hours move and hold for an hour sends a call update, also `day.called`, under `hours:{date}` · `day.cleared` (stand-down): a warning or call ends, because the chance stayed below half the threshold for an hour or the day's peak hours passed. A day that comes back after a stand-down is warned or called again once it holds the threshold for an hour, under a numbered key (`call:{date}:2`). Forecast advisories, not operator dispatch instructions."},"minItems":1,"description":"The events it sends."},"destinations":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["webhook"],"description":"Which kind of destination."},"host":{"type":"string","description":"The hook's host. The URL itself is a credential, shown only at creation."}},"required":["kind","host"]},{"type":"object","properties":{"kind":{"type":"string","enum":["email"],"description":"An email."},"to":{"type":"string","format":"email","description":"The address it goes to."},"confirmed":{"type":"boolean","description":"Whether the address confirmed it from the email sent there; alerts wait until it does."}},"required":["kind","to","confirmed"]},{"type":"object","properties":{"kind":{"type":"string","enum":["slack"],"description":"Which kind of destination."},"host":{"type":"string","description":"The hook's host. The URL itself is a credential, shown only at creation."},"channel":{"type":"string","description":"The channel, \"#ops\", where the Slack app installed the hook."},"team":{"type":"string","description":"The workspace, where the Slack app installed the hook."}},"required":["kind","host"]},{"type":"object","properties":{"kind":{"type":"string","enum":["teams"],"description":"Which kind of destination."},"host":{"type":"string","description":"The hook's host. The URL itself is a credential, shown only at creation."}},"required":["kind","host"]}]},"description":"In order: a destination is named by its index, as the test route takes it."}},"required":["threshold","thresholds","events","destinations"],"description":"Null while the portfolio sets none."},"createdAt":{"type":"string","format":"date-time","description":"When it was made."},"programs":{"type":"array","items":{"type":"string","minLength":1,"description":"e.g. \"ercot-4cp\""},"description":"The programs that bill its sites, that a forecast covers and that the key's plan reads: each alerts at the thresholds of the sites it bills."},"decisions":{"type":"array","items":{"type":"object","properties":{"rule":{"type":"string","enum":["threshold","budget"],"description":"`threshold`: a day is called when its chance is at or above the threshold, the rule of a site that can curtail as often as it pays to. `budget`: a day is called at the threshold plus what keeping the call is expected to catch later, the rule of a site with a call budget."},"threshold":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The threshold stated: the cost of one curtailment over the charge it avoids. No day under it is called, whatever the rule."},"per":{"type":["string","null"],"enum":["window","season"],"description":"The period the calls last; null under `threshold`."},"callsLeft":{"type":["integer","null"],"minimum":0,"maximum":366,"description":"The calls in hand for the rest of the period, a call in force counted as used; null under `threshold`."},"keepValue":{"type":["number","null"],"minimum":0,"description":"What the last call in hand is expected to catch if it is kept past today: peaks caught, less the threshold for the call spent. 0 under `threshold`, and with as many calls as days left. Null with no call left."},"thresholdInForce":{"type":["number","null"],"minimum":0,"maximum":1,"description":"The chance a day has to reach to be called at this publication: `threshold` plus `keepValue`. Null with no call left, when no day is called."},"programId":{"type":"string","minLength":1,"description":"e.g. \"ercot-4cp\""},"siteIds":{"type":"array","items":{"type":"string"},"description":"The sites the program bills that state these terms, and so share its calls."},"budget":{"type":["object","null"],"properties":{"calls":{"type":"integer","minimum":1,"maximum":366,"description":"The calls the site can act on in each period."},"per":{"type":"string","enum":["window","season"],"description":"How long a budget's calls last. `window`: each billing window of the program, a month of a 12CP. `season`: every window of the program's year together, a summer or a calendar year. The two are one for a program with a single window a year."},"left":{"type":"object","properties":{"calls":{"type":"integer","minimum":0,"maximum":366,"description":"The calls left when the count was stated."},"asOf":{"type":"string","format":"date-time","description":"When it was stated."}},"required":["calls","asOf"],"description":"The count the calls left are kept from: stated when the budget is set, and again whenever the site's own count differs. It counts a call in force when it was stated as used. Each call made after `asOf` takes one off, for good once it can no longer be taken back, until the period ends. A new period starts from `calls`."}},"required":["calls","per","left"],"description":"Their call budget as set; null without one."},"asOf":{"type":["string","null"],"format":"date-time","description":"When the publication the decision is read from was made, in the program's local time. Null while none is in reach, when a budget's `keepValue` and `thresholdInForce` are null too."}},"required":["rule","threshold","per","callsLeft","keepValue","thresholdInForce","programId","siteIds","budget","asOf"],"description":"How a day is called at one publication: the rule, what it was given, and the threshold it puts in force. Each day's `call` is its chance at or above `thresholdInForce`."},"description":"How each program's days are called now, once for each set of terms its alerting sites state (a threshold, and a call budget where a site has one), by program. Empty while no program bills an alerting site."},"alerts":{"type":"array","items":{"type":"object","properties":{"programId":{"type":"string","minLength":1,"description":"e.g. \"ercot-4cp\""},"threshold":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"Fire when a day's chance reaches this (the chance an event is called, for an event program)."},"budget":{"type":["object","null"],"properties":{"calls":{"type":"integer","minimum":1,"maximum":366,"description":"The calls the site can act on in each period."},"per":{"type":"string","enum":["window","season"],"description":"How long a budget's calls last. `window`: each billing window of the program, a month of a 12CP. `season`: every window of the program's year together, a summer or a calendar year. The two are one for a program with a single window a year."},"left":{"type":"object","properties":{"calls":{"type":"integer","minimum":0,"maximum":366,"description":"The calls left when the count was stated."},"asOf":{"type":"string","format":"date-time","description":"When it was stated."}},"required":["calls","asOf"],"description":"The count the calls left are kept from: stated when the budget is set, and again whenever the site's own count differs. It counts a call in force when it was stated as used. Each call made after `asOf` takes one off, for good once it can no longer be taken back, until the period ends. A new period starts from `calls`."}},"required":["calls","per","left"],"description":"The call budget the day is called under; null for the threshold alone."},"thresholdInForce":{"type":"number","minimum":0,"maximum":1,"description":"The threshold in force when the warning or call was raised, which a stand-down is measured against: `threshold` without a budget."},"date":{"type":"string","format":"date","description":"The day it is about: today, or a day ahead."},"stage":{"type":"string","enum":["warned","called","stood_down"],"description":"`warned`: a day ahead may be called. `called`: the day is called, its call or the update of it in force. A call stands from the organization's stand-down cutoff before its first hour until its hours pass, whatever its chance does. `stood_down`: the warning or call was withdrawn, or the day's peak hours passed."},"event":{"type":"string","enum":["day.ahead","day.called","day.cleared"],"description":"The event it was, or is, sent as."},"since":{"type":"string","format":"date-time","description":"When the publication that raised it was made, in the program's local time."},"chance":{"type":"number","minimum":0,"maximum":1,"description":"The day's chance in that publication."},"likelyHours":{"type":["object","null"],"properties":{"firstHourEnding":{"type":"string","format":"date-time","description":"The end of the run's first hour, in the program's local time."},"lastHourEnding":{"type":"string","format":"date-time","description":"The end of its last hour; the same as the first for a single hour."}},"required":["firstHourEnding","lastHourEnding"],"description":"For a call, the likely peak hours it names, as its latest update moved them. For a stand-down of a call, the hours that call named. Null otherwise."},"reason":{"type":["string","null"],"enum":["fell","passed","spent"],"description":"For a stand-down, why: the chance fell and stayed down, the peak hours passed, or the budget's last call went to another day."},"ends":{"type":["string","null"],"enum":["warning","call"],"description":"For a stand-down, what it ended. A call ended because its peak hours passed (`reason` `passed`) ran its course, so its day was a called day. Null otherwise."},"sentAt":{"type":["string","null"],"format":"date-time","description":"When the portfolio's alert first delivered it, in the program's local time. Null while it has not: none of its destinations took it yet, it waits for the morning, its event is not chosen, or it was dropped as moot."}},"required":["programId","threshold","budget","thresholdInForce","date","stage","event","since","chance","likelyHours","reason","ends","sentAt"]},"description":"Each day from today on whose alert has raised something, under each set of terms the alert sends at, by program and then date. Empty while the alert sends nothing."}},"required":["id","name","siteIds","alert","createdAt","programs","decisions","alerts"]},"secrets":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"secret":{"type":"string"}},"required":["url","secret"]},"description":"For each webhook new to the alert, the key for `x-tinypeak-signature`. Keep it: it is not shown again."}},"required":["portfolio","secrets"]}},"parameters":{}},"paths":{"/api/v1/programs":{"get":{"tags":["programs"],"security":[{"bearerAuth":[]}],"operationId":"listPrograms","summary":"Every program","description":"The catalog: each program's name and market, whether it is forecast now (`served`) or mapped for later (`planned`), what its daily `chance` measures, its rule in a phrase, the tags that tell programs apart, and the window open now or next.","responses":{"200":{"description":"The programs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgramList"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/programs/{programId}":{"get":{"tags":["programs"],"security":[{"bearerAuth":[]}],"operationId":"getProgram","summary":"One program","description":"The program page as data: its introduction, terms (what the outcome costs or pays, what a likely day asks), the rule in full with the tariffs and manuals it is read from and when they were last checked, its zones, and the program year's calendar of counting days. Catalog information: any key reads any program's, planned ones included.","parameters":[{"schema":{"type":"string","description":"Program id from the catalog, e.g. `nyiso-icap`.","example":"nyiso-icap"},"required":true,"name":"programId","in":"path"}],"responses":{"200":{"description":"The program.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgramDetail"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`unknown_program`, or `not_found` when the program exists but has nothing to show.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/programs/{programId}/forecast":{"get":{"tags":["forecast"],"security":[{"bearerAuth":[]}],"operationId":"getForecast","summary":"The forecast","description":"What the forecast page shows: today's chance with its likely hours, every day still to come with its chance, forecast load and what it rests on, the current peaks and the current peak, where the window's peak will most likely come from, and once the window closes, its final peak and how the peak day was called. Published hourly, with the calls at 06:00, 12:00 and 19:00 local scored. With `threshold`, each day says whether it is a call. With `callsLeft` too, the call is decided under a call budget, at the threshold plus what keeping a call is worth, and `decision` says what that threshold in force is. `at` replays any past moment. Any key, including a free one; `HEAD` returns the freshness headers alone.","parameters":[{"schema":{"type":"string","description":"Program id from the catalog, e.g. `nyiso-icap`.","example":"nyiso-icap"},"required":true,"name":"programId","in":"path"},{"schema":{"type":"string","minLength":1,"description":"Window id, `{programId}:{YYYY-MM}` for monthly programs, `{programId}:{YYYY}` for seasons; defaults to the window open today, else the next one. Percent-encode the colon.","example":"nyiso-icap:2026"},"required":false,"name":"window","in":"query"},{"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"string","format":"date-time"}],"description":"Replay: the forecast as it stood at this instant, on the program's clock (the publication standing then). A bare date means that day's evening call. A moment ahead of now is a 400. Replays never change.","example":"2026-08-20"},"required":false,"name":"at","in":"query"},{"schema":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The chance at or above which a day counts as a call, 0 to 1. Adds `call` to each day and judges calls; omit for chances alone.","example":0.1},"required":false,"name":"threshold","in":"query"},{"schema":{"type":["integer","null"],"minimum":0,"maximum":366,"description":"With `threshold`: the calls left in a site's call budget. Each day's `call` is then judged at the threshold in force, `threshold` plus what keeping a call is worth over the days left in `per`, and `decision` says what that is. Omit for the threshold alone. An event program takes no budget.","example":3},"required":false,"name":"callsLeft","in":"query"},{"schema":{"type":"string","enum":["window","season"],"description":"With `callsLeft`: how long the calls last, `season` (the default, every window of the program's year) or `window` (the billing window alone)."},"required":false,"description":"How long a budget's calls last. `window`: each billing window of the program, a month of a 12CP. `season`: every window of the program's year together, a summer or a calendar year. The two are one for a program with a single window a year.","name":"per","in":"query"}],"responses":{"200":{"description":"The forecast.","headers":{"Last-Modified":{"description":"When the forecast was published (HTTP date).","schema":{"type":"string"}},"x-tinypeak-as-of":{"description":"When the forecast was published.","schema":{"type":"string","format":"date-time"}},"x-tinypeak-model":{"description":"Model version; a new version starts a new column on the record.","schema":{"type":"string"}},"x-tinypeak-provenance":{"description":"`live`, `replayed` or `sample`: only `live` is for dispatch.","schema":{"type":"string"}},"x-tinypeak-load-through":{"description":"End of the last metered interval the forecast saw.","schema":{"type":"string","format":"date-time"}},"x-tinypeak-next-update-after":{"description":"The next scheduled publication; absent once the window has settled.","schema":{"type":"string","format":"date-time"}},"x-tinypeak-contract":{"description":"The contract version of every response body.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Forecast"}}}},"304":{"description":"Not modified: `If-Modified-Since` is at or after the publication's `last-modified`. No body; checked after the key."},"400":{"description":"Malformed query or path parameter; `message` names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`unknown_program`, or `not_found` when the program exists but has nothing to show.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"head":{"tags":["forecast"],"security":[{"bearerAuth":[]}],"operationId":"headForecast","summary":"Freshness only","parameters":[{"schema":{"type":"string","description":"Program id from the catalog, e.g. `nyiso-icap`.","example":"nyiso-icap"},"required":true,"name":"programId","in":"path"},{"schema":{"type":"string","minLength":1,"description":"Window id, `{programId}:{YYYY-MM}` for monthly programs, `{programId}:{YYYY}` for seasons; defaults to the window open today, else the next one. Percent-encode the colon.","example":"nyiso-icap:2026"},"required":false,"name":"window","in":"query"},{"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"string","format":"date-time"}],"description":"Replay: the forecast as it stood at this instant, on the program's clock (the publication standing then). A bare date means that day's evening call. A moment ahead of now is a 400. Replays never change.","example":"2026-08-20"},"required":false,"name":"at","in":"query"},{"schema":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The chance at or above which a day counts as a call, 0 to 1. Adds `call` to each day and judges calls; omit for chances alone.","example":0.1},"required":false,"name":"threshold","in":"query"},{"schema":{"type":["integer","null"],"minimum":0,"maximum":366,"description":"With `threshold`: the calls left in a site's call budget. Each day's `call` is then judged at the threshold in force, `threshold` plus what keeping a call is worth over the days left in `per`, and `decision` says what that is. Omit for the threshold alone. An event program takes no budget.","example":3},"required":false,"name":"callsLeft","in":"query"},{"schema":{"type":"string","enum":["window","season"],"description":"With `callsLeft`: how long the calls last, `season` (the default, every window of the program's year) or `window` (the billing window alone)."},"required":false,"description":"How long a budget's calls last. `window`: each billing window of the program, a month of a 12CP. `season`: every window of the program's year together, a summer or a calendar year. The two are one for a program with a single window a year.","name":"per","in":"query"}],"responses":{"200":{"description":"Same status and headers as GET, no body.","headers":{"Last-Modified":{"description":"When the forecast was published (HTTP date).","schema":{"type":"string"}},"x-tinypeak-as-of":{"description":"When the forecast was published.","schema":{"type":"string","format":"date-time"}},"x-tinypeak-model":{"description":"Model version; a new version starts a new column on the record.","schema":{"type":"string"}},"x-tinypeak-provenance":{"description":"`live`, `replayed` or `sample`: only `live` is for dispatch.","schema":{"type":"string"}},"x-tinypeak-load-through":{"description":"End of the last metered interval the forecast saw.","schema":{"type":"string","format":"date-time"}},"x-tinypeak-next-update-after":{"description":"The next scheduled publication; absent once the window has settled.","schema":{"type":"string","format":"date-time"}},"x-tinypeak-contract":{"description":"The contract version of every response body.","schema":{"type":"string"}}}},"304":{"description":"As GET."},"400":{"description":"As GET."},"401":{"description":"As GET."},"403":{"description":"As GET."},"404":{"description":"As GET."},"429":{"description":"As GET."},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}}}}}},"/api/v1/programs/{programId}/forecast/detail":{"get":{"tags":["forecast","paid"],"security":[{"bearerAuth":[]}],"operationId":"getForecastDetail","summary":"The forecast with the model's working","description":"The forecast, plus how it was built: each day's chance of beating the current peak and share of the remaining risk, the curtailment the model expects, the daily high that would put a day at the current peak, and each current peak's chance of being beaten by each day. Licensed plans.","parameters":[{"schema":{"type":"string","description":"Program id from the catalog, e.g. `nyiso-icap`.","example":"nyiso-icap"},"required":true,"name":"programId","in":"path"},{"schema":{"type":"string","minLength":1,"description":"Window id, `{programId}:{YYYY-MM}` for monthly programs, `{programId}:{YYYY}` for seasons; defaults to the window open today, else the next one. Percent-encode the colon.","example":"nyiso-icap:2026"},"required":false,"name":"window","in":"query"},{"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"string","format":"date-time"}],"description":"Replay: the forecast as it stood at this instant, on the program's clock (the publication standing then). A bare date means that day's evening call. A moment ahead of now is a 400. Replays never change.","example":"2026-08-20"},"required":false,"name":"at","in":"query"},{"schema":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The chance at or above which a day counts as a call, 0 to 1. Adds `call` to each day and judges calls; omit for chances alone.","example":0.1},"required":false,"name":"threshold","in":"query"},{"schema":{"type":["integer","null"],"minimum":0,"maximum":366,"description":"With `threshold`: the calls left in a site's call budget. Each day's `call` is then judged at the threshold in force, `threshold` plus what keeping a call is worth over the days left in `per`, and `decision` says what that is. Omit for the threshold alone. An event program takes no budget.","example":3},"required":false,"name":"callsLeft","in":"query"},{"schema":{"type":"string","enum":["window","season"],"description":"With `callsLeft`: how long the calls last, `season` (the default, every window of the program's year) or `window` (the billing window alone)."},"required":false,"description":"How long a budget's calls last. `window`: each billing window of the program, a month of a 12CP. `season`: every window of the program's year together, a summer or a calendar year. The two are one for a program with a single window a year.","name":"per","in":"query"}],"responses":{"200":{"description":"The forecast and its working.","headers":{"Last-Modified":{"description":"When the forecast was published (HTTP date).","schema":{"type":"string"}},"x-tinypeak-as-of":{"description":"When the forecast was published.","schema":{"type":"string","format":"date-time"}},"x-tinypeak-model":{"description":"Model version; a new version starts a new column on the record.","schema":{"type":"string"}},"x-tinypeak-provenance":{"description":"`live`, `replayed` or `sample`: only `live` is for dispatch.","schema":{"type":"string"}},"x-tinypeak-load-through":{"description":"End of the last metered interval the forecast saw.","schema":{"type":"string","format":"date-time"}},"x-tinypeak-next-update-after":{"description":"The next scheduled publication; absent once the window has settled.","schema":{"type":"string","format":"date-time"}},"x-tinypeak-contract":{"description":"The contract version of every response body.","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForecastDetail"}}}},"304":{"description":"Not modified: `If-Modified-Since` is at or after the publication's `last-modified`. No body; checked after the key."},"400":{"description":"Malformed query or path parameter; `message` names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`unknown_program`, or `not_found` when the program exists but has nothing to show.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"head":{"tags":["forecast","paid"],"security":[{"bearerAuth":[]}],"operationId":"headForecastDetail","summary":"Freshness only","parameters":[{"schema":{"type":"string","description":"Program id from the catalog, e.g. `nyiso-icap`.","example":"nyiso-icap"},"required":true,"name":"programId","in":"path"},{"schema":{"type":"string","minLength":1,"description":"Window id, `{programId}:{YYYY-MM}` for monthly programs, `{programId}:{YYYY}` for seasons; defaults to the window open today, else the next one. Percent-encode the colon.","example":"nyiso-icap:2026"},"required":false,"name":"window","in":"query"},{"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"string","format":"date-time"}],"description":"Replay: the forecast as it stood at this instant, on the program's clock (the publication standing then). A bare date means that day's evening call. A moment ahead of now is a 400. Replays never change.","example":"2026-08-20"},"required":false,"name":"at","in":"query"},{"schema":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The chance at or above which a day counts as a call, 0 to 1. Adds `call` to each day and judges calls; omit for chances alone.","example":0.1},"required":false,"name":"threshold","in":"query"},{"schema":{"type":["integer","null"],"minimum":0,"maximum":366,"description":"With `threshold`: the calls left in a site's call budget. Each day's `call` is then judged at the threshold in force, `threshold` plus what keeping a call is worth over the days left in `per`, and `decision` says what that is. Omit for the threshold alone. An event program takes no budget.","example":3},"required":false,"name":"callsLeft","in":"query"},{"schema":{"type":"string","enum":["window","season"],"description":"With `callsLeft`: how long the calls last, `season` (the default, every window of the program's year) or `window` (the billing window alone)."},"required":false,"description":"How long a budget's calls last. `window`: each billing window of the program, a month of a 12CP. `season`: every window of the program's year together, a summer or a calendar year. The two are one for a program with a single window a year.","name":"per","in":"query"}],"responses":{"200":{"description":"Same status and headers as GET, no body.","headers":{"Last-Modified":{"description":"When the forecast was published (HTTP date).","schema":{"type":"string"}},"x-tinypeak-as-of":{"description":"When the forecast was published.","schema":{"type":"string","format":"date-time"}},"x-tinypeak-model":{"description":"Model version; a new version starts a new column on the record.","schema":{"type":"string"}},"x-tinypeak-provenance":{"description":"`live`, `replayed` or `sample`: only `live` is for dispatch.","schema":{"type":"string"}},"x-tinypeak-load-through":{"description":"End of the last metered interval the forecast saw.","schema":{"type":"string","format":"date-time"}},"x-tinypeak-next-update-after":{"description":"The next scheduled publication; absent once the window has settled.","schema":{"type":"string","format":"date-time"}},"x-tinypeak-contract":{"description":"The contract version of every response body.","schema":{"type":"string"}}}},"304":{"description":"As GET."},"400":{"description":"As GET."},"401":{"description":"As GET."},"403":{"description":"As GET."},"404":{"description":"As GET."},"429":{"description":"As GET."},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}}}}}},"/api/v1/programs/{programId}/history":{"get":{"tags":["forecast"],"security":[{"bearerAuth":[]}],"operationId":"getForecastHistory","summary":"The chance the peak holds, evening by evening","description":"The line under the forecast page's chart: as published at each scored cutoff of the window, the chance the current peak holds to the end, and which peak that was.","parameters":[{"schema":{"type":"string","description":"Program id from the catalog, e.g. `nyiso-icap`.","example":"nyiso-icap"},"required":true,"name":"programId","in":"path"},{"schema":{"type":"string","minLength":1,"description":"Window id, `{programId}:{YYYY-MM}` for monthly programs, `{programId}:{YYYY}` for seasons; defaults to the window open today, else the next one. Percent-encode the colon.","example":"nyiso-icap:2026"},"required":false,"name":"window","in":"query"}],"responses":{"200":{"description":"The history.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForecastHistory"}}}},"400":{"description":"Malformed query or path parameter; `message` names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`unknown_program`, or `not_found` when the program exists but has nothing to show.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/programs/{programId}/windows":{"get":{"tags":["forecast"],"security":[{"bearerAuth":[]}],"operationId":"listWindows","summary":"The year's windows","description":"Each window of the program year: its final peaks once settled (else the standing ones), the runners-up and how far short each fell, and with `threshold`, the days called and how the peak day was called.","parameters":[{"schema":{"type":"string","description":"Program id from the catalog, e.g. `nyiso-icap`.","example":"nyiso-icap"},"required":true,"name":"programId","in":"path"},{"schema":{"type":"integer","minimum":2000,"maximum":2100,"description":"Defaults to the current program-year."},"required":false,"name":"year","in":"query"},{"schema":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The chance at or above which a day counts as a call, 0 to 1. Adds `call` to each day and judges calls; omit for chances alone.","example":0.1},"required":false,"name":"threshold","in":"query"}],"responses":{"200":{"description":"The windows.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WindowList"}}}},"400":{"description":"Malformed query or path parameter; `message` names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`unknown_program`, or `not_found` when the program exists but has nothing to show.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/programs/{programId}/days/{date}":{"get":{"tags":["forecast"],"security":[{"bearerAuth":[]}],"operationId":"getDay","summary":"A closed day","description":"What was said about a day and what happened: its chance the evening before, its graded call (the last publication before its load reached the current peak), its metered peak, and once the window settles, whether it set the peak and, with `threshold`, whether the call was caught, missed, rightly skipped or called anyway.","parameters":[{"schema":{"type":"string","description":"Program id from the catalog, e.g. `nyiso-icap`.","example":"nyiso-icap"},"required":true,"name":"programId","in":"path"},{"schema":{"type":"string","format":"date","description":"A local calendar day, YYYY-MM-DD.","example":"2026-08-20"},"required":true,"name":"date","in":"path"},{"schema":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The chance at or above which a day counts as a call, 0 to 1. Adds `call` to each day and judges calls; omit for chances alone.","example":0.1},"required":false,"name":"threshold","in":"query"}],"responses":{"200":{"description":"The day.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DayResult"}}}},"400":{"description":"Malformed query or path parameter; `message` names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`unknown_program`, or `not_found` when the program exists but has nothing to show.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"`not_closed`: the day has not closed yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/programs/{programId}/weather":{"get":{"tags":["forecast","paid"],"security":[{"bearerAuth":[]}],"operationId":"getWeather","summary":"The window's weather","description":"The forecast chart's weather tab: observed daily highs and lows, each weather forecast the window's publications used (its highs calibrated as the model reads them), and the normals. Licensed plans.","parameters":[{"schema":{"type":"string","description":"Program id from the catalog, e.g. `nyiso-icap`.","example":"nyiso-icap"},"required":true,"name":"programId","in":"path"},{"schema":{"type":"string","minLength":1,"description":"Window id, `{programId}:{YYYY-MM}` for monthly programs, `{programId}:{YYYY}` for seasons; defaults to the window open today, else the next one. Percent-encode the colon.","example":"nyiso-icap:2026"},"required":false,"name":"window","in":"query"}],"responses":{"200":{"description":"The weather.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Weather"}}}},"400":{"description":"Malformed query or path parameter; `message` names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`unknown_program`, or `not_found` when the program exists but has nothing to show.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/programs/{programId}/publications":{"get":{"tags":["forecast","paid"],"security":[{"bearerAuth":[]}],"operationId":"listPublications","summary":"Every publication of a window","description":"Every publication of the window, cutoff or not, oldest first: the instants `forecast/detail?at=` replays. Licensed plans only; the key must be scoped to the program.","parameters":[{"schema":{"type":"string","description":"Program id from the catalog, e.g. `nyiso-icap`.","example":"nyiso-icap"},"required":true,"name":"programId","in":"path"},{"schema":{"type":"string","minLength":1,"description":"Window id, `{programId}:{YYYY-MM}` for monthly programs, `{programId}:{YYYY}` for seasons; defaults to the window open today, else the next one. Percent-encode the colon.","example":"nyiso-icap:2026"},"required":false,"name":"window","in":"query"}],"responses":{"200":{"description":"The publications.","content":{"application/json":{"schema":{"type":"object","properties":{"programId":{"type":"string"},"windowId":{"type":"string"},"publications":{"type":"array","items":{"$ref":"#/components/schemas/PublicationRef"}}},"required":["programId","windowId","publications"]}}}},"400":{"description":"Malformed query or path parameter; `message` names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`unknown_program`, or `not_found` when the program exists but has nothing to show.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/programs/{programId}/record":{"get":{"tags":["record"],"security":[{"bearerAuth":[]}],"operationId":"getRecord","summary":"How the forecasts have done","description":"The evaluation page as data, at a threshold: the peaks caught and missed and the days called, beside the grid operator's usual rule (call every day its own forecast is above the current peak); economic value, calibration error, how well the chances rank the peak days and how early peaks were flagged; each window's peak and call; the season still running; and the latest ledger root. The record reads live forecasts once they hold three settled peaks, the replayed record until then (`provenance`). Each model version has its own record, and `model` reads an earlier one (`modelVersions` lists them). It does not cover customer dispatch or bill savings.","parameters":[{"schema":{"type":"string","description":"Program id from the catalog, e.g. `nyiso-icap`.","example":"nyiso-icap"},"required":true,"name":"programId","in":"path"},{"schema":{"type":"string","pattern":"^(\\d{4}|all)$","description":"A season (`2026`), or `all` (the default) for every season together.","example":"all"},"required":false,"name":"season","in":"query"},{"schema":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The call line the record is read at, 0 to 1 (default `recommended.threshold`, the one the program's record recommends): a day is called when its chance is at or above it.","example":0.1},"required":false,"name":"threshold","in":"query"},{"schema":{"type":"string","minLength":1,"description":"Model version; defaults to the newest."},"required":false,"name":"model","in":"query"}],"responses":{"200":{"description":"The record.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProgramRecord"}}}},"400":{"description":"Malformed query or path parameter; `message` names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`unknown_program`, or `not_found` when the program exists but has nothing to show.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/programs/{programId}/record/metrics":{"get":{"tags":["record"],"security":[{"bearerAuth":[]}],"operationId":"getRecordMetrics","summary":"Every scoring cell","description":"For analysts: each scored question's cell (Brier score, log loss, reliability, skill against the calendar, climatology and the operator, decision value, PIT and tail coverage), settled cells in `settled` and the open season's, judged against its closed days so far, in `provisional` (never pooled).","parameters":[{"schema":{"type":"string","description":"Program id from the catalog, e.g. `nyiso-icap`.","example":"nyiso-icap"},"required":true,"name":"programId","in":"path"},{"schema":{"type":"string","pattern":"^(\\d{4}|all)$","description":"A season (`2026`), or `all` (the default) for every season together.","example":"all"},"required":false,"name":"season","in":"query"},{"schema":{"type":"string","enum":["leader_survival","candidate_final","day_exceedance","day_peak","day_peak_pit","today_peak","event_called","hour_peak","peak_hour","alert"],"description":"Only the cells of one scored kind, such as `today_peak` (each day's same-day call); every kind by default."},"required":false,"name":"kind","in":"query"},{"schema":{"type":"string","enum":["live","replayed","sample"],"description":"`live`, as published at the time, `replayed`, rebuilt on past data as if live, or `sample`. Defaults to the record the site shows."},"required":false,"description":"Where the numbers come from: `live`, published as it happened; `replayed`, rebuilt on past data as if live, for evaluation; `sample`, synthetic demonstration data. Only `live` is for dispatch.","name":"provenance","in":"query"},{"schema":{"type":"string","minLength":1,"description":"Model version; defaults to the newest."},"required":false,"name":"model","in":"query"}],"responses":{"200":{"description":"The cells.","content":{"application/json":{"schema":{"type":"object","properties":{"programId":{"type":"string"},"season":{"type":"string"},"settled":{"type":"array","items":{"$ref":"#/components/schemas/EvalSummary"}},"provisional":{"type":"array","items":{"$ref":"#/components/schemas/EvalSummary"}}},"required":["programId","season","settled","provisional"]}}}},"400":{"description":"Malformed query or path parameter; `message` names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`unknown_program`, or `not_found` when the program exists but has nothing to show.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/programs/{programId}/record/claims":{"get":{"tags":["record"],"security":[{"bearerAuth":[]}],"operationId":"listClaims","summary":"Every scored claim","description":"The receipts behind the record: every scored claim, each with its chance, outcome, baselines and when it settled. CSV by default, streamed, one season at a time and at most 100000 rows (the pooled `all` season is JSON-only; a `Link` header points at the JSON walk); `format=json` pages `limit` rows (default 1000, max 5000) in (issuedAt, id) order with a `nextCursor` to pass back as `cursor` until it is null.","parameters":[{"schema":{"type":"string","description":"Program id from the catalog, e.g. `nyiso-icap`.","example":"nyiso-icap"},"required":true,"name":"programId","in":"path"},{"schema":{"type":"string","pattern":"^(\\d{4}|all)$","description":"A season (`2026`), or `all` (the default) for every season together.","example":"all"},"required":false,"name":"season","in":"query"},{"schema":{"type":"string","enum":["leader_survival","candidate_final","day_exceedance","day_peak","day_peak_pit","today_peak","event_called","hour_peak"],"description":"Only claims of one scored kind, such as `today_peak`; every kind by default."},"required":false,"name":"kind","in":"query"},{"schema":{"type":"string","enum":["live","replayed","sample"],"description":"`live`, as published at the time, `replayed`, rebuilt on past data as if live, or `sample`. Defaults to the record the site shows."},"required":false,"description":"Where the numbers come from: `live`, published as it happened; `replayed`, rebuilt on past data as if live, for evaluation; `sample`, synthetic demonstration data. Only `live` is for dispatch.","name":"provenance","in":"query"},{"schema":{"type":"string","enum":["json","csv"],"description":"`json` (the default) or `csv`, one claim a row."},"required":false,"name":"format","in":"query"},{"schema":{"type":"string","enum":["0","1"],"description":"Include unresolved Claims and open windows' `provisional` outcomes (each Claim's `resolution` says which); without it, settled (`proxy`, `final`) Claims only."},"required":false,"name":"pending","in":"query"},{"schema":{"type":"integer","minimum":1,"maximum":5000,"description":"Requires format=json; rejected for CSV."},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string","minLength":1,"description":"Opaque; from the previous page's `nextCursor`. Requires format=json; rejected for CSV."},"required":false,"name":"cursor","in":"query"}],"responses":{"200":{"description":"The Claims.","content":{"application/json":{"schema":{"type":"object","properties":{"programId":{"type":"string"},"season":{"type":"string"},"claims":{"type":"array","items":{"$ref":"#/components/schemas/Claim"}},"nextCursor":{"type":["string","null"]}},"required":["programId","season","claims","nextCursor"]}},"text/csv":{"schema":{"type":"string"}}}},"400":{"description":"Malformed query or path parameter; `message` names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`unknown_program`, or `not_found` when the program exists but has nothing to show.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/programs/{programId}/ledger/latest":{"get":{"tags":["record"],"security":[{"bearerAuth":[]}],"operationId":"getLatestLedger","summary":"The latest day of the ledger","description":"The newest digest root: pin it, and any later change to a past call breaks every root after it. Defaults to the record the site reads.","parameters":[{"schema":{"type":"string","description":"Program id from the catalog, e.g. `nyiso-icap`.","example":"nyiso-icap"},"required":true,"name":"programId","in":"path"},{"schema":{"type":"string","enum":["live","replayed","sample"],"description":"`live`, as published at the time, `replayed`, rebuilt on past data as if live, or `sample`. Defaults to the record the site shows."},"required":false,"description":"Where the numbers come from: `live`, published as it happened; `replayed`, rebuilt on past data as if live, for evaluation; `sample`, synthetic demonstration data. Only `live` is for dispatch.","name":"provenance","in":"query"}],"responses":{"200":{"description":"The digest.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DailyDigest"}}}},"400":{"description":"Malformed query or path parameter; `message` names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`unknown_program`, or `not_found` when the program exists but has nothing to show.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/programs/{programId}/ledger/{date}":{"get":{"tags":["record"],"security":[{"bearerAuth":[]}],"operationId":"getLedger","summary":"One day of the ledger","description":"The digest root(s) for the day, each with the sorted ids of the cutoff claims issued that day (`${publicationId}:${eventKey}`, the ids the Claims export carries) they hash: `root = sha256(previousRoot + \"\\n\" + ids.join(\"\\n\"))`. Immutable.","parameters":[{"schema":{"type":"string","description":"Program id from the catalog, e.g. `nyiso-icap`.","example":"nyiso-icap"},"required":true,"name":"programId","in":"path"},{"schema":{"type":"string","format":"date","description":"A local calendar day, YYYY-MM-DD.","example":"2026-08-20"},"required":true,"name":"date","in":"path"}],"responses":{"200":{"description":"The day.","content":{"application/json":{"schema":{"type":"object","properties":{"programId":{"type":"string"},"date":{"type":"string","format":"date"},"digests":{"type":"array","items":{"$ref":"#/components/schemas/DailyDigest"},"description":"One per provenance on record that day."}},"required":["programId","date","digests"]}}}},"400":{"description":"Malformed query or path parameter; `message` names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`unknown_program`, or `not_found` when the program exists but has nothing to show.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/me/exposures":{"get":{"tags":["account"],"security":[{"bearerAuth":[]}],"operationId":"getMyExposures","summary":"The organization's exposures","description":"For a key minted for a customer profile: every obligation that bills or pays each of its sites today, with the program that forecasts it (`covered` false while no Series measures the zone), its consequence, why it applies and the evidence (`sourceIds`); opt-in programs a site is eligible for but has not declared (`available`); and what the profile leaves undecided with what would decide it (`unresolved`). A key minted with explicit program grants has no profile (404 `no_customer_profile`). Any provisioned key, including a free key.","responses":{"200":{"description":"The resolved profile.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerExposures"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`no_customer_profile`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/me/outlook":{"get":{"tags":["account","paid"],"security":[{"bearerAuth":[]}],"operationId":"getMyOutlook","summary":"The customer outlook","description":"For a key minted for a customer profile: each program the profile resolves to and the key reads, once, with the sites it reaches, its consequence, what a likely outcome asks (`action`: curtail to reduce a tag or share, be ready to deliver an event, or informational), and its forecast as `GET /api/v1/programs/{programId}/forecast` serves it (with `threshold`, each day says whether it is a call) (null while no program forecasts the zone). Licensed plans; a key with explicit program grants has no profile (404 `no_customer_profile`).","parameters":[{"schema":{"type":"number","exclusiveMinimum":0,"maximum":1,"description":"The chance at or above which a day counts as a call, 0 to 1. Adds `call` to each day and judges calls; omit for chances alone.","example":0.1},"required":false,"name":"threshold","in":"query"}],"responses":{"200":{"description":"The customer outlook.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerOutlook"}}}},"400":{"description":"Malformed query or path parameter; `message` names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`no_customer_profile`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/portfolios":{"get":{"tags":["portfolios"],"security":[{"bearerAuth":[]}],"operationId":"listPortfolios","summary":"The organization's portfolios","description":"The portfolios of the key's organization, oldest first: each one's name, the sites it groups and its alert, with each destination named by its kind and host, never its URL or secret. Any key of an organization, including a free key.","responses":{"200":{"description":"The portfolios.","content":{"application/json":{"schema":{"type":"object","properties":{"portfolios":{"type":"array","items":{"$ref":"#/components/schemas/PortfolioSummary"}}},"required":["portfolios"]}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`no_organization`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"tags":["portfolios"],"security":[{"bearerAuth":[]}],"operationId":"createPortfolio","summary":"Open a portfolio","description":"A new, empty portfolio, within the plan's number (`plan_not_allowed` beyond it).","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioCreate"}}}},"responses":{"201":{"description":"Opened.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioSummary"}}}},"400":{"description":"Malformed query or path parameter; `message` names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`plan_not_allowed`: the plan holds no more.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`no_organization`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"`body_too_large`: JSON body exceeds 1024 bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/portfolios/{portfolioId}":{"delete":{"tags":["portfolios"],"security":[{"bearerAuth":[]}],"operationId":"deletePortfolio","summary":"Remove a portfolio","description":"Removes a portfolio with its alert and its sites, the organization's last one included.","parameters":[{"schema":{"type":"string","description":"Portfolio id, from `GET /api/v1/portfolios`.","example":"pf_3f9a1c27b40e5d18"},"required":true,"name":"portfolioId","in":"path"}],"responses":{"200":{"description":"Removed, with how many sites went with it.","content":{"application/json":{"schema":{"type":"object","properties":{"removed":{"type":"boolean","enum":[true]},"removedSites":{"type":"integer","description":"How many of the organization's sites were removed with it."}},"required":["removed","removedSites"]}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`not_found`, or `no_organization`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"get":{"tags":["portfolios"],"security":[{"bearerAuth":[]}],"operationId":"getPortfolio","summary":"A portfolio","description":"One portfolio, its alert, and the programs that alert covers today: those that bill its sites, that a forecast covers and that the plan reads.","parameters":[{"schema":{"type":"string","description":"Portfolio id, from `GET /api/v1/portfolios`.","example":"pf_3f9a1c27b40e5d18"},"required":true,"name":"portfolioId","in":"path"}],"responses":{"200":{"description":"The portfolio.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioDetail"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`not_found`, or `no_organization`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/portfolios/{portfolioId}/alert":{"delete":{"tags":["portfolios"],"security":[{"bearerAuth":[]}],"operationId":"deletePortfolioAlert","summary":"Turn the alert off","description":"Forgets the alert, its thresholds, call budgets, events and destinations; nothing more is sent. Idempotent.","parameters":[{"schema":{"type":"string","description":"Portfolio id, from `GET /api/v1/portfolios`.","example":"pf_3f9a1c27b40e5d18"},"required":true,"name":"portfolioId","in":"path"}],"responses":{"200":{"description":"Off.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioDetail"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`not_found`, or `no_organization`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"put":{"tags":["portfolios"],"security":[{"bearerAuth":[]}],"operationId":"setPortfolioAlert","summary":"Set the alert","description":"Sets the portfolio's whole alert: each site's threshold (`thresholds`, else `threshold`), its call budget where it can act on only so many calls in a period (`budgets`), the events, and the destinations, a signed webhook, an email, a Slack incoming webhook or a Microsoft Teams Workflows webhook. A site with a budget is called at its threshold plus what keeping the call is worth (`decisions` in the response say what that comes to now). A budget that does not change keeps its count of calls left, and one that does starts from the calls it had left unless `left` states another. A webhook already on the alert keeps its signing secret; a new one's secret is in this response and nowhere else. Licensed plans only.","parameters":[{"schema":{"type":"string","description":"Portfolio id, from `GET /api/v1/portfolios`.","example":"pf_3f9a1c27b40e5d18"},"required":true,"name":"portfolioId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioAlertSet"}}}},"responses":{"200":{"description":"Set. Keep any `secrets`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioAlertSaved"}}}},"400":{"description":"`bad_request` (the body), or `email_not_configured`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"`plan_not_allowed`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`not_found`, or `no_organization`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"`too_many_subscriptions`: too many programs times destinations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"`body_too_large`: JSON body exceeds 16384 bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/portfolios/{portfolioId}/alert/test":{"post":{"tags":["portfolios"],"security":[{"bearerAuth":[]}],"operationId":"testPortfolioAlert","summary":"Send a test","description":"Delivers a synthetic `call` built from a covered program's current publication to one destination of the alert, by its index, right now, signed like a real one, with `test: true`. One per destination per minute, and 10 per portfolio per hour.","parameters":[{"schema":{"type":"string","description":"Portfolio id, from `GET /api/v1/portfolios`.","example":"pf_3f9a1c27b40e5d18"},"required":true,"name":"portfolioId","in":"path"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"destination":{"type":"integer","minimum":0,"description":"The destination's index in the alert."}},"required":["destination"]}}}},"responses":{"200":{"description":"What happened at the receiver.","content":{"application/json":{"schema":{"type":"object","properties":{"delivered":{"type":"boolean"},"deliveryId":{"type":"string"},"publicationId":{"type":"string"},"error":{"type":["string","null"],"description":"Why the send failed, as a category: `refused`, `dns_failed`, `timeout`, `tls`, `connection_failed`, `http_<status>`, `email_not_configured` or `email_failed`. Null when delivered."}},"required":["delivered","deliveryId","publicationId","error"]}}}},"400":{"description":"Malformed query or path parameter; `message` names the field.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"The key's plan or program scope does not cover this route.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`not_found`: no such portfolio or destination.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"No program the alert covers bills the portfolio's sites yet.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"413":{"description":"`body_too_large`: JSON body exceeds 1024 bytes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"429":{"description":"`too_many_requests`; `retry-after` says when.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"500":{"description":"Unexpected server failure. The non-cacheable response includes a server-generated reference for support.","headers":{"x-tinypeak-error-reference":{"schema":{"type":"string","format":"uuid"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/v1/status":{"get":{"tags":["status"],"security":[],"operationId":"getStatus","summary":"Whether everything is current","description":"The status page as data, no key needed: whether every served program's forecast is current, and for each, its window, when it last published, each data feed's health and the last 30 days' input completeness.","responses":{"200":{"description":"The status.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Status"}}}},"429":{"description":"`too_many_requests`: over the per-minute limit (per key by plan, per address without a key).","headers":{"retry-after":{"description":"Seconds until the window resets.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Requests allowed per minute.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Requests left this minute.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the window resets.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/health":{"get":{"tags":["internal"],"security":[],"operationId":"getHealth","summary":"Liveness","description":"The process is up, its configuration parsed and the store answers. No secrets, no data.","responses":{"200":{"description":"Healthy.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ok"]},"data":{"type":"string","enum":["sample","database"],"description":"Where the data comes from (`TINYPEAK_DATA`)."},"site":{"type":"string","enum":["public","preview"],"description":"What the site shows (`TINYPEAK_SITE`)."},"programs":{"type":"array","items":{"type":"string"},"description":"Programs the site shows."},"commit":{"type":["string","null"]},"node":{"type":"string","description":"The Node.js version serving this instance."},"tz":{"type":["string","null"],"description":"The IANA time-zone data it carries, which decides each program's local dates and hours."},"storeMs":{"type":"integer"}},"required":["status","data","site","programs","commit","node","tz","storeMs"]}}}},"503":{"description":"`unavailable`: the runtime could not be built or the store did not answer.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["error"]},"error":{"type":"string","enum":["unavailable"]},"message":{"type":"string"}},"required":["status","error","message"]}}}}}}},"/api/openapi.json":{"get":{"tags":["internal"],"security":[],"operationId":"getOpenApi","summary":"This document","responses":{"200":{"description":"OpenAPI 3.1, built from the Zod contracts at request time.","content":{"application/json":{"schema":{"type":"object","properties":{}}}}}}}},"/api/jobs":{"get":{"tags":["internal"],"security":[{"cronAuth":[]}],"operationId":"listJobs","summary":"Scheduler health","description":"The last run of every job, locks held, and the age of each live window's latest publication. 200 when nothing is stale, 503 otherwise.","responses":{"200":{"description":"Nothing stale.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsHealth"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"503":{"description":"Something is stale.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobsHealth"}}}}}}},"/api/jobs/{job}":{"get":{"tags":["internal"],"security":[{"cronAuth":[]}],"operationId":"runJobGet","summary":"Run a job","description":"The scheduler's target (Vercel Cron issues GET; POST is for manual and CI triggers). Query parameters become job params. 409 when another runner holds the lock.","parameters":[{"schema":{"type":"string","enum":["ingest-load","ingest-iso-forecast","ingest-ensemble","ingest-settlement","ingest-temperature","rollover","recompute","notify","refit","backfill","replay","resolve","score","digest","prune"],"description":"A scheduled job, as `GET /api/jobs` lists them."},"required":true,"name":"job","in":"path"}],"responses":{"200":{"description":"The run.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRun"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`unknown_job`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Skipped: lock held.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRun"}}}},"500":{"description":"The run failed; the body says why.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRun"}}}}}},"post":{"tags":["internal"],"security":[{"cronAuth":[]}],"operationId":"runJobPost","summary":"Run a job","description":"The scheduler's target (Vercel Cron issues GET; POST is for manual and CI triggers). Query parameters become job params. 409 when another runner holds the lock.","parameters":[{"schema":{"type":"string","enum":["ingest-load","ingest-iso-forecast","ingest-ensemble","ingest-settlement","ingest-temperature","rollover","recompute","notify","refit","backfill","replay","resolve","score","digest","prune"],"description":"A scheduled job, as `GET /api/jobs` lists them."},"required":true,"name":"job","in":"path"}],"responses":{"200":{"description":"The run.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRun"}}}},"401":{"description":"Missing or unknown API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"`unknown_job`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Skipped: lock held.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRun"}}}},"500":{"description":"The run failed; the body says why.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRun"}}}}}}}},"webhooks":{"alert":{"post":{"operationId":"receiveAlert","security":[],"summary":"An alert","description":"Sent to an alert subscription's webhook after a publication changes what it said. Verify `x-tinypeak-signature: t=<unix seconds>,v1=<hex HMAC-SHA256(secret, \"<t>.<raw body>\")>` and reject a timestamp more than five minutes old; deduplicate on `x-tinypeak-delivery`. Answer 2xx within five seconds; failures are retried while the event still holds, each wait doubling from five minutes, up to eight attempts over about ten and a half hours.","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEvent"}}}},"responses":{"200":{"description":"Received."}}}}}}