> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Enable/Disable Hooks

> Learn how to enable and disable hooks using the Dashboard and Management API.

> [!WARNING]
>
> **Hooks will reach end of life (EOL) on April 30, 2027.**
>
> * As of October 16, 2023, Hooks are no longer available in newly created tenants.
> * As of November 18, 2024, Hooks are read-only. Active Hooks still run, and you can enable or disable them and change their configuration values and secrets. You can't edit their code in the Dashboard, the Management API, or tools that use it, such as the Auth0 CLI, Deploy CLI, Terraform, and Agent Skills.
> * **After April 30, 2027, Hooks stop running and are removed.**

**Use Actions to extend Auth0:**

* To learn more about Actions, read [Understand How Auth0 Actions Work](/docs/docs/customize/actions/actions-overview).
* To migrate, read [Migrate from Hooks to Actions](/docs/docs/customize/actions/migrate/migrate-from-hooks-to-actions).

You can enable or disable hooks using the Dashboard or Management API (Management API: A product to allow customers to perform administrative tasks.).

> [!WARNING]
>
> Although you may create multiple hooks for any given extensibility point, each extensibility point may have only one enabled hook at a time. Any subsequent hooks you create for that extensibility point are automatically disabled, so you must explicitly enable them. The enabled hook will be executed for all applications and APIs.

> [!WARNING]
>
> When creating new hooks, Auth0 automatically enables the first Hook you create for an extensibility point. Any subsequent hooks you create for that extensibility point are automatically disabled, so you must explicitly enable them.

## Use the Dashboard

1. Go to [Auth0 Dashboard > Auth Pipeline > Hooks](https://manage.auth0.com/#/) and locate the extensibility point for which you want to enable or disable a Hook.
2. Click on the dropdown box located immediately under the extensibility point's name and description.

   ![Auth0 Hook selection](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/2LCBPLtrsjmmJYxCGfWquT/74b232fd96aa179c89f01e46d2e91ce3/dashboard-hooks-list.png)
3. Select the Hook you want to enable, and confirm. If you want to disable all Hooks, select `None`.

A green dot will appear next to the name of any enabled Hooks.

## Use the Management API

Make a `PATCH` call to the [Update a Hook endpoint](/docs/docs/api/management/v2/#!/Hooks/patch_hooks_by_id). Be sure to replace `HOOK_ID` and `MGMT_API_ACCESS_TOKEN` placeholder values with your Hook ID and Management API Access Token (Access Token: Authorization credential, in the form of an opaque string or JWT, used to access an API.), respectively.

Using the Auth0 CLI? If you haven't already, [set up and authenticate your CLI session](/docs/docs/deploy-monitor/auth0-cli) before running this command.

| Value | Description |
| - | - |
| `HOOK_ID` | ID of the hook to be updated. |
| `MGMT_API_ACCESS_TOKEN` | Access Token for the Management API with the [scope](/docs/docs/glossary?term=scope) `create:hooks`. To learn more, read [Management API Access Tokens](/docs/docs/secure/tokens/access-tokens/management-api-access-tokens). |

The `enabled` property represents whether the rule is enabled (`true`) or disabled (`false`).
