Free & open source

Mock anything.
Instantly.

Create mock API servers in seconds. Define your endpoints, get a live URL, and test your frontend without waiting for the backend.

mocka.qzz.io
GET /api/users
200 [{ "id": 1, "name": "Alice" }, ...]

POST /api/users
201 { "id": 3, "created": true }

DELETE /api/users/:id
204 No Content

Everything you need to mock

No complex setup. No backend needed. Just define and go.

{ }

Any Response

JSON, XML, HTML, plain text — return anything with custom status codes and headers.

//

All HTTP Methods

GET, POST, PUT, PATCH, DELETE — mock any endpoint with any method.

ms

Simulated Latency

Add custom delays to simulate real-world network conditions and loading states.

<>

CORS Ready

All mock endpoints come with CORS headers enabled by default. No config needed.

#

Shareable URLs

Each mock project gets a unique URL. Share it with your team instantly.

->

Export Config

Export your mock configuration as JSON. Import it later or share it across projects.

Three steps. That's it.

01

Define your endpoints

Choose HTTP methods, set paths, and write your response bodies. Add headers and delays if needed.

02

Get your mock URL

Your mock server is instantly available at a unique URL. No deployment needed.

03

Start building

Point your frontend to your mock URL and develop without waiting for the real API.

Documentation

Everything you need to use Mocka from the UI or programmatically via API.

1How It Works

Creating & managing mocks

Sign in, go to /create, define your endpoints, and click Create. Manage everything from the dashboard. Authentication is handled automatically.

Using your mocks (public)

Your mock endpoints are publicly accessible — no auth, no API key. Just call the URL from your frontend, Postman, curl, or anywhere.

2Create & Manage Mocks

1

Go to /create and sign in with GitHub or email

2

Name your project, set a slug, and add your endpoints

3

Click Create Mock Server — your API is live instantly

4

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.

3Use Your Mocks (Public)

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

4Response Templating

TemplateOutput
{{id}}42
{{params.id}}42
{{timestamp}}2025-03-29T10:30:00Z
{{randomId}}a1b2c3d4
{{randomInt}}7342
{{now}}1711705800000

5Path Parameters

Use :param in your paths. They are extracted and available in templates.

/users/:id/users/42{ "id": "42" }
/posts/:postId/comments/:commentId/posts/5/comments/12{ "postId": "5", "commentId": "12" }

6Endpoint Schema

FieldType
idstring
methodstring
pathstring
statusCodenumber
responseBodystring
contentTypestring
headersobject
delaynumber

7Import & Export

Export

From the dashboard, click Export on any project to download a .json file.

Import

On the create page, click Import JSON to load a config file. Or import via API:

curl -X POST /api/mocks -d @mock.json