Comment on page
Delete Webhook
Programatically delete a Helius webhook.
delete
https://api.helius.xyz
/v0/webhooks/{webhookID}
Deletes a webhook.
Parameters
Path
webhookID*
string
The webhook ID.
Query
api-key*
string
The api key.
Responses
200: OK
No content.
400: Bad Request
Invalid request.
401: Unauthorized
Unauthorized request.
403: Forbidden
Request was forbidden.
404: Not Found
The specified resource was not found.
429: Too Many Requests
Exceeded rate limit.
500: Internal Server Error
The server encountered an unexpected condition that prevented it from fulfilling the request.
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();
Last modified 4mo ago