All features

Feature

Advanced Mocking

Answer a call yourself: replace the status, headers, body or timing of a response, including streamed ones.

How it works

Stand in for an endpoint your backend has not shipped yet, or reproduce a failure you need to handle. A mock can replace just the status, just the body, some headers or the delay, and leave the rest of the real response alone. Mocks support variables, regex matching, server-sent events and chunked streaming, and can be created from a cURL command or from captured traffic. Switch a mock between scenarios, watch its hit count, serve the workspace's mocks on a port of their own, and check that each one still matches the real API. Cross-origin pages get CORS headers on every mocked answer.

When to use it

  • Build a frontend against an endpoint the backend has not shipped yet.
  • Reproduce a 500 or a slow response on demand.
  • Change one field in a real response and leave the rest untouched.
Read the docs