# API deprecation

If you use custom plugins based on the [plugin-basics](https://docs.sonarsource.com/sonarqube-server/10.5/extension-guide/developing-a-plugin/plugin-basics "mention") or consume SonarQube services through the [web-api](https://docs.sonarsource.com/sonarqube-server/10.5/extension-guide/web-api "mention") then you will have to manage the possible API deprecations. See also the [web-api](https://docs.sonarsource.com/sonarqube-server/10.5/extension-guide/web-api "mention") and the [plugin-basics](https://docs.sonarsource.com/sonarqube-server/10.5/extension-guide/developing-a-plugin/plugin-basics "mention").

## Monitoring the deprecated Web API components <a href="#web-api" id="web-api"></a>

After an upgrade, you can check if an authenticated client of your SonarQube instance uses deprecated Web API endpoints and parameters in order to anticipate their drop. To do so, browse the deprecation log as illustrated below.

![](https://3691828591-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Feu7dHWcqP9Cr3eUAzwWg%2Fuploads%2Fgit-blob-b721ac387fdbb260cc4eaa60a06c8bc3c86e5573%2F22a7454154aef58da27bf5c265b6867be377eef7.png?alt=media)

To download the deprecation log from the UI (with the **Administer System** permission):

1. In the top navigation bar of the SonarQube UI, select **Administration > System**.
2. In the top right corner of the **System Info** page, click **Download Logs > Deprecation Logs**.

{% hint style="info" %}
You can automate the retrieval of the deprecation log information by calling the Web API endpoint [`api/system/logs`](https://next.sonarqube.com/sonarqube/web_api/api/system/logs) with `deprecation` as the value of the `name` parameter.
{% endhint %}

## Monitoring the deprecated Plugin API components <a href="#plugin-api" id="plugin-api"></a>

Check the [Plugin API release notes](https://github.com/SonarSource/sonar-plugin-api/releases) for deprecation notes.
