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

# Create a Webhook Target in Tyk AI Studio

> Add a webhook target in the Tyk AI Studio admin console, store its signing secret, approve it, and send a test event.

## Availability

| Edition | Deployment Type |
| :- | :- |
| [Enterprise](https://tyk.io/docs/ai-management/ai-studio/overview.md#enterprise-edition) | Self-Managed |

For how webhooks work, refer to [Webhooks](https://tyk.io/docs/ai-management/ai-studio/webhooks.md).

Add a target in the admin console, then approve it so that AI Studio starts to send events to it.

## Prerequisites

* `TYK_AI_SECRET_KEY` is set. Refer to [Configuration](https://tyk.io/docs/ai-management/ai-studio/webhooks.md#configuration).
* Your role has the `write` and `execute` [permissions](https://tyk.io/docs/ai-management/ai-studio/webhooks-reference.md#permissions) on the `webhooks` resource.

## Create and Approve a Target

1. In the admin console, go to **Governance > Webhooks**.
2. Select **New target**.
3. Enter a name, the URL, the [topic filters](https://tyk.io/docs/ai-management/ai-studio/webhooks-reference.md#topic-filters), and the [payload template](https://tyk.io/docs/ai-management/ai-studio/webhooks-reference.md#payloads). You can also add custom headers.
4. Optional: in **Signing secret (optional)**, enter your own secret of 16 to 256 characters. If you leave it empty, AI Studio makes a random secret.
5. Select **Create (pending approval)**. The new target stays `pending` until an administrator approves it.
6. Copy the secret from the **Signing secret** dialog and keep it in your receiver. The console shows the secret one time only. Then select **I have saved it**.
7. To approve the target, open the menu of the target and select **Approve**. Confirm with **Approve**. If [WEBHOOKS\_REQUIRE\_DIFFERENT\_APPROVER](https://tyk.io/docs/ai-management/ai-studio/ai-studio-env.md#webhooks_require_different_approver) is `true`, a different administrator does this step.
8. To check the target, open the menu of the target and select **Send test event**. AI Studio sends a sample event with the topic `webhooks.test`.

![New webhook target dialog with a URL and two topic filters](https://mintcdn.com/tyk/VUjt8DTbpDbltCri/img/ai-management/ai-studio-webhooks-new-target.png?fit=max\&auto=format\&n=VUjt8DTbpDbltCri\&q=85\&s=21c4a5bef4963454e20e36d4a8ee3629)

To check the signature of each delivery in your receiver, refer to [Verify a Webhook Delivery](https://tyk.io/docs/ai-management/ai-studio/how-to-verify-webhook-delivery.md).
