n8n · Data Sync

Webhook JSON API endpoint

  • n8n
  • beginner
  • 3 nodes
  • ~2 min setup
Download .json Free · no signup

Tested on n8n 2.25.7 · Last verified 2026-06-21 · v1.0

The workflow: Webhook → Edit Fields → Respond to Webhook n8n
  1. Trigger Webhook POST /webhook/my-endpoint Receives JSON from any form, app or script
  2. Action Edit Fields (Set) Shape the response Wraps the body, adds ok: true
  3. Action Respond to Webhook Return JSON to the caller
The exact node chain — verified on n8n 2.25.7.

What it does

Turn n8n into a no-code JSON API: a Webhook receives a POST, an Edit Fields node shapes the response, and Respond to Webhook returns it — a working HTTP endpoint with zero credentials.

  • Webhook
  • Edit Fields
  • Respond to Webhook

How to import it into n8n

  1. Copy the workflow JSON Use the Copy JSON button above (or download the .json file).
  2. Open your n8n canvas In n8n, open Workflows and create a new, empty workflow.
  3. Paste to import Press Ctrl/Cmd+V on the canvas, or use the ⋯ menu → Import from File / Import from URL. n8n recreates every node.
  4. Connect your credentials Open each node flagged with a credential placeholder and select your own account — see the credentials table below.
  5. Test, then activate Run once with test data to confirm the path end-to-end, then toggle the workflow Active.

Notes for this template

  • After importing, open the Webhook node and copy its Production URL — that is your live endpoint.
  • Change the path ("my-endpoint") to something meaningful for your use case.
  • The Set node returns the posted body wrapped as { ok, received }. Edit it to shape your own response.
  • To add logic — validation, calculations, branching — swap the Set node for a Code node.

Credentials you’ll connect

No external credentials required.

Live end-to-end test on n8n 2.25.7

Request

POST /webhook/my-endpoint
Content-Type: application/json

{ "email": "lead@example.com", "source": "landing" }

Response

{ "ok": true, "received": { "email": "lead@example.com", "source": "landing" } }

Frequently asked questions

Do I need any credentials?

No. This template uses only built-in nodes (Webhook, Edit Fields, Respond to Webhook) — there are no API keys or accounts to connect.

How do I get the webhook URL?

After importing, open the Webhook node and copy its Production URL (it ends in /webhook/my-endpoint). You can change the path to anything you like.

Has this really been tested?

Yes. It was built, executed and re-import-verified on a real n8n 2.25.7 instance — a POST to the webhook returns the JSON response shown above.

How do I change what it returns?

Edit the "Edit Fields" (Set) node to add or rename fields, or replace it with a Code node for custom logic.

Is it free?

Yes — free to download and use, no signup and no email required.

More Data Sync templates