---
title: "Power your site with APIs and Build Hooks | Netlify"
description: "Realize the speed, agility and performance of a scalable, composable web architecture with Netlify. Explore the composable web platform now!"
source: "https://www.netlify.com/blog/2021/12/22/power-your-site-with-apis-and-build-hooks/"
last_updated: "2026-07-15T20:50:27.000Z"
---
> Throughout December we’ll be [highlighting a different Netlify feature each day](https://www.netlify.com/blog/2021/12/01/highlighting-a-different-netlify-feature-each-day-in-december/?utm_campaign=featdaily21&utm_source=netlify&utm_medium=blog&utm_content=buildhooks). It might just be the thing you need to unlock those creative juices, and [dust off that domain](https://www.netlify.com/blog/2021/12/01/dusty-domains-your-forgotten-domains-raise-money-for-charity/?utm_campaign=featdaily21&utm_source=netlify&utm_medium=blog&utm_content=buildhooks) you registered but never deployed! Keep an eye [on the blog](https://www.netlify.com/blog/2021/12/01/highlighting-a-different-netlify-feature-each-day-in-december/?utm_campaign=featdaily21&utm_source=netlify&utm_medium=blog&utm_content=buildhooks) and on [Twitter](https://twitter.com/netlify) for each feature!

Webhooks are a wonderful tool. They allow you to communicate between different services using HTTP POST requests. URLs for the win!

Imagine that you have a CMS application where you have your blog content. When you publish a new post in your CMS, you’d like to tell your site on Netlify that you’ve published a new post so it can rebuild and include the new content.

Build hooks allow us to do just that.

At Netlify, we use build hooks to enable those communications between your site and any other external tools and services.

## Setting up a build hook

You can create as many build hooks as you like, allowing new builds to be triggered by a wide rang of tools and services. And you can give each build hook a meaningful name, so that you can tell be looking at your deploy logs what is triggering your builds.

For example, let’s tell Netlify to rebuild a site whenever there’s a new content from a CMS like [Sanity](https://sanity.io).

In your Netlify site UI, navigate to _Site settings > Build & deploy > Continuous deployment > Build hooks_.

![/v3/img/blog/add-build-hook.png](/v3/img/blog/add-build-hook.png)

Click on `Add hook` and fill the form to set the hook name and select which Git branch the hook should take effect on:

![/v3/img/blog/build-hook-form.png](/v3/img/blog/build-hook-form.png)

When that is done, you can now copy the provided hook URL and use it in whatever service you’d like to integrate into your Netlify site. For example, you could [add this URL as a webhook](https://www.sanity.io/docs/webhooks_LEGACY#abPj1ygk) requested each time your content changes in Sanity

![/v3/img/blog/build-hook-url.png](/v3/img/blog/build-hook-url.png)

Now, whenever new content is published in your CMS, it will send a POST request to the build hook URL and Netlify will rebuild your site as a result.

You can also test the hook URLs yourself via curl or using tools like Postman. Now if you want to programmatically rebuild your site on Netlify, you know what to do!

## More information

-   [Docs: Build hooks](https://docs.netlify.com/configure-builds/build-hooks/?utm_campaign=featdaily21&utm_source=netlify&utm_medium=blog&utm_content=buildhooks)
-   [Docs: Integrations](https://docs.netlify.com/site-deploys/create-deploys/?utm_campaign=featdaily21&utm_source=netlify&utm_medium=blog&utm_content=buildhooks#build-hooks)

### Share

-   [X (fka Twitter)](https://twitter.com/intent/tweet?text=Power your site with APIs and Build Hooks&url=https://www.netlify.com/blog/2021/12/22/power-your-site-with-apis-and-build-hooks//)
-   [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.netlify.com%2Fblog%2F2021%2F12%2F22%2Fpower-your-site-with-apis-and-build-hooks%2F%2F)
-   [Facebook](https://www.facebook.com/sharer.php?u=https://www.netlify.com/blog/2021/12/22/power-your-site-with-apis-and-build-hooks//)
-   [Bluesky](https://bsky.app/intent/compose?text=Power your site with APIs and Build Hooks+https://www.netlify.com/blog/2021/12/22/power-your-site-with-apis-and-build-hooks//)

* * *

### Tags

-   [Tips](/blog/tags/tips/)
-   [Deploys](/blog/tags/deploys/)
-   [Integrations](/blog/tags/integrations/)

## Keep reading

![](/images/blog-fallback-thumbnail.svg)

News & Announcements December 3, 2020

[

### GraphCMS launches integration for Netlify

](/blog/2020/12/03/graphcms-launches-integration-for-netlify)

-   ![Profile picture of Jamie Barton](/_astro/3a92d0a4caa2852d7c50982cf9462a2c5f9f5c1f-80x80_Z1JAUr7.webp)
    
    Jamie Barton
    
-   ![Profile picture of Ronak Ganatra](/_astro/5d31d39be34ad8073802e6299c7a343eed487838-80x80_ZxSyGi.webp)
    
    Ronak Ganatra
    

![](/images/blog-fallback-thumbnail.svg)

Guides & Tutorials April 24, 2020

[

### Automate Contentful Deploys with Netlify Webhooks

](/blog/2020/04/24/automate-contentful-deploys-with-netlify-webhooks/)

-   ![Profile picture of Sarah Drasner](/_astro/a6e1bf6c9b86793c25e65b9505eea9535debb1ae-200x200_QunWA.webp)
    
    Sarah Drasner
    

## Recent posts

News & Announcements July 14, 2026

[

### More headroom, a lower per-credit rate, and a bill you can predict: introducing new Pro plan tiers

](/blog/new-pro-plan-tiers)

-   ![Profile picture of Gehrig Kunz](/_astro/b4e9f58d914d1334ea70d53ea55a1f26b26f1445-512x512_17SwOI.webp)
    
    Gehrig Kunz
    

News & Announcements July 13, 2026

[

### Netlify inside of Claude Design

](/blog/netlify-inside-of-claude-design)

-   ![Profile picture of Sean Roberts](/_astro/bbf2243f8171dbddd80ab2103622106cef84d125-512x512_Z1d2LKE.webp)
    
    Sean Roberts
    

News & Announcements June 25, 2026

[

### Netlify Functions, designed for Agent Experience

](/blog/netlify-functions-designed-for-agent-experience)

-   ![Profile picture of Eduardo Bouças](/_astro/52958f21e8450baf6d8e60302341a984e220c0cd-512x512_13VDlu.webp)
    
    Eduardo Bouças
    

![](/_astro/3f255b372fa958df35802666ee33b4609b2d71bd-1200x1586_1VtE2D.webp)

### How do the best dev and marketing teams work together?

[Access the report](https://www.netlify.com/reports/2024-leadership-trend-report/access/)