Create mock API servers in seconds. Define your endpoints, get a live URL, and test your frontend without waiting for the backend.
GET /api/users
→ 200 [{ "id": 1, "name": "Alice" }, ...]
POST /api/users
→ 201 { "id": 3, "created": true }
DELETE /api/users/:id
→ 204 No ContentNo complex setup. No backend needed. Just define and go.
JSON, XML, HTML, plain text — return anything with custom status codes and headers.
GET, POST, PUT, PATCH, DELETE — mock any endpoint with any method.
Add custom delays to simulate real-world network conditions and loading states.
All mock endpoints come with CORS headers enabled by default. No config needed.
Each mock project gets a unique URL. Share it with your team instantly.
Export your mock configuration as JSON. Import it later or share it across projects.
Choose HTTP methods, set paths, and write your response bodies. Add headers and delays if needed.
Your mock server is instantly available at a unique URL. No deployment needed.
Point your frontend to your mock URL and develop without waiting for the real API.
Everything you need to use Mocka from the UI or programmatically via API.
Sign in, go to /create, define your endpoints, and click Create. Manage everything from the dashboard. Authentication is handled automatically.
Your mock endpoints are publicly accessible — no auth, no API key. Just call the URL from your frontend, Postman, curl, or anywhere.
Go to /create and sign in with GitHub or email
Name your project, set a slug, and add your endpoints
Click Create Mock Server — your API is live instantly
Edit, delete, export or add endpoints from the dashboard
You can also import a .json config file on the create page to set up a project in one click.
Mock endpoints are served at /api/mock/{userSlug}/{slug}/{path} — no auth required.
# List users curl https://mocka.qzz.io/api/mock/2mojs3/my-api/users # Get user by ID (path param :id → 42) curl https://mocka.qzz.io/api/mock/2mojs3/my-api/users/42 # Create user curl -X POST https://mocka.qzz.io/api/mock/2mojs3/my-api/users # Delete user curl -X DELETE https://mocka.qzz.io/api/mock/2mojs3/my-api/users/42
Visit the base URL without a path to see the Swagger page listing all endpoints:/api/mock/2mojs3/my-api
| Template | Output |
|---|---|
| {{id}} | 42 |
| {{params.id}} | 42 |
| {{timestamp}} | 2025-03-29T10:30:00Z |
| {{randomId}} | a1b2c3d4 |
| {{randomInt}} | 7342 |
| {{now}} | 1711705800000 |
Use :param in your paths. They are extracted and available in templates.
| Field | Type |
|---|---|
| id | string |
| method | string |
| path | string |
| statusCode | number |
| responseBody | string |
| contentType | string |
| headers | object |
| delay | number |
From the dashboard, click Export on any project to download a .json file.
On the create page, click Import JSON to load a config file. Or import via API:
curl -X POST /api/mocks -d @mock.json