{ "name": "SQL2REST Starter", "nodes": [ { "parameters": {}, "id": "node-trigger", "name": "Manual Trigger", "type": "n8n-nodes-base.manualTrigger", "typeVersion": 1, "position": [0, 300] }, { "parameters": { "method": "GET", "url": "http://YOUR-SERVER:8000/orders", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "sendQuery": true, "queryParameters": { "parameters": [ { "name": "limit", "value": "50" } ] }, "options": {} }, "credentials": { "httpHeaderAuth": { "id": "REPLACE_WITH_YOUR_CREDENTIAL_ID", "name": "SQL2REST API Key" } }, "id": "node-http-get", "name": "Get Data", "type": "n8n-nodes-base.httpRequest", "typeVersion": 4.2, "position": [250, 300] }, { "parameters": { "content": "## SQL2REST Starter\n\n**Before running this workflow:**\n\n1. **Create a credential** in n8n:\n - Go to Credentials -> New -> Header Auth\n - Name it exactly: `SQL2REST API Key`\n - Field \"Name\": `X-API-Key`\n - Field \"Value\": your key from the SQL2REST API-Dashboard\n\n2. **Replace the base URL**: update `YOUR-SERVER:8000` in the HTTP Request node with your server address (e.g. `192.168.1.10:8000` or `myserver.example.com:8000`).\n\n3. **Reconnect the credential**: click the HTTP Request node, open the credential dropdown and select \"SQL2REST API Key\".\n\n4. **Change the endpoint path**: replace `/orders` with any SQL2REST endpoint (`/products`, `/customers`, `/stock/by-warehouse`, etc.).\n\n**Self-hosted n8n on the same LAN:** `http://localhost:8000` or the LAN IP works fine.\n**n8n Cloud:** SQL2REST must be publicly reachable. See: https://sql2rest.com/docs/reverse-proxy/", "height": 400, "width": 450, "color": 7 }, "id": "node-note", "name": "Setup Instructions", "type": "n8n-nodes-base.stickyNote", "typeVersion": 1, "position": [-50, -180] } ], "connections": { "Manual Trigger": { "main": [ [ { "node": "Get Data", "type": "main", "index": 0 } ] ] } }, "pinData": {}, "settings": { "executionOrder": "v1" }, "meta": { "instanceId": "" } }