Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ A challenge reply proves that the endpoint answered a handshake. It is not reque

## Delivery and acknowledgement

**Documented behaviour.** The webhook's `respond` sets the HTTP answer to the provider (`type`, `status`, `headers`, `body`). Providers usually retry unless they receive a 2xx. `iterate` splits a payload into several bundles, `output` shapes each one, and an instant trigger yields exactly one bundle per webhook delivery. Instant-trigger parameters are static only, communication is optional, single request, with no iterate or pagination in the trigger's own communication.
**Documented behaviour.** The webhook's `respond` sets the HTTP answer to the provider (`type`, `status`, `headers`, `body`). Providers usually retry unless they receive a 2xx. `iterate` splits a payload into several bundles, `output` shapes each one, and an instant trigger yields exactly one bundle per webhook delivery. Instant-trigger parameters are static only and communication is optional. The documentation page lists the trigger's own communication as a single request with no iterate or pagination. Pagination is indeed not applied there; `response.iterate` and a `communication` array have been observed to run in production, so their presence alone is not a defect (see Exceptions and applicability).

**Inferred implementation pattern.** Delivery acknowledgement (`CK-WEBHOOK-DELIVERY`) and workspace/user intent are separate things: the 2xx tells the *provider* it can stop retrying, while `uid` or a webhook per connection decides *which Make user* gets the event. The receiver's `output` keys should match the trigger interface, so the bundle the user sees is the bundle the interface declares.

Expand All @@ -54,7 +54,7 @@ A challenge reply proves that the endpoint answered a handshake. It is not reque

## Authoring checklist in prose

Pick the delivery kind first (shared, attached dedicated, manual dedicated). For attached hooks, write the provider's registration and removal protocol, persist everything detach needs, and keep the user-facing output and interface consistent with the event that survives processing. Use webhook conditions to filter events and `verification` only for challenges. An instant trigger's own communication is limited to one optional enrichment request without iterate or pagination; webhook-level `iterate` can split batched events instead. A responder module has a different contract (it answers the caller) and no ordinary output interface. Shared webhooks need publication in addition to configuration, so a complete definition is not evidence that account routing or live delivery has been tested. Retries, duplicate delivery and lifecycle updates need their own tests against the provider. Manual dedicated and shared hooks legitimately have no attach/detach calls.
Pick the delivery kind first (shared, attached dedicated, manual dedicated). For attached hooks, write the provider's registration and removal protocol, persist everything detach needs, and keep the user-facing output and interface consistent with the event that survives processing. Use webhook conditions to filter events and `verification` only for challenges. An instant trigger's own communication is an optional read-back of the delivered record and never paginates; webhook-level `iterate` splits batched events. A trigger that already uses `response.iterate` or several requests in its own communication is not rewritten for that reason: check only whether it depends on more than the first page. A responder module has a different contract (it answers the caller) and no ordinary output interface. Shared webhooks need publication in addition to configuration, so a complete definition is not evidence that account routing or live delivery has been tested. Retries, duplicate delivery and lifecycle updates need their own tests against the provider. Manual dedicated and shared hooks legitimately have no attach/detach calls.

## Rationale

Expand All @@ -76,6 +76,7 @@ The platform hides most of the plumbing, so each part can silently fail: an atta
* Shared webhooks normally do not need attach/detach.
* `verification` is needed only if the provider sends a handshake; if it does not, omit the block (the fixture models a provider that does).
* Whether a given provider retries, signs or rotates secrets is provider-side and outside this tree.
* `response.iterate` or a `communication` array in an instant trigger's own communication is not a defect on its own, although the documentation page lists `iterate` as unavailable: both have been observed to run in production. Pagination is not applied there, so a read-back that needs a second page can miss the delivered record; report that case with its evidence class instead of rewriting the trigger.
* **Approval impact** ([Approval gating](../../../references/review-and-qa.md#2a-approval-gating)). Missing signature or verification handling (class (b), fixed, never rejected) matters only when the provider documents a verification protocol; implement the documented verification when the documentation determines it (approve with adjustments), otherwise report an unverified advisory finding naming the missing fact; challenge handling, an authentication requirement and ingress proof are separate claims. Missing setup instructions for a manually registered webhook are advisory.

## Evidence and limits
Expand Down
22 changes: 17 additions & 5 deletions skills/make-custom-apps/references/webhooks-and-polling.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ inside an HTTP request's `response` object simply because an action uses that sh
- Use `body`, `headers`, `query`, and `method` for the incoming webhook request.
- Separate challenge verification from ordinary events with `verification.condition`.
Set the exact verification response status, encoding, headers, and body.
- Use `condition` for documented event filtering. For batched event payloads, use
webhook iteration and output; do not place that iteration in instant-trigger communication.
- Use `condition` for documented event filtering. For batched event payloads, split the
delivery with webhook-level `iterate` and `output`; the instant trigger's own `iterate`
works on the response of its read-back request, not on the delivered payload.
- Validate the provider's event-authentication mechanism separately from the challenge.
A successful challenge is not proof that later deliveries are authentic.
- Verify signature algorithms, timestamp/replay rules, and raw-byte requirements before
Expand All @@ -68,9 +69,20 @@ inside an HTTP request's `response` object simply because an action uses that sh
- Treat duplicate delivery as possible. Preserve a useful event ID and document the
deduplication responsibility; do not promise exactly-once processing from HTTP delivery.

An instant trigger can optionally make **one** enrichment request for each webhook
item, using `payload.*`. Its communication does not support iteration or pagination.
After that request, `body` is the enrichment response, not the original webhook body.
An instant trigger can optionally read the record back for each webhook item, using
`payload.*`. After that request, `body` is the response, not the original webhook body.
Its communication does not paginate: every request is sent once, so only the first page of
a list endpoint is read.

The instant-trigger documentation page also says that `iterate` is not available. In
practice, `response.iterate` (with its `condition`) and a `communication` array of several
requests do run in an instant trigger; this has been observed in production runs. In a
review, do not rewrite a trigger only because it uses `iterate` or more than one request:
that is not a defect and the rewrite changes working behaviour. What to check instead is
whether the trigger depends on a second page (for example a list filtered down to the
delivered ID, where the record may not be on the first page), and report that with its
evidence class. When building a new trigger, prefer a single read-back request by ID where
the provider offers one.

Sources: [Webhook communication](https://developers.make.com/custom-apps-documentation/app-components/webhooks.md),
[Instant-trigger constraints](https://developers.make.com/custom-apps-documentation/app-components/modules/instant-trigger.md).
Expand Down
Loading