{
  "name": "Supabase storage tutorial: Upload, fetch, sign & list files",
  "nodes": [
    {
      "id": "dcc07b9f-788f-4ea5-9a45-37497ba7319c",
      "name": "fetch_file_to_review1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -304,
        -416
      ]
    },
    {
      "id": "1b5e12a0-3f2f-421e-ae03-9f31a40d6bd0",
      "name": "upload_to_supabase_storage",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -320,
        -784
      ]
    },
    {
      "id": "04a263f5-8de9-466f-bb52-ebf55ff75e37",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -688,
        -784
      ]
    },
    {
      "id": "9a06dcd2-d1fc-466b-a3a8-1f30591e375f",
      "name": "On form submission1",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -720,
        -416
      ]
    },
    {
      "id": "72d6ca3b-81ff-43a7-843d-be4d3e542572",
      "name": "On form submission2",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -672,
        -64
      ]
    },
    {
      "id": "160ca4a4-7e79-493a-a0da-5c8d6b78ca07",
      "name": "get_sign_file_for_temp_access",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -240,
        -64
      ]
    },
    {
      "id": "23718644-32eb-4351-b32e-4071bbeb0492",
      "name": "list_all_the_object",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -240,
        336
      ]
    },
    {
      "id": "1fa36875-d26f-4bc4-b692-92e8ce0a1bc6",
      "name": "When clicking ‘Execute workflow’",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -672,
        336
      ]
    },
    {
      "id": "2e21cf08-8100-4059-88ac-d87a2d1ff0e3",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1536,
        -400
      ],
      "parameters": {
        "width": 608,
        "height": 512,
        "content": "## Update/create policy to access that. (note based on key we have create policy)\n![alt text](https://github.com/nextwebspark/n8n-templates/blob/main/supabase-n8n-fundamental/policy.JPG?raw=true)"
      }
    },
    {
      "id": "269b106b-b758-4dd4-b75f-3374b7b3bf39",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2080,
        -896
      ],
      "parameters": {
        "width": 528,
        "height": 464,
        "content": "## Get project URL\n![alt text](https://github.com/nextwebspark/n8n-templates/blob/main/supabase-n8n-fundamental/api-key.JPG?raw=true)"
      }
    },
    {
      "id": "c4051c9c-3145-4a2f-8645-e9ac21007b44",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2080,
        144
      ],
      "parameters": {
        "width": 528,
        "height": 464,
        "content": "##  Create a Credential of Suparbase Api Credential Type.\n![alt text](https://github.com/nextwebspark/n8n-templates/blob/main/supabase-n8n-fundamental/n8n-supabase-key.JPG?raw=true)"
      }
    },
    {
      "id": "7f774520-ee3c-4a83-b79e-330860cb39e6",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1536,
        -896
      ],
      "parameters": {
        "width": 592,
        "height": 480,
        "content": "## Get Api key (Anon) key. \n![alt text](https://github.com/nextwebspark/n8n-templates/blob/main/supabase-n8n-fundamental/supdabase-url.JPG?raw=true)"
      }
    },
    {
      "id": "d40c816f-e736-4213-8a82-c2b495e3dbc8",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2080,
        -416
      ],
      "parameters": {
        "width": 528,
        "height": 544,
        "content": "## Create a bucket in supabase\n![alt text](https://github.com/nextwebspark/n8n-templates/blob/main/supabase-n8n-fundamental/create-bucket.JPG?raw=true)"
      }
    },
    {
      "id": "d67a1e56-5cd1-4054-8670-0a63a95abe03",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -912,
        -880
      ],
      "parameters": {
        "width": 928,
        "height": 304,
        "content": "## Lesson 1  - Upload file to storage"
      }
    },
    {
      "id": "986ba910-9a34-4256-a968-b65edccbdd7d",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -912,
        -512
      ],
      "parameters": {
        "width": 928,
        "height": 288,
        "content": "## Lesson 2  - Fetch file from storage"
      }
    },
    {
      "id": "066aaed6-6390-4ddb-ba8f-94f9ef84ee1c",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -912,
        -160
      ],
      "parameters": {
        "width": 944,
        "height": 288,
        "content": "## Lesson 3  - Create Temp document with expire time"
      }
    },
    {
      "id": "a1fdb67e-1ea3-4e82-8b98-9ab05b2a1a57",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -912,
        224
      ],
      "parameters": {
        "width": 960,
        "height": 288,
        "content": "## Lesson 4  - Fetch list all the items in storage"
      }
    },
    {
      "id": "ddf906e8-0e37-477e-9b5a-2ed1e9265058",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2992,
        -896
      ],
      "parameters": {
        "width": 896,
        "height": 1632,
        "content": "## Learn Supabase Storage Fundamentals with n8n\n\nThis template demonstrates how to integrate **Supabase Storage** with **n8n** for uploading, fetching, generating temporary signed URLs, and listing fi"
      }
    }
  ],
  "connections": {
    "On form submission": {
      "main": [
        [
          {
            "node": "upload_to_supabase_storage",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission1": {
      "main": [
        [
          {
            "node": "fetch_file_to_review1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission2": {
      "main": [
        [
          {
            "node": "get_sign_file_for_temp_access",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "fetch_file_to_review1": {
      "main": [
        []
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "list_all_the_object",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}