Register a webhook endpoint
- UI
- CLI
- API
1
Open webhook settings
Go to Settings → Webhooks and click Add webhook.
2
Enter the endpoint URL
Enter the HTTPS URL of the endpoint that will receive events.
3
Select event types
Choose the event types you want to subscribe to (see the full event list below).
4
Save
Click Save. InfraAudit generates a signing secret for this webhook — copy it now. It’s shown only once.
Event payload format
All webhook deliveries share a common envelope structure:data field contains fields specific to the event type. See the webhook events reference for the complete schema of each event.
Verify signatures
Every delivery includes anX-InfraAudit-Signature header containing an HMAC-SHA256 signature of the raw request body, signed with your webhook’s secret. Always verify this signature before processing a delivery.
Retries
If your endpoint returns a non-2xx HTTP status code or the request times out (10-second timeout), InfraAudit retries the delivery with exponential backoff — up to 3 attempts over 30 minutes. After all retries are exhausted, the delivery is marked as failed. Your endpoint should respond with a 2xx status as quickly as possible. If processing takes time, accept the delivery immediately and process it asynchronously.Supported event types
Test a webhook
After registering, send a testping event to verify your endpoint receives deliveries: