> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/stackai-api/stackai-api-developer-guide/versioning-coverage-and-openapi.md).

# Versioning, coverage, and OpenAPI

The API version is part of the route. Keep an existing v1 client on v1 parsing until you intentionally migrate it. Use v2 for the capabilities it supports; use the inference interface when you need its inline response or streaming contract. Calling an interface legacy does not by itself announce a retirement date.

Before changing versions, compare the authentication method, input body, response envelope, pagination, status values, and project-version selector. For example, v2 run creation accepts `{project_id, project_version, input}`, while inference accepts the input map itself. A v2 `project_version` of `-1` selects a draft; an inference `version` of `-1` selects published content.

Download the OpenAPI specification to generate a client or validate request and response shapes. Its document version is separate from both route versions and saved project versions. Examples show the documented shapes; replace project IDs, connection IDs, and input keys with your own values. The reference covers the public operations listed in its navigation. Undocumented browser routes and provider authorization callbacks are not public integration endpoints.


---

# 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.stackai.com/stackai-api/stackai-api-developer-guide/versioning-coverage-and-openapi.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.
