# API versioning and upgrades

> Upgrade API tokens or requests to the latest API version.

## Overview

Versioning is a vital concept in software development, particularly when utilizing APIs. It involves managing changes in the API over time while maintaining consistency and functionality for users.

If developers have made any changes to the API, it is essential to stay updated with the most recent breaking changes to ensure your application remains compatible and functional.

* * *

## What constitutes a breaking change?

-   Major shifts in API structure or functionality.
-   Modifications to existing endpoints that alter expected outputs.
-   Removal of features or endpoints.

Anything that is considered a breaking change requires a versioning update.

* * *

## Upgrading for customers

### Option A: Create a new API token

To upgrade to the latest API version, customers need to generate a new API token:

-   Navigate to the API credentials app.
-   Create a new token, ensuring you select the most recent API version.

![versioning1](https://developer.rippling.com/assets/images/versioning1-d0158a8f9c34278482df43a033f111b6.png)

> **Note:**
> Optionally, you can edit an existing token to upgrade to the most recent API version.

You can opt to remain on the previous version if you prefer, but it is recommended to switch to the latest version for optimal performance and security.

### Option B: Override the version in the header

When making API requests, you can specify a particular version in the request header using the `Rippling-Api-Version` field. The "version" is represented by a date.

_Example request:_

```text
GET /endpoint
Host: api.example.com
Rippling-Api-Version: 2023-10-01
```

* * *

## Upgrading for App Shop partners

### Reauthorize the app after version change

Reauthorization is necessary if a new version introduces breaking changes or alters scopes. Currently, partners cannot stay on the previous version once changes are adopted.

1.  Direct admins to the **Authorize** installation step of their app's installation flow with the template URL: `https://app.rippling.com/apps/PLATFORM/{APPNAME}/authorize`
2.  Admins must complete the installation flow to finish the reauthorization.

Alternatively, Admins can uninstall and reinstall the app to authorize to the latest changes by navigating to the app in Rippling > **Settings** > **Uninstall**.

This process helps to maintain a seamless integration and ensure that all new updates and permissions are appropriately applied.

Source: https://developer.rippling.com/documentation/rest-api/essentials/versioning

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
