SafeWeb API

Delete a webhook endpoint

DELETE
/api/integrations/webhooks/{id}

Path Parameters

id*integer

Webhook endpoint ID

Formatint64

Header Parameters

SW-PARTNER-ID*string

Partner organization identifier

SW-API-KEY*string

API authentication key

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://connect.safeweb.co/api/integrations/webhooks/0" \  -H "SW-PARTNER-ID: string" \  -H "SW-API-KEY: string"
{
  "success": true
}
{
  "success": false,
  "error": "Invalid webhook ID"
}
{
  "success": false,
  "error": "Failed to verify org API key"
}
{
  "success": false,
  "error": "Webhook not found"
}
{
  "success": false,
  "error": "Partner ID and API key are required in headers"
}
{
  "success": false,
  "error": "Failed to delete webhook"
}