{
  "id": "vRCOOlrPrR0rle4X",
  "name": "biourl node",
  "tags": [],
  "nodes": [
    {
      "id": "dd78c2ca-00a7-44c4-8eec-fd6e8bd4783f",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        280,
        0
      ],
      "parameters": {
        "url": "https://biourl.link/api/url/add",
        "method": "POST",
        "options": {
          "redirect": {
            "redirect": {}
          }
        },
        "jsonBody": "{\n  \"url\": \"https://google.com\",\n  \"status\": \"private\",\n  \"custom\": \"google\",\n  \"password\": \"mypass\",\n  \"expiry\": \"2020-11-11 12:00:00\",\n  \"type\": \"splash\",\n  \"metatitle\": \"Not Google\",\n  \"metadescription\": \"Not Google description\",\n  \"metaimage\": \"https://www.mozilla.org/YOUR_AWS_SECRET_KEY_HERE/og.4ad05d4125a5.png\",\n  \"description\": \"For facebook\",\n  \"pixels\": [\n    1,\n    2,\n    3,\n    4\n  ],\n  \"channel\": 1,\n  \"campaign\": 1,\n  \"deeplink\": {\n    \"auto\": true,\n    \"apple\": \"https://apps.apple.com/us/app/google/id284815942\",\n    \"google\": \"https://play.google.com/store/apps/details?id=com.google.android.googlequicksearchbox&hl=en_CA&gl=US\"\n  },\n  \"geotarget\": [\n    {\n      \"location\": \"Canada\",\n      \"link\": \"https://google.ca\"\n    },\n    {\n      \"location\": \"United States\",\n      \"link\": \"https://google.us\"\n    }\n  ],\n  \"devicetarget\": [\n    {\n      \"device\": \"iPhone\",\n      \"link\": \"https://google.com\"\n    },\n    {\n      \"device\": \"Android\",\n      \"link\": \"https://google.com\"\n    }\n  ],\n  \"languagetarget\": [\n    {\n      \"language\": \"en\",\n      \"link\": \"https://google.com\"\n    },\n    {\n      \"language\": \"fr\",\n      \"link\": \"https://google.ca\"\n    }\n  ],\n  \"parameters\": [\n    {\n      \"name\": \"aff\",\n      \"value\": \"3\"\n    },\n    {\n      \"device\": \"gtm_source\",\n      \"link\": \"api\"\n    }\n  ]\n}",
        "sendBody": true,
        "sendHeaders": true,
        "specifyBody": "json",
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer YOUR_TOKEN_HERE"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "43f87bb0-7c32-4cfc-ac1f-80ebebd50b4f",
      "name": "Respond with Shortened URL",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        500,
        0
      ],
      "parameters": {
        "options": {},
        "respondWith": "allIncomingItems"
      },
      "typeVersion": 1.2
    },
    {
      "id": "b4db4c2c-2a2f-47fd-a6fc-8e6f44de7af1",
      "name": "Receive Link Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        60,
        0
      ],
      "parameters": {
        "path": "shorten-link",
        "options": {},
        "httpMethod": "POST",
        "responseMode": "responseNode"
      },
      "typeVersion": 2
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "67a17fbc-b191-4f19-be72-aad38294a1c1",
  "connections": {
    "HTTP Request": {
      "main": [
        [
          {
            "node": "Respond with Shortened URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Link Webhook": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}