Developers and AI

Publish from code or an AI in one call

snapy has a simple API so a script or an AI assistant can publish what it makes and hand back a link, with no account and no setup.

Publish from code or an AI in one call

The publish API

Send the content you generated and get a live link back in one request. No file upload form, no account, just JSON.

POST https://api.snapy.host/api/publish
Content-Type: application/json

{
  "content": "<!doctype html><h1>Hello from an AI</h1>",
  "filename": "index.html",
  "name": "my-demo"
}

content is the text or HTML to publish. filename is optional and sets the type (defaults to index.html). name is optional and sets the link name. For a binary file, send content_base64 instead of content.

You get back:

{
  "url": "https://my-demo.snapy.page",
  "stats_url": "https://snapy.host/a/XXXX",
  "token": "XXXX"
}

url is the live link to share. stats_url is your private page to see views and downloads. Open the link right away.

Try it with curl

curl -X POST https://api.snapy.host/api/publish \
  -H "content-type: application/json" \
  -d '{"content":"<h1>It works</h1>","name":"hello"}'

Use it from a ChatGPT custom GPT

This is the fun part. You can give a custom GPT the power to host what it builds and reply with a link.

  1. In ChatGPT, create or edit a custom GPT and open the Actions area.
  2. Import the schema from https://api.snapy.host/openapi.json.
  3. Save. Now when you ask the GPT to build a page, it can publish it and give you a working link.

Use it from any AI agent or script

It is a plain HTTP POST, so anything that can make a web request can use it: a Python or Node script, a no-code tool like Zapier or Make, or an autonomous agent. The agent builds something, calls the endpoint, and shares the link it gets back.

Limits

Step-by-step guides for each tool

There is a short how-to for every popular tool in the integrations section:

MCP server for Claude

A dedicated MCP server lets assistants like Claude call snapy as a built-in publish tool. See the Claude integration guide for how to add it.

Want to see it in action first? Upload a file or read how to share an AI-generated page.

Try the app first

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

Upload a file