Delete specific webhooks
client.webhooks.delete(WebhookDeleteParams { webhooks, type } body, RequestOptionsoptions?): WebhookDeleteResponse { status, message }
/api/v2/account/webhooks
Delete specific webhooks from your account.
Parameters
Returns
Delete specific webhooks
import SendblueAPI from 'sendblue';
const client = new SendblueAPI({
apiKey: 'My API Key',
apiSecret: 'My API Secret',
});
const webhook = await client.webhooks.delete({ webhooks: ['https://example.com'] });
console.log(webhook.status);
{
"status": "OK",
"message": "message"
}Returns Examples
{
"status": "OK",
"message": "message"
}