Back to All Tools
Verified Secure Tool

How to use API Mock Server & Synthetic Data Generator

  • 1Configure Your Endpoint: Start by clicking Add Route. Select your HTTP method (GET, POST, etc.) and define the route path (e.g., /api/users/:id). Set the desired HTTP status code, authentication requirement, and simulated network latency to mimic real-world network conditions.
  • 2Design the Synthetic Payload: Inject dynamic data.In the Config & Response tab, write your default JSON response. Use dynamic double-brace variables like {{uuid}}, {{name}}, or {{path.id}} to ensure the mock server generates fresh, realistic synthetic data on every single request.
  • 3Set Up Conditional Rules: Simulate edge cases.Switch to the Rules tab to build logic without writing code. Create IF/THEN scenarios—such as forcing a 500 Server Error if the query parameter ?error=true is present, or returning 404 Not Found if a specific path parameter is used.
  • 4Test in the Live Sandbox: Verify your routing logic.Go to the Live Sandbox tab to act as the client. Enter your configured URL, add any necessary headers or JSON body payloads, and click Send Request. The response pipeline will show you the exact status code, simulated latency, and dynamically generated JSON.
  • 5Export to Your Codebase: Once the endpoint behaves perfectly, open the Code Export tab. Instantly copy ready-to-use code snippets for Express.js, MSW (Mock Service Worker), JS Fetch, or cURL to drop directly into your frontend development workflow.