import Nuntly from '@nuntly/sdk';const client = new Nuntly({ apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted});const webhook = await client.webhooks.delete('wh_01ka8k8s80gvx9604cn9am5st4');console.log(webhook.id);
{ "data": { "id": "<string>" }}
Webhooks
Delete Webhook
Remove a webhook endpoint. No further events will be delivered to this URL.
DELETE
/
webhooks
/
{id}
JavaScript
import Nuntly from '@nuntly/sdk';const client = new Nuntly({ apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted});const webhook = await client.webhooks.delete('wh_01ka8k8s80gvx9604cn9am5st4');console.log(webhook.id);