cURL
curl --request DELETE \ --url https://api.shoal.xyz/v1/webhooks/{id} \ --header 'Authorization: Bearer <token>'
Delete a webhook and all its delivery history
id
curl -X DELETE "https://api.shoal.xyz/v1/webhooks/12" \ -H "Authorization: Bearer YOUR_API_KEY"
import os, requests API_KEY = os.environ.get("SHOAL_API_KEY", "YOUR_API_KEY") r = requests.delete( "https://api.shoal.xyz/v1/webhooks/12", headers={"Authorization": f"Bearer {API_KEY}"}, ) print(r.json())
const API_KEY = process.env.SHOAL_API_KEY || 'YOUR_API_KEY'; const res = await fetch('https://api.shoal.xyz/v1/webhooks/12', { method: 'DELETE', headers: { Authorization: `Bearer ${API_KEY}` }, }); console.log(await res.json());
{ "success": true }