Webhooks
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, 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
(or.webhook.js
) suffix. - Contain an
export default async function
that:
API
createWebhookHandler
– creates a webhook handlerupdateWebhookHandler
– updates a webhook handlerdeleteWebhookHandler
– deletes a webhook handler
Was this page helpful?