{
  "name": "Einlesen Webhook Beispiel",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "rechnung-upload",
        "responseMode": "responseNode",
        "options": {}
      },
      "id": "einlesen-webhook",
      "name": "Einlesen Upload Webhook",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [260, 260],
      "webhookId": "einlesen-rechnung-upload"
    },
    {
      "parameters": {
        "conditions": {
          "string": [
            {
              "value1": "={{$headers.authorization || ''}}",
              "operation": "isEmpty"
            }
          ]
        }
      },
      "id": "optional-token-check",
      "name": "Optional: Bearer Token pruefen",
      "type": "n8n-nodes-base.if",
      "typeVersion": 1,
      "position": [520, 260],
      "notes": "Passe diese Node an, wenn dein Webhook einen festen Authorization-Header wie 'Bearer dein-token' verlangen soll."
    },
    {
      "parameters": {
        "respondWith": "json",
        "responseBody": "={\"ok\": true, \"source\": \"einlesen-ios\", \"receivedType\": $json.body?.type || null}",
        "options": {
          "responseCode": 200
        }
      },
      "id": "success-response",
      "name": "Beispielantwort",
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1,
      "position": [780, 260]
    }
  ],
  "connections": {
    "Einlesen Upload Webhook": {
      "main": [
        [
          {
            "node": "Optional: Bearer Token pruefen",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Optional: Bearer Token pruefen": {
      "main": [
        [
          {
            "node": "Beispielantwort",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Beispielantwort",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "meta": {
    "templateCredsSetupCompleted": true
  }
}
