Integration

Snapy and n8n

Add an HTTP Request node in n8n that publishes to Snapy and returns a link for the rest of your workflow.

Snapy and n8n

What this does

n8n is an automation tool you can self-host. With its HTTP Request node, a workflow can send content to Snapy, receive a link, and use it in the next node. The Snapy publish endpoint is open and free, so there is no custom node, credential, or key to configure. The built-in HTTP Request node does everything.

How to set it up

  1. Add an HTTP Request node.
  2. Method: POST.
  3. URL: https://api.snapy.host/api/publish.
  4. Body content type: JSON, with: { "content": "={{ $json.html }}", "name": "optional-name", "filename": "index.html" }
  5. Run it. The response contains url, which you can reference in later nodes as {{ $json.url }}.

The response also returns stats_url (a private analytics page) and token (for managing the link). Reference them the same way, as {{ $json.stats_url }} and {{ $json.token }}. Leave name out for a random address.

Example workflow

A clear pattern is new file in Google Drive, publish to Snapy, post link to Slack:

  1. Google Drive Trigger fires on a new file in a chosen folder.
  2. HTTP Request POSTs to https://api.snapy.host/api/publish, mapping the file text into content. For a binary file like a PDF, base64 encode it first and send it as content_base64 with a filename.
  3. Slack node posts a message containing ={{ $json.url }} from the HTTP Request node.

Each new file becomes a live link in your channel automatically.

Other workflows that follow the same shape:

Common uses

Snapy serves static files. Self-contained HTML and documents work well, while anything needing a live server or database is out of scope.

Troubleshooting

The HTTP Request node returns JSON, so later nodes can read ={{ $json.url }}, ={{ $json.stats_url }}, and ={{ $json.token }} directly. Drop url into a Slack, Gmail, or Set node, write it to a Postgres or Airtable node, or return it from a Respond to Webhook node so a caller gets the link back instantly. Store token if a later workflow needs to manage the link. Passing the same name on every run keeps the address stable, which is handy when a downstream system expects a fixed URL.

Common patterns

Because n8n is often self-hosted, the same workflow runs identically on n8n cloud or your own server, with no extra credentials for Snapy in either case.

Good to know

Full reference is in the developer docs. One HTTP Request node turns any workflow output into a link.

Share your file in seconds

Drop a file, get a link. Free, no signup.

Upload a file
Go Pro · $50/year, save ~$10 vs monthly · launch price for the first 100 members.