# Deprecation Policy

Each SDK major version and each API version keeps working for at least 12 months after its replacement ships. You get at least 90 days' email notice before anything stops working. This page defines both promises and what to do about app versions that are already in users' hands.

## The two commitments

| Commitment | What it means |
|------------|---------------|
| 12-month support window | When a new SDK major version or a new API version ships, the one it replaces keeps working for at least 12 months from that release date. |
| 90-day notice | Before any change stops something working, we email you at least 90 days ahead. The notice states what changes, the date it takes effect, and what to do. |

The two run together, not in sequence. If version 2 ships on 1 March, version 1 keeps working until at least 1 March of the next year. We announce the stop date at least 90 days before it, so the notice can come at any time in that window but never later than 90 days before the date.

The same 90-day notice applies to other changes that need action from you, such as an app update to keep links opening your app. [Terms section 6](https://warplink.app/terms#service-changes) states the commitment in contract terms.

## What the commitments cover

- **API versions.** The REST API is versioned in its path. Today that is `/v1`.
- **SDK major versions.** The iOS, Android, React Native, and Flutter SDKs follow semantic versioning. A major version is the first number, so 1.1.0 belongs to major version 1.
- **Calls that installed apps make.** An SDK in a shipped app calls four endpoints: `GET /v1/sdk/validate`, `GET /v1/links/resolve/{slug}`, `POST /v1/attribution/match`, and `POST /v1/referrals/claims`. The window protects those calls for as long as the SDK version that makes them is inside it.

Every SDK is on major version 1 and the API is v1. No SDK version is in a deprecation window.

## What counts as a breaking change

A change is breaking when code that worked before can stop working without being edited.

| Breaking | Not breaking |
|----------|--------------|
| Removing or renaming an endpoint, a request field, or a response field | Adding an endpoint |
| Changing the type or the meaning of an existing field | Adding an optional request field |
| Rejecting a request that was accepted before, such as stricter validation | Adding a response field |
| Changing which keys or scopes an endpoint accepts | Fixing a bug where the old behavior contradicted the documentation |
| Removing a public method, type, or option from an SDK | Making a response faster or smaller without changing its fields |
| Ending support for a link host or link format that apps rely on | Adding a new SDK method or option |

Write your code to ignore response fields it does not know. We add fields without a version change.

Raising the minimum operating system or toolchain version in a new SDK release is announced in the [changelog](https://warplink.app/docs/changelog). It does not affect apps that stay on an older SDK release, because the older release is unchanged.

## How notice is sent

1. We email the account owner of each organization that could be affected. The email names the version, the stop date, and the replacement.
2. We post the same notice in the [changelog](https://warplink.app/docs/changelog) and mark the old version as deprecated in the documentation.
3. The email is the notice that starts the 90 days. The changelog and the documentation are where you can check the date later.

We send the email to the address on your account. Keep it current, because that address is how the notice reaches you.

## Security fixes

When a security fix is needed, we fix the problem on our servers first wherever we can, so that you do not need to ship anything. If a fix needs an SDK update, we email you as soon as the fix is ready and explain it in the email.

## App versions that are already shipped

An app that is installed keeps the SDK version you built into it until the user updates. You cannot change that code from the server. Three things follow.

- **Inside the window,** those apps keep resolving links and matching installs exactly as they did.
- **After a version stops,** its calls fail. The SDK reports the error to your `onLink` callback and your app keeps running. See [Fallbacks when the API is unreachable](https://warplink.app/docs/trust/fallbacks) for how to handle that error gracefully.
- **Plan for the update curve.** Many users run an old app version for months. Ship the SDK update early in the 12 months, check how many sessions still use the old version, and keep the fallback in place until that number is small.

Your own app analytics or crash reporting show which app versions are in use. Those numbers tell you when it is safe to drop the fallback.

## Where announcements live

- The [changelog](https://warplink.app/docs/changelog) for every deprecation, with its dates.
- Email to account owners, which starts the 90 days.
- This page, which states the policy and is the page to check for changes to the policy itself.

Related pages: [Plan changes and billing transitions](https://warplink.app/docs/trust/plan-changes) covers changes to your own plan, and [Data portability and leaving WarpLink](https://warplink.app/docs/trust/data-portability) covers exporting your data.
