Skip to content
Data & Databases

New source webhook intake with validation and forwarding

6 nodes 12 0 Webhook
Download

Loading workflow…

Workflow Description

The workflow receives POST requests on a dedicated webhook path, normalizes the request body into an input field tagged with a source name, and checks that the field is not empty. Valid payloads are forwarded via HTTP POST to an external placeholder endpoint using generic credentials, after which a JSON response with status accepted is returned; invalid payloads return a JSON response with status invalid.

How it works

  1. 1.Webhook Trigger listens for POST requests on path data-engineering-new-source-onboarding-trigger-intake with responseMode set to responseNode
  2. 2.Normalize Input (Set node) maps the request body to an input field and adds a fixed source label
  3. 3.Validate Input (IF node) routes non-empty input to the forwarding branch and empty input to the invalid-response branch
  4. 4.Forward To Service sends a POST with a placeholder body parameter to https://api.example.com/... using genericCredentialType authentication
  5. 5.Respond Success and Respond Invalid return JSON bodies {"status": "accepted"} or {"status": "invalid"} respectively

Use cases

  • Entry point for onboarding payloads from a new data source before handing them to a downstream service
  • Template pattern for basic request-shape validation with immediate HTTP responses to the caller

Requirements

  • Workflow must be activated in n8n so the webhook path becomes callable
  • A generic credential type must be created in n8n and attached to the Forward To Service node
  • The placeholder URL (api.example.com) and placeholder body value must be replaced with real service details before use

Setup and testing in n8n

  1. POST a request with a non-empty body to the webhook path and expect an accepted JSON response
  2. POST a request with an empty body and expect an invalid JSON response
  3. Verify the downstream service URL and credential configuration before exercising the forwarding branch

Service Value

Ready-made workflow template for automation delivery and service execution.

Apps Used

Webhook Set If HTTP Request

Details

Trigger Webhook
Nodes 6
Apps 4
Views 12
Downloads 0

How to Use

  1. 1.Click "Download Template"
  2. 2.Open your n8n dashboard
  3. 3.Go to Workflows > Import from File
  4. 4.Select downloaded file and configure credentials

Nodes Used (6)

Webhook Trigger

Webhook

#1

Normalize Input

Set

#2

Validate Input

If

#3

Forward To Service

HTTP Request

#4

Respond Success

Webhook

#5

Respond Invalid

Webhook

#6

Source and license

Sticky Note

#7
Stay in the loop

Fresh workflows, straight to your inbox

Get newly published DROPIDEA workflows, a clear overview of what they do, and a link to explore them.

  • New workflows
  • Clear overviews
  • Setup guides

Be first to discover what is new

Your name, your email, and one confirmation.

Email confirmation · Unsubscribe anytime