# Versioning policy

> How the Funnel One API changes. The major version is in the URL, v1 only grows, and a removal gets 6 months' notice.

The Funnel One API is versioned by its URL. Every endpoint lives under
`/api/v1`, and **v1 is the only version**.

## What can change inside v1

Only additions: a new endpoint, a new optional request field, a new response
field or a new error code. Write your client to ignore
fields it does not know.

A change that could break a working client is not made inside v1. That means
removing or renaming an endpoint or a field, changing a field's type, or making
an optional field required.

## When something is removed

A removal is announced at least **6 months** before it takes effect:

- the [changelog](https://dev.funnelone.ai/resources/changelog/) records it, with the date it stops working;
- every response from the affected endpoint carries a `Deprecation` header, and a
  `Sunset` header with that date.

## A new major version

A change that cannot be made inside v1 goes into a new major version, served
beside v1 at its own URL (`/api/v2`). v1 keeps working for at least 6 months
after a new version is released, and the changelog announces it.

Source: https://dev.funnelone.ai/resources/versioning/
