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.
How to set it up
- Add an HTTP Request node.
- Method: POST.
- URL:
https://api.snapy.host/api/publish. - Body content type: JSON, with:
{ "content": "={{ $json.html }}", "name": "optional-name" } - Run it. The response contains
url, which you can reference in later nodes as{{ $json.url }}.
Example
A workflow watches a folder or a webhook, turns each new item into a page, publishes it to snapy, and writes the returned link into a database or sends it onward.
Good to know
Full reference is in the developer docs.
