Getting Started
Quickstart
MockBase gives you a live HTTPS endpoint you can point your app at, with configurable JSON responses, status codes, and conditional logic — no backend to write or deploy.
1. Create a mock
From the Dashboard, click New mock and give it a name, or click Create demo mock to start from a working example with a few sample routes already configured.
Every mock gets a unique base URL immediately:
https://mockbase.org/mock/<mock_id>
2. Add a route
A route is one HTTP method + path pair (for example GET /users) with:
- a status code to return
- a response body (JSON), edited directly in the built-in editor — drag its bottom-right corner to make the editing area bigger
- an optional delay, for simulating slow networks
- optional conditional matching on query params, headers, or the request body
Add as many routes as your mock needs. Routes can be reordered by dragging their grip handle in the sidebar, and duplicated from the route editor as a starting point for a variant.
3. Call it
Point your app at the base URL plus your route's path:
GET https://mockbase.org/mock/<mock_id>/users
You can also test it without leaving the browser: use the Try It panel to send a real request straight from the mock's page (press Ctrl/Cmd+Enter to send without touching the mouse), or click Get code for a ready-to-paste cURL, JavaScript, or Python snippet.
4. Watch it happen
Every request to your mock shows up live in the Request Inspector — method, path, headers, body, latency, and the responding client's IP — streamed over a WebSocket as it happens. Nothing to refresh, nothing to poll.
A shortcut for the response body
Don't want to hand-type example values? Click Smart mock above the response body editor and MockBase fills every field with realistic fake data guessed from its name — email becomes a real-looking email address, created_at becomes a valid date, price becomes a decimal, and so on.