{
  "name": "Index Grab - Submit URLs",
  "nodes": [
    {
      "parameters": {},
      "id": "0b61ad4c-99bd-40a8-89a4-4c85493d0b21",
      "name": "Run manually",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [260, 300]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {"id": "project", "name": "project", "value": "My Website", "type": "string"},
            {"id": "service", "name": "service", "value": "fast", "type": "string"},
            {"id": "urls", "name": "urls", "value": "=[\"https://example.com/page\"]", "type": "array"},
            {"id": "api_key", "name": "api_key", "value": "REPLACE_WITH_INDEX_GRAB_API_KEY", "type": "string"}
          ]
        },
        "options": {}
      },
      "id": "97ca8d95-56bf-44e0-a895-4a16d3e88d5e",
      "name": "Index Grab input",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [480, 300]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://indexgrab.com/api/v1/submissions",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {"name": "X-API-Key", "value": "={{ $json.api_key }}"},
            {"name": "Idempotency-Key", "value": "={{ 'n8n-' + $now.toMillis() + '-' + $execution.id }}"},
            {"name": "Content-Type", "value": "application/json"}
          ]
        },
        "sendBody": true,
        "contentType": "raw",
        "rawContentType": "application/json",
        "body": "={{ JSON.stringify({ project: $json.project, urls: $json.urls, service: $json.service }) }}",
        "options": {"timeout": 30000}
      },
      "id": "5279d89f-c793-4b18-a1f1-8b46864e3f68",
      "name": "Submit to Index Grab",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [720, 300]
    }
  ],
  "connections": {
    "Run manually": {"main": [[{"node": "Index Grab input", "type": "main", "index": 0}]]},
    "Index Grab input": {"main": [[{"node": "Submit to Index Grab", "type": "main", "index": 0}]]}
  },
  "pinData": {},
  "settings": {"executionOrder": "v1"},
  "active": false,
  "versionId": "a08d0909-7667-45c0-8894-28ef51bb61f6",
  "meta": {"templateCredsSetupCompleted": false},
  "tags": []
}
