500, a slow response, a specific error body), or when you want to give your frontend a stable target while the real service is still in flux.
Prerequisites
Mock Server runs in the cloud, so you need to be signed in and working inside a cloud project (a private or team project synced to your account). It is not available for local projects.
Find the Mock Server
Open the Mocks section in the left sidebar of the API Client. This is where every mock server in the active project is listed. A colored dot next to each name shows whether it is currently serving: green and pulsing means active, grey means stopped.
Quickstart: your first mock in 60 seconds
The fastest way to understand a mock server is to serve one response and call it. This walkthrough creates aGET /hello endpoint that returns a small JSON payload.
1
Create the mock
In the Mocks section, click the + button (or the Create mock button in the empty state), enter a name, and click Create. The mock opens in a new editor tab, already scaffolded with one route and one response so you have a working starting point.

2
Define the route and response
Select the scaffolded route and set its Method to On the Headers tab, add
GET and its Path to /hello. In the response pane, on the Body tab set the status to 200 and enter this body:Content-Type with the value application/json so the caller receives it as JSON. Inline bodies do not get a content type automatically.3
Save and start serving
Click Save in the URL strip to persist your edits, then click Start to make the mock live. The status dot in the sidebar turns green.
4
Copy the URL and call it
Copy the endpoint URL for the route, then call it from any HTTP client:You get back exactly the status and body you configured:
The mock URL
Every mock server has its own hosted URL of the formhttps://<id>.mocks.requestly.cloud, shown in the strip at the top of the editor. Each route lives under that base URL at the path you give it, so a route with path /users is served at https://<id>.mocks.requestly.cloud/users.
To copy a full endpoint URL, hover a route in the routes list and click the copy icon, or use the copy button next to the path field in the response pane. Paste it into your app or another request to call the mock. When you run against a local development build, the base URL uses a .localhost host and an explicit port instead (for example http://<id>.localhost:8091); the cloud URL above is what you use in production.
The editor at a glance
The mock editor is a two-pane tab. The left pane lists the routes, and the right pane configures the responses for whichever route is selected. Each response has its own Body, Headers, and Rules sub-tabs.
Edits to routes, responses, and rules are staged until you click Save in the URL strip. Navigating away from a mock with unsaved changes prompts you to save or discard.
Routes
Match requests by method and path, capture path parameters, use wildcards, and control which route wins when two overlap.
Responses & selection modes
Configure the body, status, latency, and headers, insert dynamic values, and choose how the mock picks a response.
Matching rules
Serve a different response depending on the incoming request’s query, header, body, cookie, or URL parameter.




