> This page is part of EVVA for Developers (https://developers.evvahub.com), the documentation of the EVVA Partner API. The API is in developer preview and the SDK packages are not yet published: do not suggest installing them. Index: https://developers.evvahub.com/llms.txt

# Versioning and deprecation

## The version is in the path

The path carries the API's major version: `/partner/v1/…`. Every response also names it in a header:

```http
API-Version: v1
```

Within v1, EVVA makes **additive changes only**. A breaking change ships as a new major version, `/partner/v2`,
served alongside v1 so you can move at your own pace.

| Additive — can happen within v1            | Breaking — only in a new major version                    |
| ------------------------------------------ | --------------------------------------------------------- |
| New operations                             | Removing or renaming an operation, a field or a parameter |
| New optional request fields and parameters | Making something required that was optional               |
| New response fields                        | Narrowing a type                                          |
| New enum values in responses               | Changing a status code or what a code means               |
| New error codes                            | Changing how authentication works                         |
| New event types and new frame fields       |                                                           |

Write your client to tolerate additive changes: ignore unknown fields, handle unknown enum values and event types,
and act on the HTTP status of an unknown error code. See [API conventions](/conventions/overview#compatibility).

## Semantic versions

| What                        | Versioning                                                                                                                                                                                                               |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| The API                     | A major version in the path (`v1`).                                                                                                                                                                                      |
| The API reference documents | Semantic versions. A minor version adds operations; a patch changes documentation only; a major version comes only with a new path version.                                                                              |
| Events                      | Every event carries `schemaVersion`. A new event type is additive; changing the `data` of an existing type means a new `schemaVersion`.                                                                                  |
| Realtime protocol           | Negotiated in the first frame (`hello.protocolVersion`). The server speaks version `1`; any other is answered with an `UNSUPPORTED_PROTOCOL_VERSION` error that lists the supported versions, and the connection closes. |
| SDKs                        | Semantic versioning. Before 1.0, a minor release may change the SDK's own API.                                                                                                                                           |

## Deprecation policy

Nothing in v1 is deprecated today. When an operation is deprecated, this is how you will know, and how long you
have:

#### The deprecation is announced

The operation is marked deprecated in the [API reference](/api-reference) and in the
[changelog](/changelog), which names its replacement.

#### Every response says so

Each response of a deprecated operation carries `Deprecation` (RFC 9745), the instant it was deprecated as
`@<epoch seconds>`; `Sunset` (RFC 8594), the date after which it may stop working, once one is set; and
`Link: <…>; rel="deprecation"` when a page describes the change.

#### Your application can ask

[`GET /partner/v1/app/capabilities`](https://developers.evvahub.com/api-reference/application/get-application-capabilities) lists, under `deprecations`, every
deprecated operation your application can call, with its `deprecatedAt`, `sunsetAt` and `replacement` — so you
find out without calling the operation.

#### At least 180 days before it goes

For live applications, at least **180 days** separate `Deprecation` from `Sunset`. A deprecated operation keeps
answering until its sunset date, and it is removed only in the next major version.

**`Response of a deprecated operation`**

```http title="Response of a deprecated operation"
HTTP/1.1 200 OK
API-Version: v1
Deprecation: @1827619200
Sunset: Thu, 01 Jun 2028 00:00:00 GMT
Link: <https://developers.evvahub.com/changelog>; rel="deprecation"
```

**`GET /partner/v1/app/capabilities (excerpt)`**

```json title="GET /partner/v1/app/capabilities (excerpt)"
{
  "deprecations": [
    {
      "operation": "exampleOperation",
      "method": "GET",
      "path": "/partner/v1/…",
      "deprecatedAt": "2027-12-01T00:00:00.000Z",
      "sunsetAt": "2028-06-01T00:00:00.000Z",
      "replacement": "exampleOperationV2"
    }
  ]
}
```

> **Note**
>
> The samples show the shape only: no operation is deprecated today, so `deprecations` is currently empty.

## In the SDKs

The official SDKs report `Deprecation` and `Sunset` once per operation as a warning, so a deprecation shows up in
your logs before it matters.

## Next steps

#### [Changelog](/changelog)

What changed, and when.

#### [API conventions](/conventions/overview)

The rules every operation follows.

#### [Scopes and grants](/authentication/scopes)

Capability discovery and what your application may do.

#### [SDKs](/sdks/overview)

Official clients that track the API for you.