# Versioning & deprecation

> How the Wayline API is versioned, what counts as a breaking change, how much notice we give and how deprecations are communicated.

Source: https://www.wayline.cloud/docs/concepts/versioning

## URL versioning

The API version is in the path: `/v1/...`. The current and only version is **v1**.

## What we may change in v1 without notice

- Adding new endpoints, optional parameters, response fields, headers or enum values (for example new `warnings`).
- Changing error `message` text (branch on `code`).
- Improving routing results with new map data.

Write clients that ignore unknown fields.

## Breaking changes

Removing or renaming fields, changing types or meanings, or tightening validation are breaking changes. They ship only in a new major version (`/v2`).

## Deprecation policy

- Deprecations are announced in the [changelog](/changelog), by email to account owners and with a `Deprecation` response header where applicable.
- A deprecated version keeps working for **at least 12 months** after a replacement is generally available.
- Map-data behavior changes (for example a road reclassified in OSM) are not versioned.
