# API versions and deprecation policy

> Date versions of the Sendtide API: the Sendtide-Version header, the version of a key, 12 months of notice, Deprecation and Sunset headers and what is deprecated today.

URL: https://sendtide.ch/en/docs/api-versions/

The API has date versions. An integration that runs today keeps running: breaking changes come only with a new version and at least 12 months of notice.
## The Sendtide-Version header

Every answer carries the header Sendtide-Version: the version the request ran with.

```
curl -i https://api.sendtide.ch/v1/account \
  -H "Authorization: Bearer $SENDTIDE_API_KEY"
# …
# Sendtide-Version: 2026-11-29
```
- A key remembers the version that was current when it was created (api_version of the key). That keeps your behaviour stable even when a new version appears later.
- With the same header you can pick another supported version per request, to try a new version: Sendtide-Version: 2026-11-29. An unknown value answers 400 unsupported_version.
- Today there is exactly one version: 2026-11-29.
- The SDKs set the version with the option apiVersion (Node.js, PHP) or api_version (Python).
## What counts as a new version

Every incompatible change gets a new version: a removed or renamed field, a changed meaning, a new required parameter.

Also expect us to add new things at any time: endpoints, optional fields and parameters, fields in answers and in data of events, event types and error codes. Write your code tolerantly: ignore unknown fields and handle unknown event types without crashing.
## Deprecation policy
- A version keeps working for at least 12 months after a replacement was announced.
- A parameter or field that goes away is announced 12 months ahead.
- Requests that use something deprecated get these headers:
- Deprecation: @<unix time> (RFC 9745): since when it is deprecated
- Sunset: <date> (RFC 8594): when it goes away
- Link: <…>; rel="deprecation" pointing to this page
- It is also marked in the OpenAPI specification (deprecated: true), which feeds the [API reference](https://sendtide.ch/en/docs/api/) too.

Watch the two headers in your logs and you will notice before anything breaks.
## Deprecated today

Sunset on 2027-11-29:
| Deprecated | Use instead |
| --- | --- |
| Query parameters before and after of lists | cursor, see [Pagination](https://sendtide.ch/en/docs/pagination/) |
| Field next next to next_cursor | next_cursor |
| dedicated_ips of PATCH /v1/billing | ip_pool |
## Keep an eye on changes

The OpenAPI specification at [api.sendtide.ch/v1/openapi.json](https://api.sendtide.ch/v1/openapi.json) is the binding description. It marks deprecated fields with deprecated. The API reference in these docs is generated from the same file.
