{
  "name": "Index Grab - Submit URLs",
  "flow": [
    {
      "id": 1,
      "module": "util:SetVariables",
      "version": 1,
      "parameters": {},
      "mapper": {
        "variables": [
          {"name": "api_key", "value": "REPLACE_WITH_INDEX_GRAB_API_KEY"},
          {"name": "project", "value": "My Website"},
          {"name": "service", "value": "fast"},
          {"name": "url", "value": "https://example.com/page"}
        ],
        "scope": "roundtrip"
      },
      "metadata": {"designer": {"x": 0, "y": 0}}
    },
    {
      "id": 2,
      "module": "http:ActionSendData",
      "version": 3,
      "parameters": {"handleErrors": true, "useNewZLibDeCompress": true},
      "mapper": {
        "url": "https://indexgrab.com/api/v1/submissions",
        "method": "post",
        "headers": [
          {"name": "X-API-Key", "value": "{{1.api_key}}"},
          {"name": "Idempotency-Key", "value": "make-{{formatDate(now; \"x\")}}"},
          {"name": "Content-Type", "value": "application/json"}
        ],
        "qs": [],
        "bodyType": "raw",
        "contentType": "application/json",
        "data": "{\"project\":{{toJSON(1.project)}},\"urls\":[{{toJSON(1.url)}}],\"service\":{{toJSON(1.service)}}}",
        "parseResponse": true,
        "followRedirect": false,
        "timeout": "30"
      },
      "metadata": {"designer": {"x": 300, "y": 0}}
    }
  ],
  "metadata": {
    "instant": false,
    "version": 1,
    "scenario": {"roundtrips": 1, "maxErrors": 3, "autoCommit": true, "sequential": false},
    "designer": {"orphans": []},
    "zone": "eu1.make.com"
  }
}
