# Versioning

How the TimeSubmit API changes within /v1: additive and breaking changes, the Deprecation and Sunset headers, and how a version retires with 410 Gone.

The TimeSubmit API's version is in its path: every request goes to `https://www.timesubmit.com/api/v1`. Within `/v1` the API only adds things: nothing you rely on is removed or changed.

## Additive changes

An additive change is one an integration keeps working through. These can ship within `/v1` at any time:

- a new field on an object;
- a new event type;
- a new value in a list of allowed values, such as a new status;
- a new operation.

## Breaking changes

A breaking change is one that could stop a working integration. None of these ships within `/v1`; each would need a new version, `/v2`:

- removing or renaming a field;
- changing what a field holds, such as its type or its meaning;
- refusing a request that used to succeed, such as making an optional field required.

One exception: a fix may ship within `/v1` when the only requests it refuses are ones that stored broken data, such as a purchase order number with a line break that printed across two lines on every invoice. Such a fix is always marked **breaking** in the [API changelog](https://www.timesubmit.com/developers/changelog).

## Ignore what you don't recognise

An additive change only stays safe for your integration if your code tolerates what it adds:

- **Fields.** Ignore a field you don't recognise. Don't refuse an object because it has more fields than you expected.
- **Event types.** Skip an event whose type you don't recognise, and answer a webhook delivery for it with a 2xx so it isn't retried.
- **Allowed values.** Give a value you don't recognise a fallback, rather than failing in an exhaustive `switch`.

A new status or event type is the change most likely to break an integration, so every list of allowed values and event types in these docs repeats this.

## Deprecation

A deprecated field or operation still works within `/v1`. It is marked "deprecated" in this reference and in the [OpenAPI document](https://www.timesubmit.com/developers/openapi.json), and it goes only in a later version. You hear about it three ways:

- **In the response.** Every response of an operation that is deprecated, or that accepts or answers with a deprecated field, carries a `Deprecation` header with the day it was announced, as `@` and Unix seconds, and a `Link` header with `rel="deprecation"` pointing at the changelog entry that announced it. Errors and replayed writes carry them too.
- **In the [API changelog](https://www.timesubmit.com/developers/changelog)**, as an entry that says what is deprecated, why, and what to use instead.
- **By email.** The admins of every organisation holding an API key are emailed about the entry, once.

The header reaches your code first, so log or alert on `Deprecation` and you hear about a change before anyone reads the email.

## Retiring a version

`/v1` stays supported for at least 12 months after `/v2` ships. Once its retirement day is set, every `/v1` response carries a `Sunset` header with that day. From the day itself, every `/v1` request is answered `410 Gone` with the error code `gone`, whatever key it sends. No retirement day is set.

## Versions

`/v1` was published on 30 November 2026 and is the only version. Every change since, additive or breaking, is in the [API changelog](https://www.timesubmit.com/developers/changelog), which you can follow by RSS.
