mock or proxy. This is what determines whether a matched request gets an immediate fixture response or is forwarded to the real upstream API.
The key insight: your agent’s URL never changes. Whether a rule is mocking or proxying, requests go to the same <subdomain>.godizzy.dev address. You switch behavior in the dashboard — no code changes in your agent.
How each action works
- Mock
- Proxy
When a rule’s action is Your agent receives a 429 with a realistic delay — no real API call made, no rate limit consumed.When to use mock:
mock, GoDizzy returns a configured fixture response immediately — no request is made to your target endpoint.You configure the fixture with:- Status code — e.g.
200,429,500 - Response headers — any custom headers to include
- Body — a JSON fixture, error payload, or any response body you want
- Latency range — a min and max delay in milliseconds; GoDizzy picks a random value in the range on each request
POST https://payments-sandbox.godizzy.dev/v1/charges. The matching rule is set to mock with this configuration:- Development: build and test your agent against deterministic fixtures
- Simulating failures: 429s, 500s, timeouts, schema drift, partial results
- Evaluations: same fixture every run, reproducible in CI
- Demos: no risk of hitting live APIs or exposing real data
Switching between mock and proxy
The toggle in the dashboard switches a rule’s action betweenmock and proxy. The change takes effect immediately — the next request that matches the rule will use the new action.
Toggle the action
Click the mock/proxy toggle. The rule switches from
mock to proxy (or vice versa) instantly.Side-by-side comparison
| Mock | Proxy | |
|---|---|---|
| Makes upstream request | No | Yes |
| Response source | Your configured fixture | The real target endpoint |
| Latency control | Yes — configurable min/max range | No (real network latency applies) |
| Response shaping | Fully configured in dashboard | Optional — pass-through or reshape |
| Best for | Dev, testing, failure simulation | Staging, production, live traffic |
| Deterministic | Yes — same fixture every time | No — upstream can change |
