How mock webhooks work
Each mock rule has an ordered list of webhook callbacks. After GoDizzy returns the mock response to the caller:- GoDizzy processes the webhook list from top to bottom.
- For each webhook, it waits the configured delay (in milliseconds), then sends the HTTP request.
- Each webhook is delivered independently. A failed webhook does not block subsequent ones.
Configure webhooks on a mock rule
1
Open the mock rule editor
Navigate to your route collection, open the routing rule you want to attach webhooks to, and ensure the action is set to Mock.
2
Add a webhook
In the Webhooks section of the rule editor, click Add Webhook. Each webhook has the following fields:
3
Set the delay
The delay is per-webhook, not global. Use it to simulate the realistic gap between your mock response and the callback a real API would send. For a payment processor that typically calls back within 2–5 seconds, set the delay to somewhere in that range.
4
Add more webhooks (optional)
Click Add Webhook again to add a second callback. GoDizzy fires them in the order listed. You can reorder them by dragging.
5
Save the rule
Click Save. Webhooks take effect immediately for all subsequent requests that match this rule.
URL allowlisting
GoDizzy only sends outbound webhook requests to URLs on your organization’s allowlist. This prevents accidental callbacks to external production systems and limits the blast radius of a misconfigured rule. If you attempt to save a webhook URL that is not allowlisted, GoDizzy will reject the configuration with a validation error.Template variables in webhooks
Webhook headers and body support the same template variables as mock response bodies. You can also reference top-level fields from the incoming request body using{{$reqBody['key']}}.
Example: simulate a payment webhook
Your agent callsPOST /payments to initiate a payment. In production, the payment processor calls your webhook at https://your-service.example.com/webhooks/payments a few seconds later with a payment.completed event.
Mock rule configuration:
- Method:
POST - Path:
/payments - Status:
200 - Body:
- URL:
https://your-service.example.com/webhooks/payments - Method:
POST - Delay:
3000ms (simulates the processor’s 3-second processing time) - Headers:
- Body:
200 processing response immediately. Three seconds later, your webhook handler receives the payment.completed event — with fields echoed from the original request — exactly as it would from the real payment processor.
Example: simulate a multi-step job pipeline
Some APIs fire multiple webhooks as a job moves through stages. Use an ordered list of webhooks with increasing delays:
GoDizzy fires each one after its configured delay, giving your handler a realistic sequence of state transitions to process.
