# Setting up Webhooks

{% embed url="<https://frontitude-public.s3.eu-west-1.amazonaws.com/website/webhooks.mp4>" %}
Creating a webhook in Frontitude
{% endembed %}

## Turning On the Webhooks Integration

1. Go to the ***Webhooks*** section in your [workspace integrations page](https://app.frontitude.com/settings/integrations).
2. If it's turned of, click the toggle to turn on the integration. Notice that Webhooks is available only as part of the developer pack on our premium plans.

## Generating a Signing Key

Before you can start using Webhooks, you need to generate a signing key. This key is essential for ensuring the authenticity of incoming HTTP payloads and preventing malicious requests.

To generate a signing key:

1. Click on the ***Generate key*** button under the ***Webhooks*** section in your [workspace integrations page](https://app.frontitude.com/settings/integrations).
2. Click ***Copy*** to copy it to your clipboard.
3. Paste it somewhere safe and use it in your code to validate incoming events (see our code sample below).
4. You can always refresh the signing key by clicking ***Refresh key***. On refresh, the previous key will be valid for the next 24 hours.‍

## Creating a Webhook

To start receiving webhook events, you need to create a webhook:

1. Go to the ***Webhooks*** section in your [workspace integrations page](https://app.frontitude.com/settings/integrations).
2. Create a webhook by specifying a name, URL, and at least one trigger.
3. Ensure that the URL you specify points to a secure endpoint using HTTPS.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.frontitude.com/webhooks/setting-up-webhooks.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
