Advanced Mock API Workspace
Everything here runs locally in your browser (localStorage) — nothing you configure is sent to a server. Design an endpoint, simulate real-world conditions, and export it as an OpenAPI file or ready-to-paste client code. New to mocking APIs? Start with the basics in Docs first.
What you can do here
Each feature below is optional and off by default — turn on only what your test needs.
Define paths like /api/users/:id and add query params to test dynamic
URLs before a backend exists.
Return any status (200–599) or a preset to verify your app's error handling and messaging.
Add delays, random failures, timeouts or offline responses to test spinners and retry logic.
Use templates like {{uuid}}, {{now}} and
{{query.name}} for realistic ids and timestamps.
Seed records, generate from a JSON Schema, or import your own collection — stored in your browser.
Import a Swagger file to scaffold endpoints, or export your project as OpenAPI to share.
Match on the request — e.g. header.x-plan=free ⇒ 402 — to simulate empty,
paywalled or cancelled states.
Design, run, and export local mocks
Create endpoints, simulate auth and failures, keep request history, seed data, and import/export OpenAPI without sending the project anywhere.
Authentication and conditions
Templates support {{now}}, {{uuid}},
{{query.name}}, {{header.x-role}},
{{body.name}}, and {{env.API_URL}}.
Generate fake data from JSON Schema
Generated docs, clients, and assertions
Run a local request to see response timing, headers, body, and assertion results.