How it works
When an event fires in InfraAudit, the platform:- Constructs a JSON payload with a common envelope and event-specific
datafields. - Signs the payload using HMAC-SHA256 with your webhook’s secret key.
- POSTs the payload to your registered endpoint URL.
- Retries on failure using exponential backoff — up to 3 attempts over 2.5 hours.
Register a webhook
Create a webhook endpoint via the API to start receiving events:secret used to verify payload signatures. Store it securely — it is returned only once.
You can also register webhooks in the web UI under Settings → Webhooks.
Payload envelope
Every webhook delivery uses the same outer envelope:The event type, for example
drift.detected or cost.anomaly.ISO 8601 timestamp of when the event was generated.
The ID of the webhook subscription that triggered this delivery.
A unique ID for this delivery attempt. Use this to deduplicate events on your side, since InfraAudit delivers with at-least-once semantics.
Event-specific payload. Contents vary by event type.
Related pages
- Event types — all events you can subscribe to with example payloads
- Signature verification — how to validate that a delivery came from InfraAudit
- Retries and delivery — retry schedule and how to handle delivery failures
- Webhook API reference — API endpoints for managing webhook subscriptions