{
  "id": "marsenRecoveryLabV1",
  "name": "Marsen approval recovery lab v1 — synthetic destination",
  "active": false,
  "nodes": [
    {
      "id": "approval-webhook",
      "name": "Authenticated callback",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [
        0,
        0
      ],
      "webhookId": "marsen-recovery-lab-v1",
      "parameters": {
        "httpMethod": "POST",
        "path": "approval-recovery-lab",
        "authentication": "headerAuth",
        "responseMode": "lastNode",
        "responseData": "firstEntryJson",
        "options": {}
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "marsenLabReviewer",
          "name": "LAB ONLY — reviewer-a header"
        }
      }
    },
    {
      "id": "store-decision",
      "name": "Record exact decision",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        300,
        0
      ],
      "parameters": {
        "method": "POST",
        "url": "http://fixture:8787/decision",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({proposalId:$json.body.proposalId,version:$json.body.version,target:$json.body.target,note:$json.body.note,decision:$json.body.decision,reviewer:\"reviewer-a\"}) }}",
        "options": {
          "timeout": 5000
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "marsenLabService",
          "name": "LAB ONLY — synthetic fixture service"
        }
      }
    },
    {
      "id": "deliver-action",
      "name": "Reconcile then deliver",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        600,
        0
      ],
      "parameters": {
        "method": "POST",
        "url": "http://fixture:8787/deliver",
        "authentication": "genericCredentialType",
        "genericAuthType": "httpHeaderAuth",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({proposalId:$json.proposalId,version:$json.version,outcome:$json.outcome}) }}",
        "options": {
          "timeout": 5000
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "marsenLabService",
          "name": "LAB ONLY — synthetic fixture service"
        }
      }
    }
  ],
  "connections": {
    "Authenticated callback": {
      "main": [
        [
          {
            "node": "Record exact decision",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Record exact decision": {
      "main": [
        [
          {
            "node": "Reconcile then deliver",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "saveDataSuccessExecution": "all",
    "saveDataErrorExecution": "all"
  },
  "pinData": {}
}
