custom_route
Define a custom endpoint on a project (like /health, /config/:key, or a catch-all /webhooks/* request bin). body is a response template: {{query.x}} {{params.x}} {{body.x}} {{headers.x}} {{method}} {{path}} {{now}} {{ts}} {{uuid}} {{rand}}; triple braces {{{body}}} insert raw JSON. Custom routes take precedence over resource routes; '*' catch-alls are a fallback. Max 20 routes/project.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Response body template (string; JSON works). | |
| path | Yes | e.g. /health, /config/:key, /webhooks/* | |
| method | No | Default GET. | |
| status | No | Response status (default 200). | |
| delayMs | No | Artificial latency in ms. | |
| project | Yes | ||
| adminKey | Yes | ||
| contentType | No | Default application/json. |