workflows.fit
Back to n8n workflows
n8n templateFreeBy Samuel Heredia

Create a secure MongoDB data retrieval API with input validation and HTTP responses

Data Extraction from MongoDB Overview This workflow exposes a public HTTP GET endpoint to read all documents from a MongoDB collection, with: - Strict validation of the collection name - Error handling with proper 4xx...

DevelopmentData & StorageCore NodesUtilityWebhookMongo DbRespond To WebhookSticky Note
Loading interactive preview...

Template notes

Data Extraction from MongoDB

Overview This workflow exposes a public HTTP GET endpoint to read all documents from a MongoDB collection, with:

- Strict validation of the collection name

- Error handling with proper 4xx codes

- Response formatting (e.g., id → id) and a consistent 2XX JSON envelope

Workflow Steps 1. Webhook Trigger: A public GET endpoint receives requests with the collection name as a parameter.

The workflow begins with a webhook that listens for incoming HTTP GET requests.

The endpoint follows this pattern: