> For the complete documentation index, see [llms.txt](https://docs.jua.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jua.ai/api-v2/query-engine/open-api-reference/publications.md).

# Publications

## List when forecast runs are available

> One entry per forecast run initialised in the window, with the instant it is available to your account (\`published\_at\`). Weather runs follow your tier's dissemination schedule. Power-forecast runs carry the time the run was written, or their modelled time when none was recorded; \`published\_source\` says which. At most the newest 1000 runs per model are listed; a warning says when that cap applies. Free of credits.

```json
{"openapi":"3.1.0","info":{"title":"Jua Query Engine API","version":"0.1.0"},"tags":[],"servers":[{"url":"https://query.jua.ai","description":"Production"}],"security":[{"HTTPBearer":[]}],"paths":{"/v1/publications/runs":{"post":{"tags":["publications"],"summary":"List when forecast runs are available","description":"One entry per forecast run initialised in the window, with the instant it is available to your account (`published_at`). Weather runs follow your tier's dissemination schedule. Power-forecast runs carry the time the run was written, or their modelled time when none was recorded; `published_source` says which. At most the newest 1000 runs per model are listed; a warning says when that cap applies. Free of credits.","operationId":"post_publication_runs_v1_publications_runs_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicationRunsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicationRunsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"PublicationRunsRequest":{"properties":{"kind":{"type":"string","enum":["weather","power_forecast"],"title":"Kind","description":"``weather`` lists runs of weather models; ``power_forecast`` lists runs of power-forecast models (``jua_power_forecast_pro``, or a weather model name for its weather-derived power forecast)."},"models":{"items":{"type":"string","minLength":1},"type":"array","maxItems":32,"minItems":1,"title":"Models","description":"Model names (power forecast: model tokens)."},"start_time":{"type":"string","format":"date-time","title":"Start Time","description":"Inclusive start of the window on run ``init_time`` (UTC)."},"end_time":{"type":"string","format":"date-time","title":"End Time","description":"Exclusive end of the window on run ``init_time`` (UTC)."}},"additionalProperties":false,"type":"object","required":["kind","models","start_time","end_time"],"title":"PublicationRunsRequest"},"PublicationRunsResponse":{"properties":{"publications":{"items":{"$ref":"#/components/schemas/PublicationRun"},"type":"array","title":"Publications"},"warnings":{"items":{"$ref":"#/components/schemas/PublicationWarning"},"type":"array","title":"Warnings","description":"Non-fatal notes, e.g. that the newest-1000 cap applied."}},"type":"object","title":"PublicationRunsResponse"},"PublicationRun":{"properties":{"model":{"type":"string","title":"Model"},"init_time":{"type":"string","format":"date-time","title":"Init Time","description":"Run initialisation time (UTC)."},"published_at":{"type":"string","format":"date-time","title":"Published At","description":"Instant the run is available to this account (UTC). Weather: the dissemination time for the account's tier. Power forecast: the time the run was written, or its scheduled time when none was recorded."},"published_source":{"anyOf":[{"type":"string","enum":["recorded","scheduled"]},{"type":"null"}],"title":"Published Source","description":"Where `published_at` comes from. `recorded`: the time the run was written (live runs). `scheduled`: the modelled lag, i.e. the weather dissemination schedule, or a power-forecast run with no stored write time (backfilled, or a cell still unstamped)."},"valid_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Valid Until","description":"End of the run's forecast horizon (UTC); null when the horizon is unknown."}},"type":"object","required":["model","init_time","published_at","published_source","valid_until"],"title":"PublicationRun"},"PublicationWarning":{"properties":{"code":{"type":"string","title":"Code","description":"Stable code, e.g. `runs_listing_capped`."},"message":{"type":"string","title":"Message"}},"type":"object","required":["code","message"],"title":"PublicationWarning"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.jua.ai/api-v2/query-engine/open-api-reference/publications.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
