> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # Send PostHog event data using webhooks Canonical URL: https://posthog.com/docs/data-pipelines/destinations/webhook > **Cloud region:** This page uses US Cloud hosts. For an EU Cloud project, use `https://eu.posthog.com` instead of `https://us.posthog.com` or `https://app.posthog.com` (app host for links). ## On this page - [Setting up destination webhooks](#setting-up-destination-webhooks) - [Configuration](#configuration) - [FAQ](#faq) With webhook destinations, you can send event data from PostHog to any HTTP endpoint, whether it's to your own backend, an internal system, or a third-party platform. **Want to send PostHog data to a particular platform like Slack?** Browse all the **Destinations** listed in the sidenav to integrate with well-known platforms like [Slack](https://posthog.com/docs/data-pipelines/destinations/slack.md), [HubSpot](https://posthog.com/docs/data-pipelines/destinations/hubspot.md), or [Zapier](https://posthog.com/docs/data-pipelines/destinations/zapier.md). **Want to bring your data into PostHog?** Check out [Sources](https://posthog.com/docs/data-pipelines/sources.md) to learn how to connect your systems like CRM, payment processor, or database with PostHog data for all-in-one analytics. ## Setting up destination webhooks ### 1\. Create a new destination In PostHog, navigate to the [data pipelines](https://app.posthog.com/data-management/destinations) section in the sidebar. Click **\+ New** > **Destination** in the top-right corner. Search for "Webhook" then click **\+ Create**. ![Create new destination](https://res.cloudinary.com/dmukukwp6/image/upload/webhook_destination_cd495788fc.png) ### 2\. Configure the webhook On the configuration page, enter a **Webhook URL**. This is the HTTP endpoint that will receive the event data from PostHog. By default, PostHog sends a `POST` request with a templated JSON body. Click **Create & Enable**. ![Configure webhook](https://res.cloudinary.com/dmukukwp6/image/upload/webhook_url_config_5900a5a9b7.png) **Webhook services** You can use services like [webhook.site](https://webhook.site/) or [ngrok](https://ngrok.com/) to create **Webhook URLs** for quick testing. ### 3\. Test the webhook Now that the webhook is enabled, let's see it in action. In the **Testing** section of the configuration page, click **Start testing** > **Test function** to send an example event. You should see the webhook endpoint receive a `POST` request with event data. **Debugging** Try enabling **Log responses** to help debug HTTP calls. ### 4\. Customize the webhook (optional) You can further configure and customize webhook destinations by: - Adding filters, match rules, and trigger options in the **Filters** section - Customizing the [payload](https://posthog.com/docs/data-pipelines/destinations/customizing-destinations.md#customizing-payload) - Using [global variables](https://posthog.com/docs/data-pipelines/destinations/customizing-destinations.md#global-object) - Modifying the [source code](https://posthog.com/docs/data-pipelines/destinations/customizing-destinations.md#modifying-destinations-with-hog) in the **Edit source** section ## Configuration **Add IPs to Firewall/WAF allowlists (recommended)** If your webhook endpoint is behind a firewall or web application firewall (WAF), it may block requests from PostHog. Add these IP addresses to your allowlist so PostHog can deliver events to your endpoint. **EU**: `3.75.65.221`, `18.197.246.42`, `3.120.223.253` **US**: `44.205.89.55`, `52.4.194.122`, `44.208.188.173` These are public, stable IPs used by PostHog's data pipeline. ## FAQ ### Is the source code for this destination available? PostHog is open-source and so are all the destination on the platform. The [source code](https://github.com/PostHog/posthog/blob/master/nodejs/src/cdp/templates/_destinations/webhook/webhook.template.ts) is available on GitHub. ### Who maintains this? This is maintained by PostHog. If you have issues with it not functioning as intended, please [let us know](https://us.posthog.com/#panel=support%3Asupport%3Aapps%3A%3Atrue)! ### What if I have feedback on this destination? We love feature requests and feedback. Please [tell us what you think](https://us.posthog.com/#panel=support%3Afeedback%3Aapps%3Alow%3Atrue). ### What if my question isn't answered above? We love answering questions. Ask us anything via [our community forum](https://posthog.com/questions.md).