Mock Server
The Mock Server lets you simulate API responses locally — no real backend required. Useful for frontend development, testing, and demos.
Opening the Mock Server Panel
Click the Mock Server icon in the sidebar, or open a saved mock server from a collection tab.
Creating a Mock Server
- Click + New Mock Server
- Give it a name
- Set a port (or leave it to auto-assign a free port)
- Click Start
The mock server runs on http://localhost:<port>.
Adding Routes
Each route defines how the mock server responds to a specific request:
| Field | Description |
|---|---|
| Method | GET, POST, PUT, PATCH, DELETE |
| Path | URL path (e.g., /users, /users/:id) |
| Status Code | Response status (e.g., 200, 201, 404) |
| Response Headers | Headers to include in the response |
| Response Body | The response payload (JSON, text, etc.) |
| Delay (ms) | Optional delay to simulate network latency |
Wildcard Paths
Use :param for path parameters:
/users/:id matches /users/1, /users/abc
/posts/:id/comments matches /posts/42/comments
Request Log
The mock server logs all incoming requests in real time:
- Method and path
- Request headers and body
- Which route matched
- Timestamp
Running Multiple Mock Servers
You can run several mock servers simultaneously on different ports — one per service you want to mock.
Stopping a Mock Server
Click Stop next to the server. The server stops accepting connections but its routes are preserved — you can restart it at any time.