What is a mock API?+
A mock API simulates real API endpoints with fake responses, letting you develop and test your frontend without depending on a live backend. It returns predefined JSON so your UI components can be built and tested independently.
Can I mock API error responses?+
Yes. Set any HTTP status code (400, 401, 403, 404, 500, etc.) and provide a custom JSON error body. This lets you test how your UI handles authentication failures, not-found errors, and server errors.
Do mocked endpoints persist?+
Mocks created here are stored in your browser's local storage and can be shared via URL. They are not server-hosted - recipients need to open the URL in their browser to use the same mock configuration.
What is the difference between a mock and a stub?+
A stub returns a fixed response. A mock can also verify that the right requests were made (e.g. correct headers, body). This tool creates stubs - fixed response definitions without request verification.