createStandardWebhook
Purpose and behavior
Section titled “Purpose and behavior”Create a trigger source for senders that follow the Standard Webhooks scheme. It verifies every v1 signature of webhook-signature over id.timestamp.body with whsec_ secrets within a timestamp window, uses webhook-id as delivery and the payload type field, or webhook, as kind. It reports no actor.
Complete example and detailed rules.
Parameters and properties
Section titled “Parameters and properties”optionsRequiredStandardWebhookOptionsSigning secret, timestamp window and source name.options.secretRequiredTriggerSecretwhsec_ secret verifying webhook-signature, or a callback returning every currently accepted secret (old and new during a rotation). An empty string throws at creation; a callback that fails or returns nothing, or a secret without the whsec_ prefix, denies requests.options.toleranceMsOptionalnumber | undefinedAccepted clock difference for the request timestamp, in milliseconds; defaults to 300000 (5 minutes). A value that is not a positive integer throws at creation.options.sourceOptionalstring | undefinedName reported in TriggerEvent.source; defaults to standard.