{
  "updatedAt": "2026-05-09T22:38:43.560Z",
  "createdAt": "2025-12-02T18:16:18.743Z",
  "id": "GWuurQa44UzlbQ08",
  "name": "Book Enrichment Endpoint",
  "active": true,
  "isArchived": false,
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "enrich_book",
        "authentication": "headerAuth",
        "responseMode": "responseNode",
        "options": {
          "allowedOrigins": "megyk.com"
        }
      },
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.1,
      "position": [
        -336,
        0
      ],
      "id": "c98d56cb-5559-47b8-a6af-38aca0e070d6",
      "name": "Webhook",
      "credentials": {
        "httpHeaderAuth": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "operation": "get",
        "tableId": "books",
        "filters": {
          "conditions": [
            {
              "keyName": "id",
              "keyValue": "={{ $json.body.bookId }}"
            }
          ]
        }
      },
      "type": "n8n-nodes-base.supabase",
      "typeVersion": 1,
      "position": [
        -112,
        0
      ],
      "id": "209c8993-ef82-4fed-abf8-6311398cdbf7",
      "name": "Get a row",
      "credentials": {
        "supabaseApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "options": {}
      },
      "type": "n8n-nodes-base.respondToWebhook",
      "typeVersion": 1.4,
      "position": [
        544,
        0
      ],
      "id": "8435cd04-e82d-4284-ae3d-b3ee5bd6ef94",
      "name": "Respond to Webhook"
    },
    {
      "parameters": {
        "workflowId": {
          "__rl": true,
          "value": "ZQp61SzkePFnnurz",
          "mode": "list",
          "cachedResultUrl": "/workflow/ZQp61SzkePFnnurz",
          "cachedResultName": "Enrich Book by ID"
        },
        "workflowInputs": {
          "mappingMode": "defineBelow",
          "value": {
            "id": "={{ $json.id }}"
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "id",
              "displayName": "id",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "canBeUsedToMatch": true,
              "type": "string",
              "removed": false
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": true
        },
        "options": {}
      },
      "type": "n8n-nodes-base.executeWorkflow",
      "typeVersion": 1.3,
      "position": [
        96,
        0
      ],
      "id": "e3d71423-96c0-46c3-bf59-fb3dc6ace791",
      "name": "Call 'Enrich Book by ID'"
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "Get a row",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get a row": {
      "main": [
        [
          {
            "node": "Call 'Enrich Book by ID'",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Call 'Enrich Book by ID'": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate"
  },
  "staticData": null,
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "versionId": "f4fb8d3b-bb61-49a9-8d87-eb3f2fcd92e8",
  "activeVersionId": "f4fb8d3b-bb61-49a9-8d87-eb3f2fcd92e8",
  "triggerCount": 1,
  "shared": [
    {
      "updatedAt": "2025-12-02T18:16:18.796Z",
      "createdAt": "2025-12-02T18:16:18.796Z",
      "role": "workflow:owner",
      "workflowId": "GWuurQa44UzlbQ08",
      "projectId": "B7QJE85HA2Vij1it"
    }
  ],
  "activeVersion": {
    "updatedAt": "2026-05-09T22:38:47.000Z",
    "createdAt": "2026-05-09T22:38:43.561Z",
    "versionId": "f4fb8d3b-bb61-49a9-8d87-eb3f2fcd92e8",
    "workflowId": "GWuurQa44UzlbQ08",
    "nodes": [
      {
        "parameters": {
          "httpMethod": "POST",
          "path": "enrich_book",
          "authentication": "headerAuth",
          "responseMode": "responseNode",
          "options": {
            "allowedOrigins": "megyk.com"
          }
        },
        "type": "n8n-nodes-base.webhook",
        "typeVersion": 2.1,
        "position": [
          -336,
          0
        ],
        "id": "c98d56cb-5559-47b8-a6af-38aca0e070d6",
        "name": "Webhook",
        "webhookId": "fd3f48cc-7dda-460f-8aba-f8aafcc97808",
        "credentials": {
          "httpHeaderAuth": {
            "id": "oAO2iVZsNwBZMqjC",
            "name": "Megyk Webhook Header Auth"
          }
        }
      },
      {
        "parameters": {
          "operation": "get",
          "tableId": "books",
          "filters": {
            "conditions": [
              {
                "keyName": "id",
                "keyValue": "={{ $json.body.bookId }}"
              }
            ]
          }
        },
        "type": "n8n-nodes-base.supabase",
        "typeVersion": 1,
        "position": [
          -112,
          0
        ],
        "id": "209c8993-ef82-4fed-abf8-6311398cdbf7",
        "name": "Get a row",
        "credentials": {
          "supabaseApi": {
            "id": "fdzgJDGuPA2JozKn",
            "name": "Supabase account"
          }
        }
      },
      {
        "parameters": {
          "options": {}
        },
        "type": "n8n-nodes-base.respondToWebhook",
        "typeVersion": 1.4,
        "position": [
          544,
          0
        ],
        "id": "8435cd04-e82d-4284-ae3d-b3ee5bd6ef94",
        "name": "Respond to Webhook"
      },
      {
        "parameters": {
          "workflowId": {
            "__rl": true,
            "value": "ZQp61SzkePFnnurz",
            "mode": "list",
            "cachedResultUrl": "/workflow/ZQp61SzkePFnnurz",
            "cachedResultName": "Enrich Book by ID"
          },
          "workflowInputs": {
            "mappingMode": "defineBelow",
            "value": {
              "id": "={{ $json.id }}"
            },
            "matchingColumns": [],
            "schema": [
              {
                "id": "id",
                "displayName": "id",
                "required": false,
                "defaultMatch": false,
                "display": true,
                "canBeUsedToMatch": true,
                "type": "string",
                "removed": false
              }
            ],
            "attemptToConvertTypes": false,
            "convertFieldsToString": true
          },
          "options": {}
        },
        "type": "n8n-nodes-base.executeWorkflow",
        "typeVersion": 1.3,
        "position": [
          96,
          0
        ],
        "id": "e3d71423-96c0-46c3-bf59-fb3dc6ace791",
        "name": "Call 'Enrich Book by ID'"
      }
    ],
    "connections": {
      "Webhook": {
        "main": [
          [
            {
              "node": "Get a row",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Get a row": {
        "main": [
          [
            {
              "node": "Call 'Enrich Book by ID'",
              "type": "main",
              "index": 0
            }
          ]
        ]
      },
      "Call 'Enrich Book by ID'": {
        "main": [
          [
            {
              "node": "Respond to Webhook",
              "type": "main",
              "index": 0
            }
          ]
        ]
      }
    },
    "nodeGroups": [],
    "authors": "Gordan Kljajic",
    "name": "Version f4fb8d3b",
    "description": "",
    "autosaved": true
  },
  "tags": []
}