- Tracking per-query savings
- Auditing rewritten queries
- Updating internal cost dashboards
Trigger
The webhook fires after:- A query is received via
/query
- It is rewritten (if possible)
- It has finished executing
Payload
Fields
Field | Type | Description |
---|---|---|
query | string | The original query submitted |
trace_id | string | The unique identifier for this query run |
savings | number | Estimated USD savings from optimization |
duration_ms | number | Time taken to execute the query |
Setup
To enable this webhook:- Go to the Team Settings in the Isofold Dashboard
- Add your webhook endpoint URL
- Optionally include an HMAC signing secret
Security
- Webhooks include an
X-Isofold-Signature
header - You can verify integrity with your shared secret using HMAC-SHA256
Want to listen for failed or skipped queries too? Contact support@isofold.com.
Body
application/json
Response
200
Webhook accepted