Mock REST API
Create configurable REST endpoints for integration testing.
Checking this session…
Import / export configuration
Up to 20 routes, 80 KiB total configuration, and 120 requests per minute. Paths support parameters such as /users/:id. Matching routes are checked in order.
Open an existing mock API
About Mock REST API
Create an expiring API endpoint with custom routes, status codes, response bodies, and delays. Test your client without waiting for an upstream service.
When to use it
Build a frontend against a predictable test response while its upstream API is unavailable.
Route: GET /orders
Status: 200
Body: [{"id":"test-001","status":"created"}]
Delay: 0 msHow to use it
- Set an API name and configure your routes.
- Create the endpoint and copy its base URL.
- Append a route path and send requests from your application.
Limits & privacy
Mock APIs start with a one-hour lifetime; renewal stays within plan limits. Configure up to 20 routes within 80 KiB, delays up to 2 seconds, and 120 requests per minute. Anonymous management requires the private management token; account-owned APIs use workspace access.
Use this tool from the API reference or connect through the SDK, CLI, SSH, or MCP. Hosted calls share your plan allowances.