# The legacy Alerts API is deprecated

Databricks REST API deprecated /api/2.0/preview/sql/alerts* without giving a shutdown date yet.

- API: Databricks REST API (*.cloud.databricks.com)
- Kind: Version retirement
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `/api/2.0/preview/sql/alerts*`
- Source: [Announcement](https://docs.databricks.com/aws/en/sql/dbsql-api-latest)
- Page: https://www.okapi.bot/providers/databricks-rest-api/breaking-changes/the-legacy-alerts-api-is-deprecated/

## What to use instead

Call the Alerts API at /api/2.0/sql/alerts (PATCH for partial updates; deletes move alerts to the trash) instead of /api/2.0/preview/sql/alerts.

## Databricks REST API's words

> The legacy API is deprecated and support will end soon. Use this page to migrate your applications and integrations to the new API version.
