> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.kiwify.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Understanding Webhook Functionality

# What are Webhooks?

Webhooks are a method of augmenting or altering the behavior of a web page, or web application, with custom callbacks. They allow one application to send real-time data to other applications, which get the data as soon as it's available. This means that you can automatically trigger an action on another app whenever a specific event happens on Kiwify.

For example, you could use a webhook to automatically add a row to a Google Sheets spreadsheet every time a purchase is approved on Kiwify.

However, webhooks do require a bit of programming knowledge to set up, so we recommend creating them only if you're confident in doing so.

| Kiwify sends webhooks in JSON format.

### How to Create a Webhook

On the **Apps** menu, click on **Webhooks**. Then click on **Create Webhook**.

![](https://storage.crisp.chat/users/helpdesk/website/f11c2d2e7f47d000/screenshot136_srx93q.png)

A tab will open on the right side of your screen, where you can configure your webhook. Select the product and the events that should trigger the webhook. Then just click **Create**.

![](https://storage.crisp.chat/users/helpdesk/website/f11c2d2e7f47d000/screenshot137_17ovqgd.png)

### Testing the Webhooks

We recommend using a free service like https://requestbin.com/ to generate a URL and receive test webhooks.

After saving a webhook, simply click the **Test Webhook** button to fire test events.

![](https://storage.crisp.chat/users/helpdesk/website/f11c2d2e7f47d000/screenshot138_dagzv4.png)

### Checking Your Webhook Logs

You can check your webhook logs by clicking on the three dots on the right side of your webhook and selecting the **View logs** option. 

You can change the date of view in the upper right corner.

If a log fails, you can resend it by clicking on the three dots next to the log or by selecting it and clicking the **Resend webhooks** button.

To view the request and response of each log, click on **See logs** in the same menu.
