# Versioning and deprecation

> Canonical URL: https://docs.mountaya.com/en/apis/conventions/versioning/
> Last updated: 2026-11-27
> Rules for agents: https://docs.mountaya.com/llms.txt#rules-for-agents

How the Mountaya API contract is versioned, what may change before 1.0, and how a retirement is announced from 1.0 on.

The Map Studio API, the Tile API, and the Data API share one versioned contract, at version **v0.9.0** today. REST paths start with `/v1/`, and the Data API has one endpoint, `/graphql`. The path stays the same as the contract evolves.

## Before 1.0

Below 1.0 there is no compatibility window. A minor release, such as 0.7 to 0.8, may remove or rename any operation, field, parameter, or enum value, and change any status. Nothing is deprecated before it is removed.

The [changelog](https://docs.mountaya.com/en/changelog.md) names each change. Read it before you upgrade an SDK.

## From 1.0

From 1.0, an operation's name is frozen. Retiring one means three things:

- it is marked deprecated in the specification and in each SDK,
- its answers carry `Deprecation` and `Sunset` headers,
- it keeps working for at least 180 days and two minor releases, then goes in the next major release.

## Check the version you speak

`@mountaya/client` records the contract version it was generated from. Compare it with the version above:

```typescript
import { SCHEMA_VERSION } from "@mountaya/client";

console.log(SCHEMA_VERSION);
```

- The contract is versioned by its `VERSION` tag, v0.9.0 today, shared by the Map Studio API (`api.yaml`, whose `info.version` is the tag without its `v`), the Tile API (`tiles.yaml`, the same `info.version`), and the Data API SDL.
- Policy, verbatim from the contract: "Below 1.0 there is no compatibility window. A MINOR tag may remove or rename any operation, field, parameter or enum member, and change any status; the changelog names each one. Nothing is deprecated before it is removed. From 1.0, an `operationId` is frozen; retiring one means `deprecated: true` on it, `Deprecation` and `Sunset` headers on its answers, and at least 180 days and two MINOR tags before its removal in the next MAJOR."
- Bump rules: removing or renaming an `operationId`, narrowing a type, or adding a required field is MAJOR (a MINOR below 1.0); adding an operation or an optional field is MINOR; description, example or documentation only is PATCH. Adding a required field is breaking: an existing caller that omits it starts getting a `400`.
- Below 1.0 a breaking change ships as `0.1.0 → 0.2.0`; from 1.0 as `1.4.2 → 2.0.0`.
- SDKs carry their own semver. `@mountaya/client` exports `SCHEMA_VERSION`, the contract tag it was generated from. The SDKs layered on it hold no generated code and carry no such constant.
- The `/v1/` path segment is not the contract version and does not change with a MINOR tag.
- Only the current contract is served, from the production hosts; there is no sandbox host and no host per version.

## Next steps

- [Changelog](https://docs.mountaya.com/en/changelog.md): Every change to the contract, newest first.
- [Go to production](https://docs.mountaya.com/en/production.md): The checklist before you launch.
