socket.help

Response builder

Return a custom status, headers, and response body.

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 Response builder

Build a temporary HTTP response with a chosen method, path, status, content type, and body. Check that your client reads successful responses and displays errors correctly.

When to use it

Check how a client handles an explicit response body, content type, and HTTP status.

Response builder example
Route: POST /validate
Status: 422
Content-Type: application/json
Body: {"error":"Missing email"}

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.