---
title: "Import a Webhook"
description: "Learn how to import webhooks into Contentstack quickly. Follow our guide for smooth integration and efficient setup."
url: "https://www.contentstack.com/docs/headless-cms/import-a-webhook"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-07-23"
---

# Import a Webhook

You can create a new webhook or update an existing webhook by importing a JSON file with the webhook data.

## **Import a new webhook**

To import a webhook, log in to your [Contentstack account](https://www.contentstack.com/login), go to your [stack](/docs/headless-cms/about-stack), and Perform the steps given below:

1.  Click the “Settings” icon (press “S”) and select **Webhooks** (press “alt + W” for Windows OS, and “option + W” for Mac OS).![Edit\_a\_Webhook\_1.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt64c6872f751a8595/66a7375f7cd4c936333944c7/Edit_a_Webhook_1.png)
2.  Click the "Import Webhook" icon on the top right side of the page.![Import\_a\_Webhook\_2.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/bltefebbd96a6ca4218/66a76daba4a65778941dd3ee/Import_a_Webhook_2.png)
3.  Browse and select the appropriate JSON file and click **Import**.

This imports your webhook.

## **Update a webhook by importing JSON file**

Open the webhook that you need to update, and perform the following steps:

1.  Click the **Import** button available at the bottom of the webhook page.![Import\_a\_Webhook\_3.png](https://images.contentstack.io/v3/assets/blt2d43f51baca745a8/blt8f83a2f892ca36ac/66b0991a7836f26ef03061c9/Import_a_Webhook_3.png)
2.  Browse and select the appropriate JSON file and click **Import**.

This will update your existing webhook.

## API Reference

To import the JSON body of a webhook in your stack via API, refer to the [Import a webhook](/docs/developers/apis/content-management-api/webhooks#import-a-webhook) API request.