POST https://api.luaprotect.dev/v1/webhooks

Register a new outbound webhook subscription.

Body Parameters

Example Request

curl -X POST "https://api.luaprotect.dev/v1/webhooks" \
  -H "Authorization: Bearer LUAP-YOUR_API_KEY_HERE" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://your-domain.com/webhook", "events": ["key.created", "ban.issued"]}'

Example Response

{
  "webhook": {
    "id": "wh_10293c",
    "url": "https://your-domain.com/webhook",
    "secret": "whsec_99182736152431"
  }
}