# Versions and deprecation

There is one version for the whole API: `v1`, in every path (`/api/v1/…`).

## What stays in v1

These changes are not breaking, and are made in v1 at any time:

- a new field in an answer;
- a new call;
- a new optional parameter.

Write your code so that it ignores fields it doesn't know.

## What makes v2

Removing or renaming anything (a call, a field, a parameter, an event) makes a new version, `v2`. When v2 comes, **v1 keeps working for at least 12 months**, and a guide explains each change.

## A call that is going away

Before a call goes, it is **deprecated**:

- its answers carry a `Deprecation` header, and a `Sunset` header with the date it stops working;
- the reference marks it **Deprecated**, says when it goes and links to the call that replaces it;
- the [changelog](/changelog/) lists it under "Calls going away".

Watch for the `Deprecation` header in your logs: it tells you before anything breaks.

## Keeping up

Every change to v1 is written in the [changelog](/changelog/) in the same change that makes it. Follow its Atom feed in your feed reader to hear about each one.
