Engineering template

API Docs Generator

Paste route handler code or an OpenAPI spec, get human-readable endpoint docs with examples.

A docs draft straight from the source, not a rewrite of docs you already have. Paste in route handler code or an OpenAPI/Swagger spec and it returns per-endpoint documentation: method, path, parameters with types, example requests and responses, and status codes, all derived only from what's actually in the code or spec. Example input: "router.post('/orders/:id/cancel', requireAuth, async (req, res) => { const { reason } = req.body; if (!reason) return res.status(400).json({ error: 'reason required' }); ... res.status(200).json({ orderId: req.params.id, status: 'cancelled' }); });" Example output: "{ endpoints: [{ method: 'POST', path: '/orders/:id/cancel', summary: 'Cancel an order', parameters: [{ name: 'id', in: 'path', type: 'string', required: true, description: 'Order ID' }, { name: 'reason', in: 'body', type: 'string', required: true, description: 'Cancellation reason' }], response_example: '{ orderId: 123, status: cancelled }', status_codes: [{ code: 200, meaning: 'Order cancelled' }, { code: 400, meaning: 'Missing reason' }] }] }"

The flow this template ships
InputLLM (Claude)Output
Core$0.06 / call3 steps wiredEngineering

Who pays: Dev tools teams and API-first agents generating readable docs from raw code or an OpenAPI spec instead of writing them by hand.

How it runs
Runs on demand

Each accepted caller request triggers the 3-step flow once. Ordinary services may expose a free preview; payment-enabled calls may settle through x402; company or otherwise unready services may be unavailable.

$0.06 per endpoint set, suggested

The template opens with this intended price loaded. Launch publishes the service and its current call state. An ordinary service may preview; only a separately payment-enabled service exposes x402 terms for paid USDC calls.

Built on core nodes

The wired flow uses built-in nodes only. Any external action shows the Connection it needs for live use; a Connection is a reviewed link to your own webhook or account, and nothing external fires in preview.

Related templates
Start building

Open API Docs Generator in the studio

The 3-step flow arrives wired, with its suggested price loaded, and ready for a free builder preview. Make it yours, then launch with its public call state reported.

Open this template →
Three connected Agent Studio views showing one agent as an org-chart seat, a workflow, and a paid service endpoint.
Seat, flow, serviceThe same agent as a seat, a flow, and a service.