OptionalallowWhether unknown event types should pass through without payload parsing.
OptionalhandleApp-owned fulfillment handler. The webhook is verified before this runs.
Omit to acknowledge verified events with { ok: true }.
OptionalheadersAdditional response headers.
OptionalpipelineIdentity and metadata for the hooks pipeline when the server exposes
rawRoute(...). metadata feeds metadata-driven hooks such as rate
limiting and idempotency; name and path identify the route to
hooks, instrumentation, and devtools.
Beignet server that owns app context and ports.
Any object exposing createRequestContext works: a NextServer, a core
ServerInstance, or a test fake driven from a standard test runner.
OptionalverifyOptional context-aware verifier. Use this when verification depends on app
ports, such as ctx.ports.payments.verifyWebhook(...).
Inbound webhook definition.
Options for creating a generic inbound webhook route.