> ## Documentation Index
> Fetch the complete documentation index at: https://docs.onstacks.io/llms.txt
> Use this file to discover all available pages before exploring further.

# API versioning

> How the Onstacks API is versioned, what counts as a breaking change, and how you hear about changes.

The Onstacks API has one major version in service today: **v1**. Every endpoint path starts with `/v1`, and the version selector at the top of these docs shows the docs for each major version.

## How versions work

There are two version numbers:

| Version | Example | What it means |
| - | - | - |
| API major version | `v1` in `/v1/ramp/quote` | The contract you integrate against. It changes only for breaking changes. |
| Release version | `0.74.0` | A release of the API within a major version. It appears as `info.version` in [`openapi.yaml`](https://docs.onstacks.io/api-reference/overview) and in the [changelog](https://docs.onstacks.io/changelog.md). |

Releases within `v1` never break a working integration. You do not need to opt in to receive them.

## Changes that do not break your integration

We ship these within the current major version, at any time:

* New endpoints, new optional request fields and new query parameters.
* New fields in responses, including new fields inside existing objects.
* New values in enums that are documented as open, such as `status`, `provider` and webhook event types.
* New error codes for new failure cases, and clearer error messages.
* New providers, corridors, assets and networks.

Build your client to ignore unknown response fields and to handle unknown enum values and error codes without failing.

## Breaking changes

A breaking change is one that can stop a correct integration from working. For example:

* Removing or renaming an endpoint, field or enum value.
* Making an optional request field required.
* Changing a field's type or meaning.
* Changing the response status of an existing success case.

Breaking changes ship only in a new major version, such as `/v2`. The previous major version keeps working during its deprecation period.

## Deprecation

When a major version, endpoint or field is deprecated:

1. The [changelog](https://docs.onstacks.io/changelog.md) announces it, with the replacement and the date it stops working.
2. The reference marks it as deprecated.
3. It keeps working for at least **30 days** after the announcement.

Security fixes are the only exception. If a behaviour puts customer funds or data at risk, we can change it with shorter notice, and we contact affected workspaces directly.

## Stay informed

* Read the [changelog](https://docs.onstacks.io/changelog.md), or subscribe to its RSS feed at `/changelog/rss.xml`.
* Pin your integration to the documented behaviour of `v1`, and test new releases in the sandbox environment.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.