SafeWeb API

List webhook endpoints

GET
/api/integrations/webhooks

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

curl -X GET "https://connect.safeweb.co/api/integrations/webhooks" \  -H "SW-PARTNER-ID: string" \  -H "SW-API-KEY: string"
{
  "success": true,
  "webhooks": [
    {
      "id": 1,
      "url": "https://partner.example.com/webhooks/safeweb",
      "events": [
        "breach.new",
        "breach.resolved",
        "breach.unresolved"
      ],
      "active": true,
      "created_at": "2026-03-18T12:00:00.000Z"
    },
    {
      "id": 2,
      "url": "https://partner.example.com/webhooks/emails",
      "events": [
        "email.added",
        "email.removed"
      ],
      "active": false,
      "created_at": "2026-03-15T09:30:00.000Z"
    }
  ]
}
{
  "success": false,
  "error": "Failed to verify org API key"
}
{
  "success": false,
  "error": "Partner ID and API key are required in headers"
}
{
  "success": false,
  "error": "Failed to list webhooks"
}