Create, update, and delete mock endpoints programmatically from curl, Postman, or any HTTP client — no API key required. Full REST reference with copy-paste curl examples for every endpoint, plus request-log retrieval and a downloadable Postman collection.
No API key is required. Creating a mock returns a secret_token — save it, as it is your credential for every subsequent call.
| Field | Type | Description |
|---|---|---|
| json_payload | object | array | The JSON body returned to callers. Supports dynamic variables for uuid, timestamp, randomInt, and name. |
| status_code | integer | HTTP status code to return, 100 to 599, default 200. |
| allowed_methods | string[] | HTTP methods this endpoint responds to: GET, POST, PUT, PATCH, DELETE. |
| headers | object | Custom response headers. |
| response_delay_ms | integer | Simulated latency before responding, 0 to 10000 ms. |
| error_rate_pct | integer | Percentage of requests that return a simulated error, 0 to 100. |
| allowed_ips | string[] | IP allowlist. An empty array allows all; otherwise only listed IPs, with 403 for others. |
| conditional_rules | object[] | Up to 5 rules returning different payloads based on a query param or header. First match wins. |
| round_robin_payloads | any[] | Up to 5 payloads cycled in order across successive requests. |
| echo_request_body | boolean | Wraps the response to include the incoming request body, useful for debugging what a client sends. |
| param_switch_key | string | null | Name of a single query parameter to switch on. Empty or null disables the switch. |
| param_switch_map | object | Up to 25 entries mapping a param value to its response. Unmatched values fall back to json_payload. |