> ## Documentation Index
> Fetch the complete documentation index at: https://docs.attio.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Webhook Handlers

> Server code that can be executed when called via HTTP from a third party

Webhook Handlers enable apps to receive incoming requests from third-party services.
Unlike [server functions](/sdk/server/server-functions), which are used to send requests,
Webhook Handlers are designed to *listen* for and process external requests. They
can be used to sync data into Attio or respond with on-demand data to third-party
services, making them essential for integrating external systems and automating workflows.

Webhook files ***MUST***:

* Live under the `src/webhooks` directory
* Have a `.webhook.ts` suffix.
* Contain an `export default async function` that:
  * takes an HTTP [`Request`](https://developer.mozilla.org/en-US/docs/Web/API/Request) argument
  * returns an HTTP [`Response`](https://developer.mozilla.org/en-US/docs/Web/API/Response)

## API

* [`createWebhookHandler`](./create-webhook-handler) – creates a webhook handler
* [`updateWebhookHandler`](./update-webhook-handler) – updates a webhook handler
* [`deleteWebhookHandler`](./delete-webhook-handler) – deletes a webhook handler
