cURL
curl --request DELETE \ --url https://api.example.com/webhooks/{id} \ --header 'Authorization: <authorization>'
write:webhooks
204 No Content
curl -X DELETE https://api.instaview.sk/webhooks/550e8400-e29b-41d4-a716-446655440000 \ -H "Authorization: Bearer sk_your_key_here"
404 - Webhook Not Found
{ "success": false, "error": { "code": "RESOURCE_NOT_FOUND", "message": "Webhook configuration not found" } }
403 - Access Denied
{ "success": false, "error": { "code": "RESOURCE_ACCESS_DENIED", "message": "Access denied to this webhook configuration" } }
isActive: false
// Disable instead of delete await fetch(`https://api.instaview.sk/webhooks/${webhookId}`, { method: 'PATCH', headers: { 'Authorization': `Bearer ${apiKey}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ isActive: false }) });