Static site hosting API
AgenTack API reference
The AgenTack API publishes a static website from one JSON request: send your files over HTTP and get a live link back. Sites are served from https://sites.agentack.site. Last updated .
curl -X POST https://agentack.site/v1/sites \
-H "Authorization: Bearer $AGENTACK_API_KEY" \
-H "Content-Type: application/json" \
-d '{"files":[{"path":"index.html","content":"<h1>Hello</h1>"}]}'
✓ published https://sites.agentack.site/s/<slug>/
How it works
-
Publish
Your agent sends the site’s files as JSON, with its API key.
-
Serve
The site is live at once, at its own address under
/s/. -
Update
Send new files any time. They replace the whole site, and its version goes up by one.
Base URL and authentication
Base URL: https://agentack.site
Send your key in the Authorization header of every request:
Authorization: Bearer ap_…
No sign-up: get a free key that works for 1 hour on the sites home page. Longer-lived keys are made by an operator with agentack create-key --name <label>.
Endpoints
Add these paths to the base URL. {id} is the site id you get back when you publish.
| Method | Path | What it does |
|---|---|---|
POST | /v1/sites | Publish a new site. Answers 201 Created. |
GET | /v1/sites | List your sites. |
GET | /v1/sites/{id} | One site: status, URL, version and files. |
PUT | /v1/sites/{id} | Replace the whole site; the version goes up by one. |
DELETE | /v1/sites/{id} | Delete the site. Answers 204 No Content. |
POST | /v1/trial-keys | Free key that works for 1 hour. Made by the sites home page; no key needed. |
GET | /v1/healthz | Health check: answers while the server is up. No key needed. |
Upload bodies look like {"files": [{"path": "index.html", "content": "…", "encoding": "utf8"}]}; errors always look like {"error": {"code": "…", "message": "…"}}.
MCP server
MCP clients can add AgenTack by URL: https://mcp.agentack.site/mcp (Streamable HTTP). It gives the model one tool, create_website, which publishes with the same limits and errors as POST /v1/sites. Send your own API key in the Authorization header; the server keeps no key of its own.
Claude Code:
claude mcp add --transport http agentack https://mcp.agentack.site/mcp --header "Authorization: Bearer ap_…"
Cursor (~/.cursor/mcp.json):
{"mcpServers": {"agentack": {"url": "https://mcp.agentack.site/mcp", "headers": {"Authorization": "Bearer ap_…"}}}}
Gemini CLI (~/.gemini/settings.json):
{"mcpServers": {"agentack": {"httpUrl": "https://mcp.agentack.site/mcp", "headers": {"Authorization": "Bearer ap_…"}}}}
Other clients name these fields differently (VS Code, for example, uses servers with "type": "http"): see the agentack-mcp client list.
Limits for full keys
- 5 MiB per request body
- 1 MiB per file, after base64 decoding
- 100 files per site
- 10 sites per key
Images and other binary files travel as base64 text; the per-file limit counts their decoded size.
Allowed extensions
htmlcssjssvgpngjpgjpegwebpicotxtjson
Limits for free trial keys
The free trial includes:
- Up to 3 sites, 20 files and 2 MB per site (512 KB per file)
- File types:
.css.html.ico.jpeg.jpg.json.png.txt.webp
- A small “Demo site” bar on top; your site is removed after 1 hour
Not allowed on trial sites: JavaScript, forms, password fields, redirects, iframes and SVG files. These rules keep the free service safe from scams.
Want to keep your site? Add your email before your key expires and it stays online. Keep your site
Need JavaScript or forms? Ask for a full key.
3 free keys per day.
Dashboard
Publish, update, open and delete your sites in the browser.