From 040c9833c7a4ee2cdbf39c1b43339b78be335173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Curn?= Date: Thu, 3 Jul 2025 16:31:14 +0200 Subject: [PATCH 1/2] Update actions.md --- sources/platform/integrations/programming/webhooks/actions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/platform/integrations/programming/webhooks/actions.md b/sources/platform/integrations/programming/webhooks/actions.md index c584325683..a6abf3bdf5 100644 --- a/sources/platform/integrations/programming/webhooks/actions.md +++ b/sources/platform/integrations/programming/webhooks/actions.md @@ -174,8 +174,8 @@ The description is an optional string that you can add to the webhook. It serves |-------------|--------|-------------------------------------------------------------------------------------| | `userId` | string | ID of the user who owns the webhook. | | `createdAt` | string | ISO string date of the webhook's trigger event. | -| `eventType` | string | Type of the trigger event, [see Events](/platform/integrations/webhooks/events). | -| `eventData` | Object | Data associated with the trigger event, [see Events](/platform/integrations/webhooks/events). | +| `eventType` | string | Type of the trigger event, see [Events](/platform/integrations/webhooks/events). | +| `eventData` | Object | Data associated with the trigger event, see [Events](/platform/integrations/webhooks/events). | | `resource` | Object | The resource that caused the trigger event. | | `globals` | Object | Data available in global context. Contains `dateISO` (date of webhook's trigger event in ISO 8601 format) and `dateUnix` (date of trigger event in Unix time in seconds) | From 30dc846ad58c1b6e9c7e7411f0b8b846f1d10d74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Curn?= Date: Thu, 3 Jul 2025 16:38:16 +0200 Subject: [PATCH 2/2] Update actions.md --- .../integrations/programming/webhooks/actions.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sources/platform/integrations/programming/webhooks/actions.md b/sources/platform/integrations/programming/webhooks/actions.md index a6abf3bdf5..c2f8398fb1 100644 --- a/sources/platform/integrations/programming/webhooks/actions.md +++ b/sources/platform/integrations/programming/webhooks/actions.md @@ -152,16 +152,16 @@ Note that the `eventData` and `resource` properties contain redundant data for b ## Headers template -The headers template is a JSON-like string where you can add additional information to the default header of the webhook request. You can pass the variables in the same way as in [payload template](#payload-template) (including the use of string interpolation and available variables). The resulting headers need to be a valid `json` object and values can be strings only. +The headers template is a JSON-like text where you can add additional information to the default HTTP header of the webhook request. You can pass the variables in the same way as in [payload template](#payload-template), including the use of string interpolation and the available variables. The resulting interpolated text need to be a valid JSON object, and values can be strings only. -Note that the following keys are hard-coded and will be always be rewritten: +Note that the following HTTP headers are always set by the system and your changes will always be rewritten: | Variable | Value | |---------------------------|-------------------------| -| `host` | request url | -| `Content-Type` | application/json | -| `X-Apify-Webhook` | Apify value | -| `X-Apify-Webhook-Dispatch-Id` | Apify id | +| `Host` | Request URL | +| `Content-Type` | `application/json` | +| `X-Apify-Webhook` | Apify internal value | +| `X-Apify-Webhook-Dispatch-Id` | Apify webhook dispatch ID | | `X-Apify-Request-Origin` | Apify origin | ## Description @@ -172,7 +172,7 @@ The description is an optional string that you can add to the webhook. It serves | Variable | Type | Description | |-------------|--------|-------------------------------------------------------------------------------------| -| `userId` | string | ID of the user who owns the webhook. | +| `userId` | string | ID of the Apify user who owns the webhook. | | `createdAt` | string | ISO string date of the webhook's trigger event. | | `eventType` | string | Type of the trigger event, see [Events](/platform/integrations/webhooks/events). | | `eventData` | Object | Data associated with the trigger event, see [Events](/platform/integrations/webhooks/events). |