Skip to content

Commit bab5caf

Browse files
authored
docs: change placement of the note & turn it into admonition (#1460)
turned new paragraph into admonition changed placement added details tag with IP list
1 parent 8ceb734 commit bab5caf

File tree

1 file changed

+20
-15
lines changed
  • sources/platform/integrations/programming/webhooks

1 file changed

+20
-15
lines changed

sources/platform/integrations/programming/webhooks/actions.md

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,26 @@ slug: /integrations/webhooks/actions
1414
To send notification, you can use the HTTP request action, which sends an HTTP POST request to a specified URL with a JSON payload. The payload is defined using a payload template, which is a JSON-like syntax that allows you to include variables enclosed in double curly braces `{{variable}}`. This enables the
1515
dynamic injection of data into the payload when the webhook is triggered.
1616

17+
:::tip Webhook delivery
18+
19+
Webhooks are sent from servers that use static IP addresses. If your webhook destination is secured by a firewall, you can add the following IP addresses to your allow list to ensure Apify webhooks are delivered successfully.
20+
21+
<details>
22+
<summary>IP list</summary>
23+
- `3.215.64.207`
24+
- `13.216.80.7`
25+
- `13.216.180.86`
26+
- `34.224.107.31`
27+
- `34.236.208.85`
28+
- `44.198.219.104`
29+
- `44.207.71.44`
30+
- `44.207.141.205`
31+
- `52.4.20.206`
32+
- `52.203.255.236`
33+
</details>
34+
35+
:::
36+
1737
### Response management
1838

1939
The response to the POST request must have an HTTP status code in the `2XX` range. If the response has a different status code, it is considered an error, and the request will be retried periodically with an exponential back-off:
@@ -164,18 +184,3 @@ The description is an optional string that you can add to the webhook. It serves
164184
The `resource` variable represents the triggering system resource. For example, when using the `ACTOR.RUN.SUCCEEDED` event, the resource is the Actor run. The variable will be replaced by the `Object` that you would receive as a response from the relevant API at the moment when the webhook is triggered. For the Actor run resource, it would be the response of the [Get Actor run](/api/v2#/reference/actors/run-object-deprecated/get-run) API endpoint.
165185

166186
In addition to Actor runs, webhooks also support various events related to Actor builds. In such cases, the resource object will look like the response of the [Get Actor build](/api/v2#/reference/actor-builds/build-object/get-build) API endpoint.
167-
168-
## Source IP addresses
169-
170-
Webhooks are dispatched from servers with static IP addresses. If your webhook destination is protected behind a firewall, you can whitelist these IP addresses to allow Apify webhooks to be delivered:
171-
172-
- `3.215.64.207`
173-
- `13.216.80.7`
174-
- `13.216.180.86`
175-
- `34.224.107.31`
176-
- `34.236.208.85`
177-
- `44.198.219.104`
178-
- `44.207.71.44`
179-
- `44.207.141.205`
180-
- `52.4.20.206`
181-
- `52.203.255.236`

0 commit comments

Comments
 (0)