API referenceWebhooks
JavaScript SDK: swarmhit.webhooks.delete(webhookId)
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 DELETE "https://example.com/webhooks/string"{ "data": { "ok": true }}Create a webhook endpoint POST
**JavaScript SDK:** [`swarmhit.webhooks.create(params)`](/smart-api/sdk/methods#webhooks) Registers an endpoint that receives the subscribed events. The response includes a `secret` — store it to verify delivery signatures.
Get a webhook endpoint GET
**JavaScript SDK:** [`swarmhit.webhooks.get(webhookId)`](/smart-api/sdk/methods#webhooks)