Availability
For how webhooks work, refer to Webhooks.
Add a target in the admin console, then approve it so that AI Studio starts to send events to it.
Prerequisites
TYK_AI_SECRET_KEYis set. Refer to Configuration.- Your role has the
writeandexecutepermissions on thewebhooksresource.
Create and Approve a Target
- In the admin console, go to Governance > Webhooks.
- Select New target.
- Enter a name, the URL, the topic filters, and the payload template. You can also add custom headers.
- 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.
- Select Create (pending approval). The new target stays
pendinguntil an administrator approves it. - 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.
- To approve the target, open the menu of the target and select Approve. Confirm with Approve. If WEBHOOKS_REQUIRE_DIFFERENT_APPROVER is
true, a different administrator does this step. - 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.
