Point Jitterbox at the real API your app calls. Requests that no mock matches go through to it. Record what it answers, then turn the recordings into mocks in one go. Failure scenarios still apply, so you can also inject latency and errors into real traffic.
Needs an account (guest projects can't forward to real APIs).
Connect a real API
In a project's Endpoints, open Real API at the bottom of the list (or press ⌘K and pick Record from a real
API). Enter the real API's base URL, like https://api.example.com/v1, and press Connect.
Requests to your mock URL are forwarded by path:
https://<jitterbox-host>/p/<projectKey>/orders/42?expand=items
→ https://api.example.com/v1/orders/42?expand=items
- Only requests that no mock matches are forwarded. A mock always wins, so you can mock a few endpoints and pass the rest through.
- Your app's method, headers (API keys included) and body are passed along. Jitterbox redacts
Authorization,Cookieand API-key headers in its request log, as always. - Turn Forward requests no mock matches off to stop forwarding while keeping the URL. Unmatched requests then get Jitterbox's usual "no mock matches" reply.
Record, then create mocks
- Press Start recording. For the next 30 minutes, every forwarded request and the real API's answer is saved.
- Use your app, or run its tests, against the mock URL.
- Press Review and create mocks. Similar requests are grouped, with ids in the path turned into parameters:
/orders/8812and/orders/8813becomeGET /orders/{orderId}. Each mock answers with the latest successful response the real API gave for that group, and itsContent-Type. - Pick the ones you want and press Create mocks. If an endpoint already exists, keep yours or replace its response (conditional responses are kept).
From then on those requests are answered by the mocks, without calling the real API. Edit them like any other endpoint, add conditional responses, or point failure scenarios at them.
Faults on real traffic
Failure scenarios that apply to all requests also apply to forwarded ones. Latency and broken replies are added to the real API's answer. An error or timeout fault replaces the answer, and then the real API isn't called at all, the same as when the real service is down.
What's checked and what's not supported yet
- Public HTTPS APIs only. Plain
http://, private networks,localhostand cloud metadata addresses are refused, both when you save the URL and on every request. - Redirects from the real API are passed back to your app, not followed.
- Responses over 2 MB are refused (502). Recordings keep bodies up to 256 KB; larger or binary responses still pass through, but can't become mocks.
- Streaming responses (like an LLM stream) are forwarded once complete, not chunk by chunk.
- Each project keeps up to 500 recordings. Clear them from the review screen to record more.
- If the real API can't be reached, your app gets a
502explaining why, and the request log shows the error.