> For the complete documentation index, see [llms.txt](https://docs.edgetag.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.edgetag.io/channels/webhook.md).

# Webhook

### What is a Webhook?

A **webhook** is a mechanism that enables one system (the sender) to automatically send real-time data to another system (the receiver) when a specific event occurs. Instead of the receiver repeatedly asking (polling) for updates, the sender “pushes” the data to a specified **URL endpoint**.

### Overview

* **Flexible Event Processor:**\
  **EdgeTag webhook** can process any incoming event/data and forward it to either an external system or directly into the EdgeTag platform.
* **Custom JavaScript Logic:**\
  The webhook is written in plain JavaScript, allowing developers to fully customize how the input data is handled.

### Capabilities

* **Forward Data to External Servers**
  * Accepts incoming payloads and sends them to external APIs or endpoints.
  * Useful for integrations with third-party tools or internal services.
* **Format & Transform Data Before Forwarding**
  * Modify, enrich, or sanitize incoming payloads before sending them out.
  * Ensures compatibility with external systems that expect a specific structure.
* **Send Lead Events to EdgeTag**
  * Capture lead generation events and pass them into the EdgeTag system for tracking and automation.
* **Send Custom Events from CRMs to EdgeTag**
  * Connect with any CRM (HubSpot, Salesforce, Zoho, etc.) and forward custom events (e.g., deal updates, contact changes).
* **Create a Lead in HubSpot**
  * Automatically push incoming lead data into HubSpot CRM, enabling instant contact creation and workflow triggers.
* **Create a Lead in Salesforce**
  * Seamlessly integrate with Salesforce by creating new leads from incoming webhook data.
  * Helps align sales teams by automatically updating records with fresh leads.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.edgetag.io/channels/webhook.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
