{
  "schemaVersion": "flowdrome.workflow.v1",
  "id": "",
  "name": "Order intake API — Webhook",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "hook",
      "type": "input.http.webhook",
      "label": "POST /orders",
      "category": "trigger",
      "config": {
        "method": "POST",
        "path": "/orders",
        "contentType": "application/json"
      },
      "position": {
        "x": 0,
        "y": 23
      }
    },
    {
      "id": "stamp",
      "type": "processing.set",
      "label": "Stamp received",
      "category": "processing",
      "config": {
        "mode": "manual",
        "assignments": [
          {
            "name": "receivedAt",
            "type": "string",
            "value": "{{ $now }}"
          }
        ],
        "include": "all",
        "dotNotation": true,
        "ignoreConversionErrors": false
      },
      "position": {
        "x": 530,
        "y": 0
      }
    },
    {
      "id": "resp",
      "type": "output.http-response",
      "label": "201 Created",
      "category": "output",
      "config": {
        "statusCode": 201,
        "headers": {},
        "bodyMode": "payload"
      },
      "position": {
        "x": 1060,
        "y": 0
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "hook",
      "sourcePort": "output",
      "targetNodeId": "stamp",
      "targetPort": "input"
    },
    {
      "id": "e1",
      "sourceNodeId": "stamp",
      "sourcePort": "output",
      "targetNodeId": "resp",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "hook"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "POST /orders receives an order and answers 201 with the payload — the classic inbound API. Deploy to a host to serve it live, or use the trigger tester (▶ on the node) in the editor. The doc carries meta.autoreplay — on a host, a served run that FAILS is automatically re-run with backoff (each attempt lands in the run ledger as autoreplay#n).",
    "autoreplay": {
      "maxAttempts": 2,
      "backoffSeconds": 30
    }
  }
}