Generate self-documenting API portal for webhooks with n8n API & Bootstrap
Workflow Overview Keeping API documentation updated is a challenge, especially when your endpoints are powerful n8n webhooks. This project solves that problem by turning your n8n instance into a self-documenting API p...
Template notes
Workflow Overview Keeping API documentation updated is a challenge, especially when your endpoints are powerful n8n webhooks. This project solves that problem by turning your n8n instance into a self-documenting API platform.
This workflow acts as a central engine that scans your entire n8n instance for designated webhooks and automatically generates a single, beautiful, and interactive HTML documentation page. By simply adding a standard Set node with specific metadata to any of your webhook workflows, you can make it instantly appear in your live documentation portal, complete with code examples and response schemas.
The final output is a single, callable URL that serves a professional, dark-themed, and easy-to-navigate documentation page for all your automated webhook endpoints.
Key Features:
Automatic Discovery: Scans all active workflows on your instance to find endpoints designated for documentation. Simple Configuration via a Set Node: No custom nodes needed! Just add a Set node named APIDOCS to any workflow you want to document and fill in a simple JSON structure. Rich HTML Output: Dynamically generates a single, responsive, dark-mode HTML page that looks professional right out of the box. Interactive UI: Uses Bootstrap accordions, allowing users to expand and collapse each endpoint to keep the view clean and organized. Developer-Friendly: Automatically generates a ready-to-use cURL command for each endpoint, making testing and integration incredibly fast. Zero Dependencies: The entire solution runs within n8n. No need to set up or maintain external documentation tools like Swagger UI or Redoc.
Setup Instructions:
This solution has two parts: configuring the workflows you want to document, and setting up this generator workflow.
Part 1: In Each Workflow You Want to Document