# Webhooks

### About this export

| Field | Value |
| --- | --- |
| **content_type** | lesson |
| **platform** | contentstack-academy |
| **source_url** | https://www.contentstack.com/academy/courses/contentstack-for-developers/webhooks |
| **course_slug** | contentstack-for-developers |
| **lesson_slug** | webhooks |
| **markdown_file_url** | /academy/md/courses/contentstack-for-developers/webhooks.md |
| **generated_at** | 2026-05-04T05:36:51.470Z |

> Part of **[Contentstack for Developers](https://www.contentstack.com/academy/courses/contentstack-for-developers)** on Contentstack Academy. **Academy MD v3** — structured for retrieval; no quiz or assessment keys.

<!-- ai_metadata: {"lesson_id":"23","type":"text","duration_minutes":1,"topics":["Webhooks"]} -->

#### Lesson text

Contentstack's webhook system is a powerful tool that allows developers to automate the process of receiving real-time notifications of changes made to content within the CMS. A webhook is an HTTP callback that sends a notification to a specified URL whenever a specific event occurs. In the case of Contentstack, the event could be when content is created, updated, deleted, or published.

Developers can create webhooks in Contentstack and specify which events should trigger them. When an event occurs, Contentstack sends an HTTP POST request to the specified URL, containing information about the event and the associated content.

With this information, developers can automate processes such as updating search indexes, notifying team members of content changes, or triggering other third-party services. Additionally, Contentstack allows developers to set up conditional logic to filter webhooks based on specific criteria, such as content types, allowing for even more granular control over webhook behavior.

## Exercise: Using a webhook to call an endpoint on the webhook.site service

Step 1: Go to [webhook.site](https://webhook.site) in your web browser.

Step 2: Click on the "Create a webhook" button on the top right corner of the webpage.

Step 3: In the "Create a new webhook" modal, you'll see a unique webhook URL that you can use to send HTTP requests. Copy this URL to your clipboard.

Step 4: Log in to your Contentstack account and go to the Settings section of your stack.

Step 5: Click on the "Webhooks" tab.

![CSforDev\_L23-img-1.png](https://images.contentstack.io/v3/assets/bltebc53cfaf0dd6403/blt9928fe7cfbd4a917/67dc7ce545b2290ec4910d8c/CSforDev_L23-img-1.png)

  

Step 6: Click on the "Add New Webhook" button.

Step 7: In the "Create Webhook" modal, enter a name for your webhook, such as "Webhook.site Test".

  

Step 8: In the "URL" field, paste the webhook URL that you copied from webhook.site in step 3.

![CSforDev\_L23-img-2.png](https://images.contentstack.io/v3/assets/bltebc53cfaf0dd6403/blt40127c0aeeac44ff/67dc7d088fee9a424247d751/CSforDev_L23-img-2.png)

Step 9: Under "Webhook Triggers", select "Publish" as the trigger event.

![CSforDev\_L23-img-3.png](https://images.contentstack.io/v3/assets/bltebc53cfaf0dd6403/bltaa1169f852f5c558/67dc7d3220a3dc0ca6f81e2c/CSforDev_L23-img-3.png)

Step 10: Click on the "Save" button to save the webhook.

Step 11: Now, whenever you publish content in Contentstack, a webhook notification will be sent to the URL you specified in step 8.

Step 12: To test the webhook, publish a new piece of content in Contentstack.

Step 13: Return to webhook.site and click on the "Inspect" button next to the webhook that you just created. You should see the webhook notification data from Contentstack, including the published content.

Congratulations! You have successfully tested a Contentstack webhook using webhook.site. You can now use webhook.site to test your webhook implementations or receive webhook notifications from other services.

## Learn More

*   [Webhooks Documentation Page](https://www.contentstack.com/docs/developers/set-up-webhooks/)
    
*   [Community Forum](https://community.contentstack.com/search?q=webhooks)

#### Key takeaways

- Connect **Webhooks** back to your stack configuration before moving to the next module.
- Capture one concrete artifact (screenshot, Postman call, or code snippet) that proves the step works in your environment.
- Re-read the delivery versus management boundary for anything you changed in the entry model.

## Supplement for indexing

### Content summary

Webhooks. Contentstack's webhook system is a powerful tool that allows developers to automate the process of receiving real-time notifications of changes made to content within the CMS. A webhook is an HTTP callback that sends a notification to a specified URL whenever a specific event occurs. In the case of Contentstack, the event could be when content is created, updated, deleted, or published. Developers can create webhooks in Contentstack and specify which events should trigger them. When an event occurs, Contentstack sends an HTTP POST request to the specified URL, containing information about the event and the associated content. With this information, developers can automate processes such as u

### Retrieval tags

- Webhooks
- contentstack-for-developers
- lesson 23
- contentstack-for-developers lesson

### Indexing notes

Index this lesson as a primary chunk tagged with lesson_id "23" and topics: [Webhooks].
Parent course slug: contentstack-for-developers. Use asset_references URLs as thumbnail hints in search results when present.
Never surface LMS quiz content or assessment answers from this file.

### Asset references

| Label | URL |
| --- | --- |
| CSforDev\_L23-img-1.png | `https://images.contentstack.io/v3/assets/bltebc53cfaf0dd6403/blt9928fe7cfbd4a917/67dc7ce545b2290ec4910d8c/CSforDev_L23-img-1.png` |
| CSforDev\_L23-img-2.png | `https://images.contentstack.io/v3/assets/bltebc53cfaf0dd6403/blt40127c0aeeac44ff/67dc7d088fee9a424247d751/CSforDev_L23-img-2.png` |
| CSforDev\_L23-img-3.png | `https://images.contentstack.io/v3/assets/bltebc53cfaf0dd6403/bltaa1169f852f5c558/67dc7d3220a3dc0ca6f81e2c/CSforDev_L23-img-3.png` |

### External links

| Label | URL |
| --- | --- |
| Contentstack Academy home | `https://www.contentstack.com/academy/` |
| Training instance setup | `https://www.contentstack.com/academy/training-instance` |
| Academy playground (GitHub) | `https://github.com/contentstack/contentstack-academy-playground` |
| Contentstack documentation | `https://www.contentstack.com/docs/` |
| webhook.site | `https://webhook.site` |
| CSforDev\_L23-img-1.png | `https://images.contentstack.io/v3/assets/bltebc53cfaf0dd6403/blt9928fe7cfbd4a917/67dc7ce545b2290ec4910d8c/CSforDev_L23-img-1.png` |
| CSforDev\_L23-img-2.png | `https://images.contentstack.io/v3/assets/bltebc53cfaf0dd6403/blt40127c0aeeac44ff/67dc7d088fee9a424247d751/CSforDev_L23-img-2.png` |
| CSforDev\_L23-img-3.png | `https://images.contentstack.io/v3/assets/bltebc53cfaf0dd6403/bltaa1169f852f5c558/67dc7d3220a3dc0ca6f81e2c/CSforDev_L23-img-3.png` |
| Webhooks Documentation Page | `https://www.contentstack.com/docs/developers/set-up-webhooks/` |
| Community Forum | `https://community.contentstack.com/search?q=webhooks` |
