# Versioning (/versioning)

The version is in the path: `https://api.ajour.dk/v1/...`.

## Changes inside v1 [#changes-inside-v1]

Inside v1, Ajour only adds things:

- new endpoints
- new fields in responses
- new optional parameters
- new values in lists that say so, such as report types

Your code must ignore fields it does not know. Then these changes do not break it.

## Breaking changes [#breaking-changes]

A change that can break your code comes in a new version, `/v2`. Examples are a removed field, a renamed field or a changed meaning.

When v2 comes, v1 stays for **at least 12 months**. During that time, v1 responses have two extra headers, for example:

```http
Deprecation: @1798761600
Sunset: Sat, 01 Jan 2028 00:00:00 GMT
```

- `Deprecation` says that v1 will be removed.
- `Sunset` is the date after which v1 stops working.

Check for these headers in your code or logs, so you know when to move to the new version.