API referenceWebhooks
JavaScript SDK: swarmhit.webhooks.test(webhookId)
Fires a one-off webhook.test delivery and returns the result immediately. Does not retry or affect the endpoint's health counters.
Authorization
bearerAuth AuthorizationBearer <token>
An API key created on the Access tokens page.
In: header
Path Parameters
id*string
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/webhooks/string/test"{ "data": { "ok": true, "status": 0, "error": "string" }}Replay a delivery POST
**JavaScript SDK:** [`swarmhit.webhooks.deliveries.resend(deliveryId)`](/smart-api/sdk/methods#webhooks.deliveries) Re-queues a past delivery to its endpoint's current URL as a fresh delivery (a new `id`, so a consumer that dedupes will re-process it). The endpoint must still exist and be enabled.
Update a webhook endpoint PATCH
**JavaScript SDK:** [`swarmhit.webhooks.update(webhookId, params)`](/smart-api/sdk/methods#webhooks)