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

# Create Hook Secrets

> Learn how to create Hook Secrets using the Dashboard and Management API. Hook Secrets may also be imported and exported using the Auth0 Deploy Command-Line Interface (CLI) tool.

> [!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 create multiple Hook Secrets for any [Hook](/docs/docs/customize/hooks) using the Dashboard or Management API (Management API: A product to allow customers to perform administrative tasks.).

Hook Secrets may also be imported and exported using the [Deploy Command-Line Interface (CLI) Tool](/docs/docs/deploy-monitor/deploy-cli-tool).

You may create up to 20 secrets for any given Hook.

## Create Hook Secrets using the Dashboard

1. Navigate to the [Hooks](https://manage.auth0.com/#/hooks) page in the [Auth0 Dashboard](https://manage.auth0.com/#/), and click the pencil icon next to the Hook you want to edit.
2. In the Hook editor, click the wrench icon, and click **Secrets**.
3. Click **Add Secret**.
4. Enter a descriptive name and value for your secret, and click **Save**.

## Create Hook Secrets using the Management API

Make a `POST` call to the [Add Hook Secrets endpoint](/docs/docs/api/management/v2/#!/Hooks/post_secrets). Be sure to replace `MGMT_API_ACCESS_TOKEN`, `HOOK_ID`, `HOOK_SECRET_KEY`, and `HOOK_SECRET_VALUE` placeholder values with your Management API Access Token (Access Token: Authorization credential, in the form of an opaque string or JWT, used to access an API.), Hook ID, and Hook key-value pair(s), 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 |
| - | - |
| `MGMT_API_ACCESS_TOKEN` | [Access Token for the Management API](/docs/docs/secure/tokens/access-tokens/management-api-access-tokens) with the [scope](/docs/docs/glossary?term=scope) `create:hooks`. |
| `HOOK_ID` | ID of the hook for which you would like to add secrets. |
| `HOOK_SECRET_KEY` | Name of the secret that you would like to add to the specified hook. This endpoint accepts an object of key-value pairs. |
| `HOOK_SECRET_VALUE` | Value of the secret that you would like to add to the specified hook. This endpoint accepts an object of key-value pairs. |
