socket.help

Mock REST API

Create configurable REST endpoints for integration testing.

Expires after 1 hour

Checking this session…

Import / export configuration
Request conditions & response templates

Templates accept {{path.id}}, {{query.name}} and {{body.name}} inside JSON strings or plain text. Missing values become empty strings. No code runs. Test credentials are stored in the configuration; use fake tokens only.

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.

Mock REST API example
Route: GET /orders
Status: 200
Body: [{"id":"test-001","status":"created"}]
Delay: 0 ms

How to use it

  1. Set an API name and configure your routes.
  2. Create the endpoint and copy its base URL.
  3. 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.