{
  "name": "Portarus Starter",
  "flow": [
    {
      "id": 1,
      "module": "gateway:CustomWebHook",
      "version": 1,
      "parameters": {
        "hook": null,
        "maxResults": 1
      },
      "mapper": {},
      "metadata": {
        "designer": { "x": 0, "y": 0 },
        "restore": {},
        "notes": "Portarus delivers the payload here with an `Authorization: Bearer <secret>` header. Make's Custom webhook has no built-in header auth, so the next link carries a 'Verify Portarus secret' filter — open it and replace the placeholder with your secret. Final message text: body._portarus.message (already unified)."
      }
    },
    {
      "id": 2,
      "module": "gateway:WebhookRespond",
      "version": 1,
      "parameters": {},
      "mapper": {
        "status": "200",
        "body": "{{ { \"received\": true, \"trace_id\": 1.body._portarus.meta.trace_id } }}",
        "headers": []
      },
      "metadata": {
        "designer": { "x": 300, "y": 0 },
        "notes": "Ack 200 fast, so Portarus doesn't time out → retries → duplicates."
      }
    },
    {
      "id": 3,
      "module": "builtin:BasicFeeder",
      "version": 1,
      "parameters": {},
      "filter": {
        "name": "Verify Portarus secret",
        "conditions": [
          [
            {
              "a": "{{1.headers.authorization}}",
              "b": "Bearer PASTE_YOUR_PORTARUS_SECRET_HERE",
              "o": "text:equal"
            }
          ]
        ]
      },
      "mapper": {},
      "metadata": {
        "designer": { "x": 600, "y": 0 },
        "notes": "→ Your current process. Wire your existing scenario after this module. If you already have an agent, nothing breaks — Portarus just hands it a cleaner body._portarus.message. If you're new, build from here."
      }
    }
  ],
  "metadata": {
    "instant": true,
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "autoCommitTriggerLast": true,
      "sequential": false,
      "confidential": false,
      "dataloss": false,
      "dlq": false
    },
    "designer": { "orphans": [] },
    "zone": "eu1.make.com",
    "notes": [
      {
        "moduleIds": [1],
        "content": "Setup: 1) Copy this webhook's address into the Portarus Destination URL. 2) In the 'Verify Portarus secret' filter, replace the placeholder with `Bearer <the Portarus secret>`. 3) Turn the scenario ON.",
        "isFilterNote": false,
        "metadata": { "color": "#9138FE" }
      }
    ]
  }
}
