Programatically delete a Helius webhook.
Last updated 2 months ago
Was this helpful?
const deleteWebhook = async () => { try { const response = await fetch( "https://api.helius.xyz/v0/webhooks/<webhook-id>?api-key=<PASTE YOUR API KEY HERE>", { method: 'DELETE', headers: { 'Content-Type': 'application/json', }, } ); const data = await response.json(); console.log({ data }); } catch (e) { console.error("error", e); } }; deleteWebhook();
/v0/webhooks/{webhookID}
The webhook ID.
The api key.
curl -L \ --request DELETE \ --url 'https://api.helius.xyz/v0/webhooks/{webhookID}?api-key=text' \ --header 'Authorization: Basic username:password'
No body