Webhooks Developer Preview
[!NOTE] Outbound Webhooks are currently in Developer Preview. The schemas and endpoints described below are subject to change as we finalize the implementation.Outbound Webhooks allow you to receive real-time event data from SpendNexus in your own custom applications or internal dashboards.
Event Types
When implemented, SpendNexus will support the following event types:subscription.created: Triggered when a new tool is added.subscription.renewing: Triggered based on your alert rules (e.g., 7 days before renewal).subscription.cost_changed: Triggered when a cost change is detected.alert.triggered: A generic event for any alert rule firing.
Payload Schema (Draft)
Webhooks are sent viaPOST requests with a JSON body.
Security & Verification
Each webhook request will include aX-SpendNexus-Signature header. You should use this signature to verify that the request originated from SpendNexus.
- Retrieve the Webhook Secret from your developer settings.
- Concatenate the request timestamp and the JSON payload.
- Compute an HMAC-SHA256 hash using your secret.
- Compare the result with the signature header.
