Skip to main content

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

  1. Click + New Mock Server
  2. Give it a name
  3. Set a port (or leave it to auto-assign a free port)
  4. Click Start

The mock server runs on http://localhost:<port>.

Adding Routes

Each route defines how the mock server responds to a specific request:

FieldDescription
MethodGET, POST, PUT, PATCH, DELETE
PathURL path (e.g., /users, /users/:id)
Status CodeResponse status (e.g., 200, 201, 404)
Response HeadersHeaders to include in the response
Response BodyThe 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.