Endpoints
Query Completion Webhook
WEBHOOK
Isofold can send a webhook to your system after each query completes execution.
This is useful for:
- 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
Webhook retries on failure with exponential backoff.
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