import { NorthstakeApi } from '@northstake/northstakeapi'
const api = new NorthstakeApi('apiKey', 'privateKey')

const webhookId= 'a1a1a1_a1a1a1_a1a1_a1a1a1'

const deletion = await api.validatorMarketplaceWebhooks.deleteWebhook('webhook-id')
  
if (deletion.status === 204) {
    console.log('Webhook deleted')
  }
  else {
    console.log('Webhook deletion failed')
  }

📘

For more inspiration, check out these recipes involving validator marketplace webhooks

Language
Click Try It! to start a request and see the response here!