growsurf_webhook_normalize
Validate and normalize GrowSurf webhook payloads, creating idempotency keys to prevent duplicate event processing.
Instructions
Validate/normalize a GrowSurf webhook payload and generate a best-effort idempotency key for dedupe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payload | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | Whether the payload is a valid GrowSurf webhook envelope. | |
| error | No | Why the payload failed validation. Present only when `ok` is `false`. | |
| envelope | No | The normalized webhook envelope. Present only when `ok` is `true`. | |
| idempotencyKey | No | A deterministic key for ignoring duplicate deliveries. Present only when `ok` is `true`. |