Forward captured leads to a webhook
add_webhookForward every lead captured on a page (pageId) or across a whole website (siteId) to a URL, for Zapier, Make, a CRM or your own endpoint. Enabling a webhook sends a test POST to it first and only enables it if that succeeds, so a URL that isn't reachable is saved disabled rather than silently dropping leads. Use this instead of adding fetch() to the page.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public https:// endpoint to POST each lead to. It must answer a test POST with a 2xx before it will be enabled. Leads are sent in full, so plain http, localhost and private addresses are all refused. | |
| pageId | No | Attach to a single page (id from list_pages). Give this or siteId. | |
| siteId | No | Attach to a whole website, so every page in it forwards leads there (id from list_sites). Give this or pageId. Usually the right choice for a CRM or automation that should cover the whole website. | |
| enabled | No | Whether to activate it now (default true, which triggers the test POST). Pass false to save it switched off without testing. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| count | Yes | Webhooks on the page after this one. | |
| scope | Yes | Whether this concerns one page or a whole website. | |
| pageId | Yes | Set when scope is page. | |
| siteId | Yes | Set when scope is site. | |
| webhook | Yes | ||
| testStatusCode | Yes | HTTP status the test POST received, or null if the request could not be made at all. | |
| verificationFailed | Yes | True when enabling was requested but the test POST did not return 2xx, so it was saved DISABLED and no leads will be sent to it. |