Getting Started
Try It & Get Code
You don't need to leave the browser, or even write any code, to fire a request at your mock — and once it works, you don't need to hand-translate it into your app's language either.
Try It
Every mock page has a Try It panel: pick a method, enter a path, add custom headers if you need them (useful for testing a header-based match condition or a token-protected mock), add a body if the method needs one, and send. The response — status, timing, and body — shows up right there, and the request appears in the Request Inspector like any other call.
Press Ctrl+Enter (Cmd+Enter on Mac) to send without reaching for the mouse.
Get Code
Click Get code next to Try It and MockBase turns the current method, path, and body into a ready-to-paste snippet in whichever language you're actually working in:
cURL, JavaScript (fetch), Node.js (axios), Python (requests), Go (net/http), PHP (curl), Ruby (net/http), Java (HttpClient), C# (HttpClient), and PowerShell (Invoke-RestMethod).
The snippet covers method, path, and body — any custom headers you added in Try It aren't included, so add those by hand in the generated code if your real client needs them too.
Wiring the same call into your actual app is then a copy-paste, not a retype. The snippet always uses your mock's full public URL, so it works as-is outside the browser too — unlike the Try It panel itself, which calls the mock directly from the page you're already on.
Need the whole mock, not one request?
Get Code hands you a single call. If you want every route as one document you can hand to Postman, Swagger UI, or a code generator, see Import & Export via OpenAPI instead.