Lightweight webhook dispatcher that posts JSON payloads to configured URLs.

Constructors

Methods

Constructors

Methods

  • Trigger a webhook event and POST the payload to all configured URLs.

    Parameters

    • eventName: string

      The webhook event identifier.

    • payload: unknown

      Payload to serialise as JSON.

    • headers: HeadersRecord = {}

      Additional HTTP headers for the request.

    Returns Promise<WebHookDispatchResult>