Once you've written a few rules, the same handful of habits make everything faster. These are the ones worth knowing.
1. Scope every rule to an app#
The App field chooses which applications a rule applies to. It's tempting to skip thinking about it, but a rule that matches api.acme.dev for every app on your machine will also change what your chat client and your terminal see. Pick the one app you're testing. Rules for different apps can share conditions without stepping on each other.
2. Combine conditions to be precise#
All conditions on a rule have to match, so stack them. Method, path and a header together are far safer than the URL alone:
- HTTP Method
isPOST - URL → Path
starts with/v1/payments - Request Header
AuthorizationcontainsBearer
The URL category can look at the whole URL or just one part: scheme, domain, port or path. Domain is api.acme.dev is more accurate than URL contains acme, which also matches acme-cdn.example.com.

The Add Condition menu is where you choose what to look at:

3. Match several values with "is one of"#
Instead of writing three rules, use the is one of operator and give it a list. Any of these work for text and for numbers:
- Domain
is one ofapi.acme.dev,api2.acme.dev - Status Code
is one of500,502,503
There's an opposite, is none of, for "everything except these". Every operator lives in the dropdown in the middle of the condition row:

4. Capture with regex, reuse with templates#
The matches regex operator isn't just for matching. Use a capture group in the condition and read it back in the action:
- Condition: Path
matches regex^/users/(\d+)/avatar$ - Action, in a URL or body:
{{conditions.0.matches.1.value}}
With that, /users/42/avatar can become http://localhost:3000/avatars/42.png. The full list of variables, including {{request.headers.Name}} and {{response.status}}, is in the template variables reference.
You don't need to memorize them. Type {{ in any action field and the editor lists what's available:

And this mock shows the capture-group trick end to end: one rule, and /todos/7 and /todos/42 each get their own number back.
5. React to the response, not just the request#
Conditions aren't limited to what the client sent. Status Code, Response Header and Response Body let a rule decide based on what came back:
- Status Code
greater than or equal to500→ send the request to a fallback server with Proxy to different endpoint. - Response Header
Content-Typecontainsjson→ modify only JSON responses.
Remember the trade-off. A rule that looks at the response can only run after the response arrives, so Modify Request isn't available for it, and Proxy to different endpoint is only available for it.
6. Name rules for the future you#
A rule's label appears next to every request it affects in Flows, and in the Intercepted tab. Rule 1 tells you nothing. Fail checkout (502) or API → localhost tells you exactly what's going on when the app behaves strangely three weeks later.

7. Keep a library, and share it#
Once the library grows, group it: collections give each set of rules a switch of its own.
Every rule has an on/off switch on the Rules page. Build up a small library of rules that you use again and again, such as Hang payments, Slow feed 4s, Mock empty list and Staging → localhost. Leave them off, and enable one when you need it.

A library is worth sharing. Tick the rules you want in the list and click Export (3), or use Export in one rule's three-dot menu, and Mittelware writes a small JSON file. A teammate clicks Import and the rules appear in their list, switched on or off exactly as you left them. Nothing they already have is replaced: a rule whose name is taken arrives as Hang payments (imported). Commit the file next to your code and a new joiner has the whole library on day one. Export and import rules has the details, including what to check after importing (the application, and any file a rule reads).
One caution: the file holds every value you typed, so a rule with a real Authorization token in a header carries that token with it.
Rules are checked in the order shown on the Rules page, from the top, and the top matching rule wins. There is one exception worth knowing. A request can be changed on the way out and again on the way back, so a Modify Request rule and a Modify Response rule can both act on the same request, in either order. Flows then shows 2 rules matched (see when more than one rule acted). When two rules of the same kind could apply, check which comes first.
Bonus: use Flows to write the rule#
The fastest way to get a condition right is to copy it from a real request. Find the request in Flows, look at its method, URL and headers, and build the rule from what you see. A rule that matches by eye usually matches in practice.
Better still, let Mittelware read it for you. In your browser's developer tools, right-click the request in the Network tab and choose Copy as cURL. In the rule form, click Import from cURL next to Add Condition, paste, and tick the parts that should decide whether the rule runs. The method, domain and path are ticked to start with; tick a header or a query parameter if it matters. Import conditions from cURL shows the two screens.