# API deprecation

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

## 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.

![](/files/pYmSb9EX4CJPXQD2St1M)

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.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonarsource.com/sonarqube-server/10.5/instance-administration/monitoring/api-deprecation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
