Webhooks
Event
Webhook triggered when an event occurs
WEBHOOK
Secure your endpoint
Verify that all webhook requests are generated by Kaizen by checking the signature in each request’sX-Webhooks-Signature header.
Verify the signature
Each webhook request includes these headers:X-Webhooks-Signature: HMAC signature (includes version prefix)X-Webhooks-Timestamp: Unix timestamp in secondsX-Webhooks-Id: Unique identifier for this webhook delivery
- Extract the signature from
X-Webhooks-Signature(remove the version prefix) - Get the timestamp from
X-Webhooks-Timestamp - Get the webhook ID from
X-Webhooks-Id - Read the raw request body as a string (before JSON parsing)
- Construct the signed payload:
{webhookId}.{timestamp}.{raw_body} - Compute HMAC-SHA256 of the signed payload using your decoded secret
- Compare the computed signature with the received signature using constant-time comparison
Code Examples
Body
application/json
- Execution: Completed
- Execution: Downloads Complete
- Execution: Error Analysis Complete
- Agent Execution: Complete
Payload sent when an execution has finished running
Response
200
Webhook received successfully