{
  "name": "Webhook JSON API endpoint",
  "nodes": [
    {
      "parameters": { "httpMethod": "POST", "path": "my-endpoint", "responseMode": "responseNode", "options": {} },
      "id": "a1b2c3d4-0001-4a01-8a01-000000000001",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [0, 0],
      "webhookId": "a1b2c3d4000100010001000000000001"
    },
    {
      "parameters": { "assignments": { "assignments": [ { "id": "1", "name": "ok", "value": true, "type": "boolean" }, { "id": "2", "name": "received", "value": "={{ $json.body }}", "type": "object" } ] }, "options": {} },
      "id": "a1b2c3d4-0002-4a02-8a02-000000000002",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [220, 0]
    },
    {
      "parameters": { "respondWith": "json", "responseBody": "={{ $json }}", "options": {} },
      "id": "a1b2c3d4-0003-4a03-8a03-000000000003",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.1,
      "position": [440, 0]
    }
  ],
  "connections": {
    "Webhook": { "main": [[{ "node": "Edit Fields", "type": "main", "index": 0 }]] },
    "Edit Fields": { "main": [[{ "node": "Respond to Webhook", "type": "main", "index": 0 }]] }
  },
  "settings": { "executionOrder": "v1" },
  "meta": {}
}
