JavaScript
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.thanks.io/api/v2/webhooks/{webhookId}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "status": "success" }
Delete a webhook destination. Webhooks are available on paid subscriptions only.
Bearer token authentication using your thanks.io API key
ID of webhook
11
OK
"success"
Was this page helpful?