{
  "name": "dub.co URL shortener",
  "nodes": [
    {
      "id": "63170148-b769-43b6-9a7a-02baa9f76b02",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1480,
        1100
      ],
      "parameters": {
        "width": 346.4519761795601,
        "height": 227.3959699655325,
        "content": "## Dub.co API Limits:\nDub’s API is capped at 10 requests per second per user."
      }
    },
    {
      "id": "defd82ef-25a0-4aa4-8681-d352e5fe8275",
      "name": "When clicking \"Test Workflow\"",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        1231,
        560
      ]
    },
    {
      "id": "fec7fb8a-3f88-4de9-8392-5c7929a712e7",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1480,
        460
      ],
      "parameters": {
        "width": 826.4578951225271,
        "height": 605.7992490141105,
        "content": "## Dub.co API\n**Create** Link. [Based on their API docs](https://dub.co/docs/api-reference/endpoint/create-a-new-link)"
      }
    },
    {
      "id": "8c87aad8-519c-491b-b272-f21dfd5b069f",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1171,
        460
      ],
      "parameters": {
        "width": null,
        "height": 870.5323777622334,
        "content": "## Control Stack"
      }
    },
    {
      "id": "a6cfe224-95d9-47d6-a900-667eed065264",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        486,
        460
      ],
      "parameters": {
        "width": 655.6800599837106,
        "height": 462.29577922809585,
        "content": "# README\n\n## Dub.co API Workflow Configuration\n| Required | Input Field           | Description                                      |\n|----------|-----------------------|-----------------------------"
      }
    },
    {
      "id": "f3164150-9730-4d20-9aef-9ae7f84e73fc",
      "name": "API Auth",
      "type": "n8n-nodes-base.set",
      "position": [
        1240,
        820
      ]
    },
    {
      "id": "a2279ab1-6550-43ef-a41d-c24c669bb2b6",
      "name": "CREATE",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1540,
        560
      ]
    },
    {
      "id": "970d062f-9206-4ec6-acdd-3fc1cc87db69",
      "name": "IF Slug available",
      "type": "n8n-nodes-base.if",
      "position": [
        1760,
        560
      ]
    },
    {
      "id": "d25eedfd-95a7-4c17-8a76-1cdfae6670d1",
      "name": "RETRIEVE",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1540,
        840
      ]
    },
    {
      "id": "18bf5187-422c-486e-84c4-c2f79855ba25",
      "name": "UPDATE",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1780,
        840
      ]
    },
    {
      "id": "c16dc19b-f807-4784-a323-5d790cebe718",
      "name": "Shortened URL",
      "type": "n8n-nodes-base.set",
      "position": [
        2120,
        840
      ]
    },
    {
      "id": "44d31a47-dd84-4b07-a606-2da99a73cad1",
      "name": "Done",
      "type": "n8n-nodes-base.set",
      "position": [
        1240,
        1060
      ]
    }
  ],
  "connections": {
    "CREATE": {
      "main": [
        [
          {
            "node": "IF Slug available",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "UPDATE": {
      "main": [
        [
          {
            "node": "Shortened URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "API Auth": {
      "main": [
        [
          {
            "node": "CREATE",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "RETRIEVE": {
      "main": [
        [
          {
            "node": "UPDATE",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Shortened URL": {
      "main": [
        [
          {
            "node": "Done",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF Slug available": {
      "main": [
        [
          {
            "node": "Shortened URL",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "RETRIEVE",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \"Test Workflow\"": {
      "main": [
        [
          {
            "node": "API Auth",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}