POST https://api.luaprotect.dev/v1/webhooks
Register a new outbound webhook subscription.
Body Parameters
url(string, required) — HTTPS endpoint URL for receiving POST webhooks.events(array, required) — Event subscriptions (e.g. ["ban.issued", "key.created"])
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"
}
}