You can create multiple Hook Secrets for any Hook using the Dashboard or . Hook Secrets may also be imported and exported using the Deploy Command-Line Interface (CLI) Tool.Documentation Index
Fetch the complete documentation index at: https://docs-staging.auth0-mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
You may create up to 20 secrets for any given Hook.
Create Hook Secrets using the Dashboard
- Navigate to the Hooks page in the Auth0 Dashboard, and click the pencil icon next to the Hook you want to edit.
- In the Hook editor, click the wrench icon, and click Secrets.
- Click Add Secret.
- Enter a descriptive name and value for your secret, and click Save.
Create Hook Secrets using the Management API
Make aPOST call to the Add Hook Secrets endpoint. Be sure to replace MGMT_API_ACCESS_TOKEN, HOOK_ID, HOOK_SECRET_KEY, and HOOK_SECRET_VALUE placeholder values with your Management API , Hook ID, and Hook key-value pair(s), respectively.
| Value | Description |
|---|---|
MGMT_API_ACCESS_TOKEN | Access Token for the Management API with the 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. |