---
title: "Mock an api response on a real device"
description: "Answer one of your app's API calls with a canned response on a real phone: a Mock block rule, a one-shot cap, and a script when the body must be computed."
canonical: "https://busymate.dev/guides/mock-an-api-response-on-a-real-device"
updated: "2026-10-29T16:19:25.043Z"
language: "en"
---

# Mock an api response on a real device

Source: https://busymate.dev/guides/mock-an-api-response-on-a-real-device

Answer one of your app's API calls with a canned response on a real phone: a Mock block rule, a one-shot cap, and a script when the body must be computed.

## Related pages

- [Guides](https://busymate.dev/guides)
- [Capture https on iphone without a mac](https://busymate.dev/guides/capture-https-on-iphone-without-a-mac)
- [Capture android app traffic without a wifi proxy](https://busymate.dev/guides/capture-android-app-traffic-without-a-wifi-proxy)
- [What certificate pinning still blocks](https://busymate.dev/guides/what-certificate-pinning-still-blocks)
- [Export a har from your phone](https://busymate.dev/guides/export-a-har-from-your-phone)
- [Set a breakpoint on a mobile request](https://busymate.dev/guides/set-a-breakpoint-on-a-mobile-request)

## More

- [llms.txt](https://busymate.dev/llms.txt) — every page on this site, one line each.
- [agents.json](https://busymate.dev/agents.json) — the machine-readable capability card.
