Type Parameters
E
E extends string
Parameters
name
E
payload
WebhookPayload<E>
options
SendEventOptions
Returns
Promise<void>
Remarks
The name and the payload are narrowed by theTapWebhookMap augmentation
tappify extension types writes. It builds the envelope, signs the serialised
body and posts it to the install’s hook path under baseUrl, or to endpoint
when you give one. A response Tappify did not accept rejects with a
TapServerError whose code is always TAP_WEBHOOK_REJECTED, carrying the HTTP
status, and with Tappify’s own code in the message text rather than in code;
the two usual causes are the wrong signing
secret and an event the manifest does not declare. Pass your own dedupeKey to
make a retry idempotent, because the default is a fresh UUID.